00ll00 6 лет назад
Родитель
Сommit
523c6b403c
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      data/item/functions/disable_throw.mcfunction

+ 3 - 1
data/item/functions/disable_throw.mcfunction

@@ -7,4 +7,6 @@ data modify entity @s Owner set from entity @s Thrower
 # 将物品传送给与丢弃者 UUID 相同的玩家
 execute store result score @s UUID run data get entity @s Thrower[0]
 tag @s add item_force_tp
-execute as @a if score @s UUID = @e[type=item,tag=item_force_tp,limit=1] UUID run tp @e[type=item,tag=item_force_tp] @s
+execute as @a if score @s UUID = @e[type=item,tag=item_force_tp,limit=1] UUID run tp @e[type=item,tag=item_force_tp] @s
+
+tellraw @a ["防止物品丢弃",{"selector": "@s"}]