Skip to content

Commit e98d4b7

Browse files
committed
Add native NeoForge support
Added native NeoForge support (closes #32, closes #18)
1 parent 3a5be03 commit e98d4b7

File tree

22 files changed

+227
-8
lines changed

22 files changed

+227
-8
lines changed

META-INF/neoforge.mods.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
modLoader = "javafml"
2+
loaderVersion="[3,)"
3+
license="Custom"
4+
logoFile="pack.png"
5+
logoBlur=false
6+
showAsDataPack=true
7+
8+
[[mods]]
9+
modId="spawnanimations"
10+
version="${version}+mod"
11+
displayName="Spawn Animations"
12+
description='''Hostile mobs dig out of the ground or poof into existence when they spawn!
13+
14+
§lWorks with:§r Zombies, Husks, Drowned, Skeletons, Strays, Bogged, Spiders, Cave Spiders, Creepers, Slimes, Magma Cubes, Wither Skeletons, Hoglins, Zombified Piglins, Striders, Enderman and Giants.
15+
16+
This data pack is designed to be as unintrusive as possible. Hidden entities including their worn armor and tools will only be invisible and silent.
17+
18+
Execute the command §o/function §ospawnanimations:settings§r for a world-specific settings menu and/or install MidnightLib for global settings across all worlds.
19+
'''
20+
authors="Tschipcraft"
21+
displayURL="https://modrinth.com/mod/zrzYrlm0"
22+
issueTrackerURL="https://github.com/Tschipcraft/spawnanimations/issues"
23+
updateJSONURL="https://api.modrinth.com/updates/zrzYrlm0/forge_updates.json?neoforge=only"
24+
displayTest="IGNORE_SERVER_VERSION"
25+
26+
[[dependencies.spawnanimations]]
27+
modId="minecraft"
28+
type="required"
29+
versionRange="${mc_version_range_neoforge}"
30+
ordering="NONE"
31+
side="BOTH"
32+
33+
[[dependencies.spawnanimations]]
34+
modId="midnightlib"
35+
type="optional"
36+
versionRange="[1.0.0,)"
37+
ordering="NONE"
38+
side="BOTH"
39+
referralUrl="https://modrinth.com/mod/codAaoxh/versions?l=neoforge"
40+
reason="For global settings across all worlds."
41+
42+
[modproperties.spawnanimations]
43+
catalogueItemIcon="minecraft:zombie_spawn_egg"

assets/spawnanimations/lang/en_us.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"spawnanimations.midnightconfig.activation_mode": "Activation Mode",
1616
"spawnanimations.midnightconfig.activation_mode.tooltip": "Default: §aClassic§f\n§nClassic§r: Out of range mobs will stay hidden until a player is in range\n§nVanilla§r: Out of range mobs will spawn normally",
1717
"spawnanimations.midnightconfig.hide_worn_armor_and_tools": "Hide worn armor and tools",
18-
"spawnanimations.midnightconfig.hide_worn_armor_and_tools.tooltip": "Default: §aYes§f\nIf enabled, stores the worn armor and tools in the feet and in some versions leggings slot of a hidden entity.\n§6⚠ Note: This may impact worn armor and tool drop rates from farms.",
18+
"spawnanimations.midnightconfig.hide_worn_armor_and_tools.tooltip": "Default: §aYes§f\nIf enabled, stores the worn armor and tools in the feet and in some versions leggings slot of a hidden entity.\n§6⚠ Note: This may impact worn armor and tool drop rates from farms when enabled.",
1919
"spawnanimations.midnightconfig.play_animation_on_unsupported_blocks": "Play block break animation on unsupported blocks",
20-
"spawnanimations.midnightconfig.play_animation_on_unsupported_blocks.tooltip": "Default: §cNo§f\nIf enabled, plays a block breaking animation even on blocks that are not hard-coded into the data pack.\n§6⚠ Note: This could lead to unwanted block updates.",
20+
"spawnanimations.midnightconfig.play_animation_on_unsupported_blocks.tooltip": "Default: §cNo§f\nIf enabled, plays a block breaking animation even on blocks that are not hard-coded into the data pack.\n§6⚠ Note: This could lead to unwanted block updates when enabled.",
2121

2222
"spawnanimations.midnightconfig.enum.bool.WORLD": "§bWorld-Specific",
2323
"spawnanimations.midnightconfig.enum.bool.YES": "§a[✔] Yes",

data/spawnanimations/function/uninstall.mcfunction

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ data remove storage spawnanimations:temp ArmorItems
3939
datapack disable "file/spawnanimations.zip"
4040
datapack disable "file/spawnanimations"
4141
datapack disable "mod:spawnanimations"
42+
datapack disable "mod/spawnanimations"
4243
datapack disable "file/${file_name}"
4344

4445
say ⏻ Spawn Animations v${version} by Tschipcraft has been uninstalled by @s! It is safe to disable and remove the data pack/mod.

data/spawnanimations/functions/uninstall.mcfunction

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ data remove storage spawnanimations:temp ArmorItems
3939
datapack disable "file/spawnanimations.zip"
4040
datapack disable "file/spawnanimations"
4141
datapack disable "mod:spawnanimations"
42+
datapack disable "mod/spawnanimations"
4243
datapack disable "file/${file_name}"
4344

4445
say ⏻ Spawn Animations v${version} by Tschipcraft has been uninstalled by @s! It is safe to disable and remove the data pack/mod.
1 Byte
Binary file not shown.
0 Bytes
Binary file not shown.
157 Bytes
Binary file not shown.
1.35 KB
Binary file not shown.
1.36 KB
Binary file not shown.
1.57 KB
Binary file not shown.

0 commit comments

Comments
 (0)