# 防止玩家丢弃物品:如果物品存在 Thrower 则要求强制捡起 execute unless score $survival mem matches 1.. as @e[type=item] if data entity @s Thrower run function item:disable_throw execute if score $survival mem matches 1.. unless score $state mem matches 5 as @e[type=item] if data entity @s Thrower run function item:disable_throw # 检查玩家拾取奖励物品 execute as @a if data entity @s Inventory[{"tag":{"bonus_new":1b}}] run function item:bonus_item/call # 检测玩家格子锁定 execute if score $state mem matches 1.. unless score $state mem matches 6 unless score $survival mem matches 1.. as @a[team=!debugging] run function item:disable_slot/check_slot execute if score $state mem matches 0 as @a run function ltw:state/0/state/check_slot execute if score $state mem matches 0.. run kill @e[type=item,tag=LockTempItem] # 检查购买物品 execute as @a run function item:shop/check