Skip to content

Exclude Mobs

Tschipcraft edited this page Sep 5, 2023 · 1 revision

Exclude a specific mob type

To exclude a specific mob type, for example all zombies, you will have to edit the files inside the data pack/mod.

Data Pack vesion

  1. Unzip the data pack
  2. Navigate to /data/more_mobs/tags/entity_types/parsable.json and remove any mob types that should be excluded
  3. Rezip the data pack if needed

Mod version

  1. Unzip the mod using a third-party tool like 7-zip or clone the GitHub repository
  2. Navigate to /data/more_mobs/tags/entity_types/parsable.json and remove any mob types that should be excluded
  3. If you cloned More Mobs from GitHub, replace any occurrences of ${version}, notably in /data/more_mobs/functions/messages/welcome.mcfunction and /data/more_mobs/functions/uninstall.mcfunction, fabric.mod.json and META-INF/mods.toml with the current latest version (e.g. 1.5)
  4. Select all files in the root of the project and create a .zip file
  5. Change the extension of the created .zip file to .jar ([Make sure, File explorer shows you the file extension](windows explorer show file extensions))
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"
    ]
}

Piglins

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.

For Developers

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