tick2.mcfunction 298 B

123456
  1. # 防止玩家丢弃物品:如果物品存在 Thrower 则要求强制捡起
  2. execute as @e[type=item] if data entity @s Thrower run function item:disable_throw
  3. # 检查玩家拾取奖励物品
  4. execute as @a if data entity @s Inventory[{"tag":{"bonus_new":1b}}] run function item:bonus_item/call