Skip to content

Commit

Permalink
Update summon_creeper.mcfunction
Browse files Browse the repository at this point in the history
1.19 uses another datatype
changelog:
The type of the field Id in the mob effect structure (for example, in the ActiveEffects list on entities) has been changed from byte to int
  • Loading branch information
weeedy authored Jun 18, 2022
1 parent 0b1a58b commit afb051c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/danielrh/functions/acg/summon_creeper.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
summon minecraft:creeper ~ ~ ~ {ignited: true, Fuse: 0b, Tags: ["acg_bomb", "acg_uc"]}

# A powered creeper is represented by effect 26 (luck) being ambient
data modify entity @e[type=minecraft:creeper,tag=acg_uc,limit=1,sort=nearest] powered set from entity @s Effects[{Id: 26b}].Ambient
data modify entity @e[type=minecraft:creeper,tag=acg_uc,limit=1,sort=nearest] powered set from entity @s Effects[{Id: 26}].Ambient

# Cleanup
tag @e[type=minecraft:creeper,tag=acg_uc,limit=1,sort=nearest] remove acg_ug
data remove entity @s Effects[{Id:26b}]
data remove entity @s Effects[{Id:27b}]
data remove entity @s Effects[{Id:26}]
data remove entity @s Effects[{Id:27}]
execute unless data entity @s Effects run kill @s

0 comments on commit afb051c

Please sign in to comment.