GithubHelp home page GithubHelp logo

slimefun-addon-community / mobcapturer Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 11.0 233 KB

A Slimefun Addon that adds a tool that allows you to capture mobs.

License: MIT License

Java 100.00%
bukkit spigot plugin minecraft safari-net capture mobs slimefun addon mobcapturer spawner

mobcapturer's Introduction

๐Ÿ‘ป MobCapturer

MobCapturer is a Slimefun4 Addon.
You need to install Slimefun4 in order for this plugin to work.

MobCapturer is a Slimefun4 Addon that adds a cannon which allows you to capture mobs.
This Plugin is heavily inspired by the Safari-Nets from the mod MineFactory Reloaded.

To capture a Mob, simply craft a Mob Capturing Cannon and some Mob Capturing Pellets.
Take aim and shoot at any mob.

Currently only some mobs are actually compatible with this Plugin.
But the mobs that do work work extremely well!
The captured mobs will retain attributes, potion effects, fire ticks, custom names, their health and even entity-specific traits like wool colors and much more.

๐Ÿ’พ Download MobCapturer

You can download MobCapturer right here: Dev Builds

โš™๏ธ config

You can change the following settings in config.yml:

  • options.auto-update: Enable auto update from builds page. (default: true)
  • options.mob-eggs-to-inventory: Allow the mob egg to be added to the player's inventory directly. If the player's inventory is full, it will be dropped at player's location. (default: false)
  • options.capture-named-mobs: Allow players to capture mobs with custom names. (default: true)
  • options.ignored-mobs: The list of mob names that these mobs should not be captured.
    Note: this list will be ignored when options.capture-named-mobs is set to false

๐ŸŽง Discord Server

You can find Slimefun's community on Discord and connect with thousands of other members from the community.
The Slimefun Addon Community also has its own discord server for any of our projects too!

Discord Invite Discord Invite

โš–๏ธ Open Source / License

This Project is open-source and licensed under the MIT License
Pull Requests are welcome!

๐ŸŽ Thanks

Thanks minecraft-heads.com for providing permissions to use the heads from their websites.

mobcapturer's People

Contributors

gallowsdove avatar gecko10000 avatar mrgeneralq avatar renovate-bot avatar thebusybiscuit avatar variananora avatar ybw0014 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mobcapturer's Issues

Inconsistency in mob egg stacking

Reproduction:

  • Capture some wild sheep. Note that the eggs do not stack.
  • Place the sheep and breed them. Note that the eggs from the bred sheep DO stack.

I have diagnosed that this is due to the that fact that the floating value "Random spawn bonus" is stored on mob eggs from wild entities, when it does not exist on bred mobs.

This could be fixed by excluding the attribute when capturing mobs.

Endermen cannot be captured

Description (Required)

Endermen cannot be captured with the launcher.

Steps to reproduce the Issue (Required)

Attempt to capture an Enderman. It dodges the projectile and remains uncaptured.

Expected behavior (Required)

I expected to be able to capture all types of mobs with the launcher.

Since there is no egg for Endermen, I assume this is intentional, but special behavior may be needed to ensure the Enderman does not dodge the projectile.

Mob capture works on protected areas

Description (Required)

Mob capture works on protected areas if I don't have permission to area.
I tested with WorlGuard but maybe mob capture works on protected PlotSquared plot, protected Griefprevention claim, and protected Bentobox island.

Steps to reproduce the Issue (Required)

  1. Use Mob capturing cannon to steal mobs from protected areas.

https://www.youtube.com/watch?v=zwYwumaqaj4

Expected behavior (Required)

Mob capture not work on protected areas if I don't have permission to area.

Environment (Required)

Yatopia git-Yatopia-"f8c5c21" (MC: 1.16.5)
Slimefun DEV - 816 (git d3f4ca47)
Metrics-Module #21
Java 11

Installed Addons: (2)
RestrictedCreative v2.4.6
MobCapturer vDEV - 15 (git a42c9e0)

EntityDamageByEntityEvent to MobCapturer

when trying to get piglin in the nether it generates this error in the console and only gives damage, in the world world it works normally, in the nether it does not

error piglin nether: https://mclo.gs/eSWWsNR

