Просмотр исходного кода

diamond判断完掉落移除物品tag

HerobrineXia 5 лет назад
Родитель
Сommit
6ef153a99b
1 измененных файлов с 2 добавлено и 1 удалено
  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