Explorar el Código

diamond判断完掉落移除物品tag

HerobrineXia hace 5 años
padre
commit
6ef153a99b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      data/mini/functions/diamond/player_death.mcfunction

+ 2 - 1
data/mini/functions/diamond/player_death.mcfunction

@@ -20,4 +20,5 @@ execute if score #total_drop temp matches 1.. run function mini:diamond/game/ite
 tag @s add dead_player
 execute as @e[type=item,tag=death_drop] run data modify entity @s Thrower set from entity @a[tag=dead_player,limit=1] UUID
 tag @s remove dead_player
-execute as @e[type=item,tag=death_drop] run function item:disable_throw
+execute as @e[type=item,tag=death_drop] run function item:disable_throw
+tag @e[type=item] remove death_drop