-
-
Notifications
You must be signed in to change notification settings - Fork 2
Exclude Include Entities
This project supports adding or removing the currently existing animations to any entity in the game.
Since Mojang decided to rename the registries for Minecraft 1.21, there are two locations:
Minecraft 1.17x-1.20.6 | Minecraft 1.21+ |
---|---|
/data/spawnanimations/tags/entity_types/ | /data/spawnanimations/tags/entity_type/ |
-
Unzip the data pack and navigate to the directory.
Here you will find the filesdig_up_animation.json
,always_poof_animation.json
,can_wear_armor.json
,exclude.json
and the particles subfolder. -
To add the dig up animation to an entity, simply append the entity ID to the
dig_up_animation.json
file. To use the poof animation instead, append it to bothdig_up_animation.json
andalways_poof_animation.json
(Will be changed in the future).
To give it nether or end particles, also append it to theend_mob.json
and/ornether_mob.json
files in the particles subfolder.
If the entity supports wearing armor, add it to thecan_wear_armor.json
file.
Theexclude.json
file is primarily used for technical entities. To exclude an entity, simply remove it from the other files instead of adding it here.
Make sure that the files are properly formatted according to the JSON specifications. -
Re-zip the data pack if needed.
Take a look at the files here on GitHub.
-
Unzip the mod using tools like 7-zip (or forks of it like NanaZip) and navigate to the directory.
Here you will find the filesdig_up_animation.json
,always_poof_animation.json
,can_wear_armor.json
,exclude.json
and the particles subfolder. -
To add the dig up animation to an entity, simply append the entity ID to the
dig_up_animation.json
file. To use the poof animation instead, append it to bothdig_up_animation.json
andalways_poof_animation.json
(Will be changed in the future).
To give it nether or end particles, also append it to theend_mob.json
and/ornether_mob.json
files in the particles subfolder.
If the entity supports wearing armor, add it to thecan_wear_armor.json
file.
Theexclude.json
file is primarily used for technical entities. To exclude an entity, simply remove it from the other files instead of adding it here.
Make sure that the files are properly formatted according to the JSON specifications. -
Re-zip the mod and change the file extension back to .jar.
Take a look at the files here on GitHub.
Tip
If you want to add a failsafe (e.g. when adding modded or version dependent entities), wrap the entries inside a {"id": "<id>", "required": false}
block.
As an alternative to installing third-party tools for unpacking the mod version, you can also build the project from source.
To summon a mob that won't be affected by Spawn Animations, you can give it the tag exclude (I should change this to a more unique tag in the next update...).
/summon zombie ~ ~ ~ {Tags:[exclude]}
or tag @s add exclude
If you have any questions, need help or want to suggest changes, feel free to open an issue here on GitHub.