Exclude Mobs - Tschipcraft/more_mobs GitHub Wiki
To exclude a specific mob type, for example all zombies, you will have to edit the files inside the data pack/mod.
Since Mojang decided to rename the registries for Minecraft 1.21, there are two files to change:
Minecraft 1.17x-1.20.6 | Minecraft 1.21+ |
---|---|
/data/more_mobs/tags/entity_types/parsable.json | /data/more_mobs/tags/entity_type/parsable.json |
-
Unzip the data pack and open the files.
-
Remove any mob types that should be excluded. Make sure that the file is properly formatted according to the JSON specifications.
-
Re-zip the data pack if needed.
The parsable.json file should look something like this: (Click to expand)
{
"replace": false,
"values": [
"minecraft:mooshroom",
"minecraft:skeleton",
"minecraft:stray",
"minecraft:wither_skeleton",
"minecraft:husk",
"minecraft:zombie",
"minecraft:drowned",
"minecraft:pillager",
"minecraft:evoker",
"minecraft:vindicator"
]
}
-
Unzip the mod using tools like 7-zip (or forks of it like NanaZip) and open the files.
-
Remove any mob types that should be excluded. Make sure that the file is properly formatted according to the JSON specifications.
-
Re-zip the mod and change the file extension back to .jar.
The parsable.json file should look something like this: (Click to expand)
{
"replace": false,
"values": [
"minecraft:mooshroom",
"minecraft:skeleton",
"minecraft:stray",
"minecraft:wither_skeleton",
"minecraft:husk",
"minecraft:zombie",
"minecraft:drowned",
"minecraft:pillager",
"minecraft:evoker",
"minecraft:vindicator"
]
}
As an alternative to installing third-party tools for unpacking the mod version, you can also build the project from source.
Piglins are not located inside the parsable.json file to preserve compatibility with pre-1.16 Minecraft versions. Piglins can be disabled with the command /scoreboard players set $disable_piglins ts.mm.settings 1
in game.
To summon a mob that won't be affected by More Mobs, you can give it the tag ts.mm.exclude.
/summon zombie ~ ~ ~ {Tags:[ts.mm.exclude]}
or tag @s add ts.mm.exclude
If you have any questions, need help or want to suggest changes, feel free to open an issue here on GitHub.