minerace/data/emk/functions/box/open.mcfunction

4 lines
317 B
Mcfunction

playsound minecraft:block.ender_chest.open master @a
kill @e[type=end_crystal,distance=...01]
scoreboard players set @s emk-timer 150
execute unless score @e[tag=emk-sel2,limit=1] emk-timer matches 1.. unless score @e[tag=emk-sel2,limit=1] emk-item matches 1.. run scoreboard players set @e[tag=emk-sel2] emk-timer 91