promotional bannermobile promotional banner
premium banner
Makes zombies attack any other (non modded) entity except when a player is close.

Description

COMPLETELY REMADE

I originally made this mod with mcreator, which was.. well.. bad. Now I actually coded it, meaning a better, more optimized mod. Some important features:

CUSTOMIZABILITY:

You can now exclude any mob from the zombie so that they wont attack them, in the base mod theres the creeper, zombie villager, zombies, drowneds and zombie horse.

But you can add any entity to it. You just need to make a datapack, now if you dont want to bother making it, I made an example pack which you can download here which you can just modify.

 

FOR THE 1.21.1 VERSION, RENAME "entity_types" FOLDER TO "entity_type". SO REMOVE THE S AT THE END.

 

If you dont want to do that, heres a tutorial:

TLDR; namespace->data->zombiesattackeverything->tags->entity_types->zombie_friendly_type.json

FOR THE 1.21.1 VERSION, RENAME "entity_types" FOLDER TO "entity_type". SO REMOVE THE S AT THE END.

First make a datapack, pretty simple, just make a folder named whatever you want, then in that folder add a file named "pack.mcmeta" (without the qoutes obviously) and add this text in it:

{
  "pack": {
    "description": "this datapack does yadayada cool description whatever",
    "pack_format": 61
  }
}

 

now the description is just what the text under the datapack is gonna be when you add it to your world, it doesnt really matter that much, the pack_format doesnt really matter either, its there to show what version its for but it being 1 (for example) doesnt stop the datapack from functioning on the latest version.

then add another folder called "data" and in there add a folder called "zombiesattackanything", in that add a folder called "entity_types" and in that add a file called "zombie_friendly_type.json". in there add the following text:

{
"replace": false,
"values": [
"namespace:entityid",
"minecraft:zombie"
]
}

 and voilà, done! 

 

  

This mod makes any zombie attack another entity, that is in the vanilla game, when a player in survival is not close.This way you can make your apocalypse world feel real where zombies actually attack other mobs.undefinedfor forge 1.20.1 and neoforge 1.20.4 only. If you have any suggestions or bugs where they dont kill a specific mobs then please tell me in the comments