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 相同的玩家
 # 将物品传送给与丢弃者 UUID 相同的玩家
 execute store result score @s UUID run data get entity @s Thrower[0]
 execute store result score @s UUID run data get entity @s Thrower[0]
 tag @s add item_force_tp
 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"}]