00ll00 6 年之前
父節點
當前提交
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"}]