-
-
Couldn't load subscription status.
- 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.jsonand the particles subfolder. -
To add the dig up animation to an entity, simply append the entity ID to the
dig_up_animation.jsonfile. To use the poof animation instead, append it to bothdig_up_animation.jsonandalways_poof_animation.json(Will be changed in the future).
To give it nether or end particles, also append it to theend_mob.jsonand/ornether_mob.jsonfiles in the particles subfolder.
If the entity supports wearing armor, add it to thecan_wear_armor.jsonfile.
Theexclude.jsonfile 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.jsonand the particles subfolder. -
To add the dig up animation to an entity, simply append the entity ID to the
dig_up_animation.jsonfile. To use the poof animation instead, append it to bothdig_up_animation.jsonandalways_poof_animation.json(Will be changed in the future).
To give it nether or end particles, also append it to theend_mob.jsonand/ornether_mob.jsonfiles in the particles subfolder.
If the entity supports wearing armor, add it to thecan_wear_armor.jsonfile.
Theexclude.jsonfile 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 ts.sa.exclude.
/summon zombie ~ ~ ~ {Tags:[ts.sa.exclude]} or tag @s add ts.sa.exclude
For v1.10.3 and below, this tag was simply exclude.
If you have any questions, need help or want to suggest changes, feel free to open an issue here on GitHub.