Mobs Attempt Parkour
This mod gives some mobs a simple jumping ai that allows them to jump over obstacles and gaps in their way.
The mobs that currently have the jumping ability are Zombies, Zombie Villagers, Zombified Piglins, Silverfish, Endermites, Endermen, Wither Skeletons, Skeletons, Spiders, Cave Spiders, Illagers, Witches, Iron Golems, and Creepers.
The AI attempts to be realistic to vanilla jumping, which means that slow mobs can't jump very far. (Zombies can only jump one block for example).
The ai does not do additional pathfinding, so it can't calculate a complicated series of jumps. Also, the ai starts to fail under very fast mob speeds or high jumps.
The config file uses JSON. Add a mob by listing its id, and a priority. You can find mob ids by using the /summon command - the list of arguments will be a list of mob ids. The priority is a bit jenky. It represents what priority the AI has over other AIs. A lower value means that the jumping AI probably won't be overridden, but it might override other AI's. Unfortunately, the most certain way to gauge this is to look at the entity source code, but setting a low priority should in most cases be totally fine.
Can you port this mod to Forge or an older Minecraft version?
- I will not, but anyone else may do so.
Made for Fabric Modfest 1.16.