Paper git-Paper-130 (MC: 1.19.2)
Slimefun DEV - 1027 (git 96c873bd)
Metrics-Module #28
Java 18
Installed Addons: (17)
Networks vDEV - 44 (git 2e7bc54c)
DyedBackpacks vDEV - 17 (git 8b329e96)
ExtraTools vDEV - 36 (git 922c0324)
EcoPower vDEV - 5 (git 5c1ecd68)
HotbarPets vDEV - 38 (git fa6c871d)
DynaTech vDEV - 166 (git 92c8d415)
HeadLimiter v23
ExoticGarden vDEV - 78 (git 7f9a5f63)
Liquid vDEV - 14 (git 0f5346bf)
Supreme vDEV - 9 (git efe13820)
InfinityExpansion vDEV - 140 (git 0098d2fb)
LiteXpansion vDEV - 180 (git d574b154)
VillagerUtil vDEV - 1 (git 0a949b19)
MobCapturer vDEV - 18 (git df36d23)
FlowerPower vDEV - 14 (git 63a37cc0)
SimpleStorage vDEV - 10 (git ea5e5637)
FluffyMachines vDEV - 121 (git efca037f)

Could not pass event EntityDamageByEntityEvent to MobCapturer

Description (Required)

When using the mob cannon, you cannot capture a mob. You get an error in console (see below) when you hit one with the pellet. There is no error for just using the cannon without hitting a mob. I am trying to find out from which update this started (Paper/Slimefun/MobCapturer), but figured I would put this in here while I look for more info to help you out.

Steps to reproduce the Issue (Required)

Get a mob cannon and empty pellet.
Shoot a mob that can be captured.

Expected behavior (Required)

Expected to capture a mob when shooting the pellet at the mob from the cannon.

Server Log / Error Report

https://pastebin.com/eAQEnT6Q

Environment (Required)

sf versions
[13:49:57 INFO]: This Server uses the following setup of Slimefun:
[13:49:57 INFO]: Paper git-Paper-406 (MC: 1.16.4)
[13:49:57 INFO]: CS-CoreLib vDEV - 92 (git e9150d72)
[13:49:57 INFO]: Slimefun vDEV - 780 (git bc8d72b9)
[13:49:57 INFO]: Metrics build: #6
[13:49:57 INFO]:
[13:49:57 INFO]: Installed Addons: (1)
[13:49:57 INFO]: MobCapturer vDEV - 12 (git 4f65d33)

Spawned mobs placed inside walls

Expected behavior: Placing a mob in an egg on a block should place the mob centered on that block.

Actual behavior: Placing the mob in an egg on a block spawns the mob at the corner of that block. This regularly causes the mob to suffocate when attempting to place them inside confined spaces.

Fox injured not captured by mob canon

Building a zoo on a survival world and fox are injured by the capture eggs, not captured. Holds true for all fox (red and snowy).

We can capture Panda and polar bears, so it's not just the age of the mob in the game.

Update to Java 16

Since Slimefun requires 1.16 now, maybe it is time to let MobCapturer build against Java 16 as well.

Bloodmoon Advanced and MobCapturer Bug Glitch

well I found a bug in the Bloodmoon Advanced and MobCapturer plugins

server and addons slimefun: https://prnt.sc/jmkljEFnfNgj
plugin Bloodmoon Advanced version: 4.5.3

video: https://www.youtube.com/watch?v=MQNuvas72q8

in Bloodmoon the monsters don't let the armor drop, but if I capture them, and release and kill the armor drop, making me get many armors and tools from the monsters
is there a way for mobcapture not to capture these blood moon monsters, or at least detect that it is a blood moon monster when released and be deleted?
People are abusing this and taking lots of armor.

Villagers and Wandering Traders cannot be captured

Villagers cannot be captured with the launcher.

This is significant, as they are one of the most important and frustrating mobs to transport around the player's world.

This will require an adapter to ensure their trades, experience, and reputation are retained when captured.

Does not capture mobs

Description (Required)

When using the mob cannon and pellets, it just acts like throwing snowballs at the mob. It does not capture the mobs like it should. I have tried various mobs with the same result. It does give an error in the console (see below).

Steps to reproduce the Issue (Required)

