Skip to content

Commit d748c2f

Browse files
committed
Add support for 1.21.6
- Bumped pack format and protocol version to mark 1.21.6 support - Fixed 1.21.5 NeoForge crash when installed alongside MidnightLib - Added Spawn Animations Compats by Fyoncle as an optional dependency - Updated README - Updated GitHub workflow
1 parent 40a5d7c commit d748c2f

File tree

11 files changed

+39
-24
lines changed

11 files changed

+39
-24
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ jobs:
246246
version: ${{ github.event.inputs.tag }}
247247
changelog-file: CHANGES.md
248248

249+
dependencies: |
250+
mr_spawn_animationscompats(optional){modrinth:ofDka6PS}
249251
loaders: |
250252
datapack
251253
files: |
@@ -269,6 +271,7 @@ jobs:
269271
dependencies: |
270272
fabric-api(required){modrinth:P7dR8mSH}
271273
qsl(required){modrinth:qvIfYCYJ}
274+
mr_spawn_animationscompats(optional){modrinth:ofDka6PS}
272275
modmenu(optional){modrinth:mOgUt4GM}
273276
modmenu-badges-lib(optional){modrinth:eUw8l2Vi}
274277
midnightlib(optional){modrinth:codAaoxh}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ jobs:
296296
<img alt="✅ Success" src="https://raw.githubusercontent.com/Mqxx/GitHub-Markdown/main/blockquotes/badge/dark-theme/success.svg">
297297
</picture><br>
298298
299-
**${{ github.event.repository.name }} v${{ env.TAG }}** for **Minecraft ${{ env.MC_HUMAN_VERSION_RANGE }}** built successfully! [See changes since last release](https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/CHANGES.md).
299+
**${{ github.event.repository.name }} v${{ env.TAG }}** for **Minecraft ${{ env.MC_HUMAN_VERSION_RANGE }}** built successfully! [See changes since last release](https://github.com/${{ github.repository }}/blob/${{ github.sha }}/CHANGES.md).
300300
301301
[Download via nightly.link](https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }})
302302

