Skip to content

Commit 2bba74a

Browse files
authored
allow tadpoles to be everstoned (#1125)
1 parent 8657ac8 commit 2bba74a

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

gm4_everstone/data/gm4_everstone/function/age_locking/check.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tag @e[distance=..1,type=#gm4_everstone:affected,limit=1,tag=!gm4_everstone_lock
88
function #gm4_everstone:age_locking_check
99

1010
execute as @e[type=#gm4_everstone:affected,distance=..1,tag=gm4_everstone_check,limit=1] store result score @s gm4_es_data run data get entity @s Age
11-
scoreboard players set @e[type=#gm4_everstone:aging_mob,distance=..1,tag=gm4_everstone_check,limit=1] gm4_es_data -1
11+
scoreboard players set @e[type=#gm4_everstone:force_age_lock,distance=..1,tag=gm4_everstone_check,limit=1] gm4_es_data -1
1212
execute as @e[type=#gm4_everstone:affected,distance=..1,tag=gm4_everstone_check,limit=1,scores={gm4_es_data=..-1}] at @s run function gm4_everstone:age_locking/lock_age
1313
scoreboard players reset @e[distance=..1] gm4_es_data
1414
tag @e[distance=..1] remove gm4_everstone_check

gm4_everstone/data/gm4_everstone/tags/entity_type/affected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
"minecraft:villager",
2929
"minecraft:wolf",
3030
"minecraft:zombie_horse",
31-
"#gm4_everstone:aging_mob"
31+
"#gm4_everstone:force_age_lock"
3232
]
3333
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"values": [
3+
"#gm4_everstone:aging_mob",
4+
"minecraft:tadpole"
5+
]
6+
}

0 commit comments

Comments
 (0)