Use the Mob Cannon and empty pellet. Try to capture a mob.

Expected behavior (Required)

I expect mobs to be captured.

Server Log / Error Report

https://pastebin.com/4zW1BScC

Environment (Required)

sf versions
[08:07:23 INFO]: This Server uses the following setup of Slimefun:
[08:07:23 INFO]: Paper v1_15_R1
[08:07:23 INFO]: CS-CoreLib vDEV - 90 (git 9dd4a1cf)
[08:07:23 INFO]: Slimefun vDEV - 720 (git 42f849d8)
[08:07:23 INFO]: Metrics build: #14
[08:07:23 INFO]:
[08:07:23 INFO]: Installed Addons: (1)
[08:07:23 INFO]: MobCapturer vDEV - 10 (git 33cdceb)

Health Dupe

Checklist

  • You are using official version downloaded from Blob Builds (https://blob.build)
  • You did not modify the jar file
  • You searched existing issues, and could not find any existing bug report on this

Description

When you spawn a mob using mob egg and quickly use "Mob Capture Canon" to capture it, it will increase the mob's health. Doing this several times will make it go into millions.
image
image

Video: https://streamable.com/jrurcc

Reproduction Steps

  1. Capture a Mob
  2. Spawn it using Mob Egg
  3. Capture it again
  4. Health will increase

Expected Behavior

Health saves properly and not go up

Server log

No response

Error report

No response

Server Software

Other (Please specify in description)

Minecraft Version

Leaf 1.20.4 - Also replicable on Purpur 1.20.4

Slimefun version

I've removed MobCapture to prevent further damage to the server.
[13:16:44] [Server thread/INFO]: This Server uses the following setup of Slimefun:
[13:16:44] [Server thread/INFO]: Leaf git-Leaf-"dd62783" (MC: 1.20.4)
[13:16:44] [Server thread/INFO]: Slimefun Dev - 1148
[13:16:44] [Server thread/INFO]: Metrics-Module #29
[13:16:44] [Server thread/INFO]: Java 21
[13:16:44] [Server thread/INFO]:
[13:16:44] [Server thread/INFO]: Installed Addons: (54)
[13:16:44] [Server thread/INFO]: Networks vMODIFIED_1.2.0
[13:16:44] [Server thread/INFO]: AuraSkills v2.1.4
[13:16:44] [Server thread/INFO]: ExtraTools vDEV - 36 (git 922c0324)
[13:16:44] [Server thread/INFO]: RelicsOfCthonia vDev - 13
[13:16:44] [Server thread/INFO]: SlimefunOreChunks vDEV - 15 (git 2520cb23)
[13:16:44] [Server thread/INFO]: FNAmplifications vDev - 104
[13:16:44] [Server thread/INFO]: DynaTech vMain - 31
[13:16:44] [Server thread/INFO]: SimpleMaterialGenerators v1.0.0
[13:16:44] [Server thread/INFO]: VillagerTrade vDev - 6
[13:16:44] [Server thread/INFO]: DyeBench vDEV - 6 (git ae841c2d)
[13:16:44] [Server thread/INFO]: Supreme vDev - 1
[13:16:44] [Server thread/INFO]: ElectricSpawners vDEV - 23 (git 6ec96773)
[13:16:44] [Server thread/INFO]: CompressionCraft vDEV - 25 (git dbca94b8)
[13:16:44] [Server thread/INFO]: VillagerUtil vDEV - 1 (git 0a949b19)
[13:16:44] [Server thread/INFO]: WhatIsThis v5.5
[13:16:44] [Server thread/INFO]: SlimyTreeTaps vDEV - 20 (git 963f0383)
[13:16:44] [Server thread/INFO]: EMCTech vMODIFIED
[13:16:44] [Server thread/INFO]: FlowerPower vDev - 2
[13:16:44] [Server thread/INFO]: SpiritsUnchained vDev - 24
[13:16:44] [Server thread/INFO]: ColoredEnderChests vDEV - 23 (git 4d041832)
[13:16:44] [Server thread/INFO]: FluffyMachines vDev - 8
[13:16:44] [Server thread/INFO]: Gastronomicon vDev - 3
[13:16:44] [Server thread/INFO]: Cultivation v1.0.0
[13:16:44] [Server thread/INFO]: FastMachines vBuild 37 (git 65144bc)
[13:16:44] [Server thread/INFO]: SmallSpace vDEV - 13 (git dcf995c3)
[13:16:44] [Server thread/INFO]: EcoPower vDEV - 5 (git 5c1ecd68)
[13:16:44] [Server thread/INFO]: SlimefunTranslation vDev - 24
[13:16:44] [Server thread/INFO]: DankTech2 vDEV - 9 (git aa6c2209)
[13:16:44] [Server thread/INFO]: SimpleUtils vDEV - 15 (git 4250fd5e)
[13:16:44] [Server thread/INFO]: ElementManipulation vDEV - 28 (git 2b469991)
[13:16:44] [Server thread/INFO]: MiniBlocks vDEV - 4 (git f7a34b6e)
[13:16:44] [Server thread/INFO]: CrystamaeHistoria vDEV - 81 (git 0c0efa95)
[13:16:44] [Server thread/INFO]: Quaptics vDev - 2
[13:16:44] [Server thread/INFO]: Bump vBuild 42 (git 24350a5)
[13:16:44] [Server thread/INFO]: SfChunkInfo vDev - 10
[13:16:44] [Server thread/INFO]: ExtraGear vDEV - 13 (git c62047e2)
[13:16:44] [Server thread/INFO]: SlimeHUD vDev - 2
[13:16:44] [Server thread/INFO]: InfinityExpansion vDEV - 144 (git 9da37202)
[13:16:44] [Server thread/INFO]: SFCalc vDev - 42
[13:16:44] [Server thread/INFO]: IllegalStack v2.9.11-SNAPSHOT-01
[13:16:44] [Server thread/INFO]: BetterReactor vDEV - 11 (git 88a98d28)
[13:16:44] [Server thread/INFO]: SlimeTinker v0.1.1.2
[13:16:44] [Server thread/INFO]: TranscEndence vDEV - 41 (git 98d7d47e)
[13:16:44] [Server thread/INFO]: AlchimiaVitae vDEV - 24 (git 6950e5d2)
[13:16:44] [Server thread/INFO]: HotbarPets vDEV - 38 (git fa6c871d)
[13:16:44] [Server thread/INFO]: SlimefunLuckyBlocks vDEV - 36 (git 60f0c8dc)
[13:16:44] [Server thread/INFO]: ExoticGarden vDEV - 78 (git 7f9a5f63)
[13:16:44] [Server thread/INFO]: HeadLimiter vDev - 19
[13:16:44] [Server thread/INFO]: Liquid vDEV - 14 (git 0f5346bf)
[13:16:44] [Server thread/INFO]: SoulJars vDEV - 24 (git 78d1c6fa)
[13:16:44] [Server thread/INFO]: AdvancedTech vDEV - 19 (git c133bfdd)
[13:16:44] [Server thread/INFO]: PotionExpansion vDEV - 7 (git aea4ae37)
[13:16:44] [Server thread/INFO]: SlimyRepair vDEV - 4 (git 790c41cb)

Plugin version

MobCapturer vDev - 34

Bosses cannot be captured

Withers, Wardens, and Ender Dragons cannot be captured with the launcher.

I assume this is intentional, but I think that all mobs should have capturing code in place, and the ability to capture these mobs should be simply disabled by default.

The category items for "tools" and "mob capturer" do not use their model numbers.

Checklist

  • You are using official version downloaded from Builds (https://thebusybiscuit.github.io/builds/)
  • You did not modify the jar file
  • You searched existing issues, and could not find any existing bug report on this

Description

As discussed on Discord, when applying a custom texture pack with item-models.yml, the category items for both mobcapturer and tools do not display their designated textures and instead display the default textures.

Reproduction Steps

  1. Change the item-model.yml and use any custom resource pack that has textures for all the items
  2. restart the server
  3. Textures don't apply.

Expected Behavior

The custom textures apply to both the mob capturer and items category items

Server log

No response

Error report

No response

Server Software

Purpur

Minecraft Version

1.20.x

Slimefun version

image

Plugin version

vDEV - 91 (git 085b1a8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.