CHANGES.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
- **Added support for Minecraft 1.21.5** 🌸
2-
- Updated to work with new equipment NBT format, new text component format, FallDistance NBT renaming, and potion entity ID renaming
3-
- Hide worn armor and tools now uses the unified `armor.body` slot instead of `armor.feet` in 1.21.5 and above to allow better late loot recovery
4-
- **Added native NeoForge support** (closes [#32](https://github.com/Tschipcraft/spawnanimations/issues/32), [#18](https://github.com/Tschipcraft/spawnanimations/issues/18))
5-
- Hardened the Play animation on unsupported blocks option
6-
- Fixed incompatibility with [PandaAntiPermanentBlockBreak](https://modrinth.com/mod/Tb16z0yT) mod (closes [#38](https://github.com/Tschipcraft/spawnanimations/issues/38))
7-
- Added `is_riding` and `has_passengers` exclusion checks to the loop, fixing zombies not being excluded when riding zombie horses from the [Zombie Horse Spawn](https://modrinth.com/mod/owDBGfRd) mod in 1.20.1
8-
- Fixed mobs not adjusting their animation speed during their animation
9-
- Fixed version checker messages not being displayed
10-
- Annotated required java version for mod versions
1+
- **Added support for Minecraft 1.21.6** ☁️
2+
- Fixed 1.21.5 NeoForge crash when installed alongside MidnightLib

META-INF/mods.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,13 @@ features={ java_version = "[17,)" }
3939
side="BOTH"
4040
referralUrl="https://modrinth.com/mod/codAaoxh/versions?l=forge"
4141

42+
[[dependencies.spawnanimations]]
43+
modId="mr_spawn_animationscompats"
44+
mandatory=false
45+
versionRange="[1.0,)"
46+
ordering="NONE"
47+
side="BOTH"
48+
referralUrl="https://modrinth.com/mod/ofDka6PS/versions?l=forge"
49+
4250
[modproperties.spawnanimations]
4351
catalogueItemIcon="minecraft:zombie_spawn_egg"

META-INF/neoforge.mods.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,14 @@ features={ java_version = "[21,)" }
4040
referralUrl="https://modrinth.com/mod/codAaoxh/versions?l=neoforge"
4141
reason="Global settings across all worlds"
4242

43+
[[dependencies.spawnanimations]]
44+
modId="mr_spawn_animationscompats"
45+
type="optional"
46+
versionRange="[1.0,)"
47+
ordering="NONE"
48+
side="BOTH"
49+
referralUrl="https://modrinth.com/mod/ofDka6PS/versions?l=neoforge"
50+
reason="Compatibility with other mods"
51+
4352
[modproperties.spawnanimations]
4453
catalogueItemIcon="minecraft:zombie_spawn_egg"

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<h1 align="center">
22
<img alt="Icon" src="pack.png" width="128" height="128" style="image-rendering: pixelated"><br/>
3-
Spawn Animations
3+
Tschipcraft's Spawn Animations
44
</h1>
55
<p align="center">
66
<a href="https://github.com/Tschipcraft/spawnanimations/stargazers"><img alt="GitHub Stars" src="https://img.shields.io/github/stars/Tschipcraft/spawnanimations?colorA=151513&colorB=e3e1ce&style=for-the-badge"></a>
7-
<a href="https://www.curseforge.com/minecraft/texture-packs/spawn-animations"><img alt="CurseForge Downloads" src="https://img.shields.io/curseforge/dt/811803?label=CurseForge&colorA=151513&colorB=e3e1ce&style=for-the-badge&logo=curseforge"></a>
7+
<a href="https://www.curseforge.com/minecraft/mc-mods/spawn-animations-mod"><img alt="CurseForge Downloads" src="https://img.shields.io/curseforge/dt/1223719?label=CurseForge&colorA=151513&colorB=e3e1ce&style=for-the-badge&logo=curseforge"></a>
88
<a href="https://modrinth.com/datapack/spawn-animations"><img alt="Modrinth Downloads" src="https://img.shields.io/modrinth/dt/spawn-animations?label=Modrinth&colorA=151513&colorB=e3e1ce&style=for-the-badge&logo=modrinth"></a>
99
<a href="https://github.com/Tschipcraft/spawnanimations/releases/latest"><img alt="GitHub Downloads" src="https://img.shields.io/github/downloads/Tschipcraft/spawnanimations/total?logo=github&colorA=151513&colorB=e3e1ce&style=for-the-badge"></a>
1010
</p>
@@ -20,7 +20,7 @@ Zombies, Husks, Drowned, Skeletons, Strays, Bogged, Spiders, Cave Spiders, Creep
2020

2121
This data pack/mod is designed to be as unintrusive as possible. Hidden entities including their worn armor and tools will only be invisible and silent.
2222

23-
This data pack/mod is completely server-side, but can also be installed on the client for singleplayer worlds!
23+
This project is completely server-side, but can also be installed on the client for single-player worlds!
2424

2525
[➜ For available settings and customization, take a look at the wiki](https://github.com/Tschipcraft/spawnanimations/wiki)
2626

@@ -34,14 +34,16 @@ More sophisticated animations with Animated Java are planned for v2.0.
3434
<img alt="Enderman digging up" src="https://i.imgur.com/0rLJakI.gif" width=55%>
3535
</details>
3636

37-
3837
## Installation
3938

40-
Download the latest release from [here](https://github.com/Tschipcraft/spawnanimations/releases/latest) and put the data pack .zip file into the `datapacks` folder of your Minecraft world.
39+
[Download the latest release](https://github.com/Tschipcraft/spawnanimations/releases/latest) and install either as:
40+
41+
* **Data Pack** ➜ Place `.zip` in your world's `datapacks` folder
42+
* **Mod** ➜ Drop into your `mods` folder and optionally install [MidnightLib](https://modrinth.com/project/codAaoxh) for a global config file and UI
4143

4244
For Minecraft 1.14, 1.15 and 1.16 use [a legacy edition](https://github.com/Tschipcraft/spawnanimations/tree/master/other_editions).
4345

44-
This data pack is also available as a mod with an additional global config file and settings menu when installed alongside [MidnightLib](https://modrinth.com/mod/midnightlib). Download the latest release and put the mod .jar file into your `.minecraft/mods` folder.
46+
To manage settings, reset, or uninstall the pack, use `/trigger tschipcraft.menu` or `/function #tschipcraft:menu`.
4547

4648
Also available on Modrinth and CurseForge!
4749

@@ -52,7 +54,7 @@ Also available on Modrinth and CurseForge!
5254
<img height="72px" alt="Download on Modrinth" src="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/modrinth-badge-dark.svg">
5355
</picture>
5456
</a>
55-
<a href="https://www.curseforge.com/minecraft/texture-packs/spawn-animations">
57+
<a href="https://www.curseforge.com/minecraft/data-packs/spawn-animations">
5658
<picture>
5759
<source height="72px" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/curseforge-badge-dark.svg">
5860
<source height="72px" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/Tschipcraft/badges/main/assets/curseforge-badge-light.svg">
@@ -64,6 +66,6 @@ Also available on Modrinth and CurseForge!
6466

6567
Development builds are available on [GitHub Actions](https://github.com/Tschipcraft/spawnanimations/actions/workflows/ci.yml). These builds are not guaranteed to be stable and may contain bugs. Please always back up your world before using them.
6668

67-
## Manage
69+
## Compatibility
6870

69-
To open the ingame menu, execute `/trigger tschipcraft.menu` or `/function #tschipcraft:menu`. There is a **Reset** and an **Uninstall** button.
71+
This data pack implements the [Smithed](https://wiki.smithed.dev/conventions/) and essential [MC Datapacks Discord Server](https://mc-datapacks.github.io/en/conventions/index.html) Conventions to ensure data pack compatibility.

data/spawnanimations/function/internal/version_checker/start.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
##by Tschipcraft
22

33
execute store result score $version ts.sa.settings run data get entity @r DataVersion
4-
execute unless score $global tvc_ignore matches 1 if score $version ts.sa.settings matches 4400.. run tellraw @a [{"text":"[Spawn Animations] ","color":"gray"},{"text":"?","bold":true,"color":"gold"},{"text":" Future unknown Minecraft version above 1.21.4 detected! This data pack/mod may not work correctly anymore! Please make sure to check for updates in the menu! (","color":"gold"},{"text":"/trigger tschipcraft.menu","underlined":true,"color":"gold","click_event":{"action":"run_command","command":"trigger tschipcraft.menu"},"hover_event":{"action":"show_text","value":"Click here","text":"Click here"}},{"text":")","color":"gold"}]
4+
execute unless score $global tvc_ignore matches 1 if score $version ts.sa.settings matches 4500.. run tellraw @a [{"text":"[Spawn Animations] ","color":"gray"},{"text":"?","bold":true,"color":"gold"},{"text":" Future unknown Minecraft version above 1.21.6 detected! This data pack/mod may not work correctly anymore! Please make sure to check for updates in the menu! (","color":"gold"},{"text":"/trigger tschipcraft.menu","underlined":true,"color":"gold","click_event":{"action":"run_command","command":"trigger tschipcraft.menu"},"hover_event":{"action":"show_text","value":"Click here","text":"Click here"}},{"text":")","color":"gold"}]
55
# Note: 1.17x-1.20x uses the old folder names (function -> functions)
66

77
# Announce escape sequence handling changes

fabric.mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"recommends": {
2929
"modmenu": "*",
3030
"modmenu-badges-lib": "*",
31-
"midnightlib": "*"
31+
"midnightlib": "*",
32+
"mr_spawn_animationscompats": "*"
3233
},
3334
"custom": {
3435
"modmenu": {
0 Bytes
Binary file not shown.

pack.mcmeta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "spawnanimations",
33
"pack": {
44
"pack_format": 15,
5-
"supported_formats": [7, 71],
5+
"supported_formats": [7, 80],
66
"description": "Tschipcraft's Spawn Animations\n└ v${version} ● mc${mc_human_version_range}"
77
},
88
"overlays": {

0 commit comments

Comments
 (0)