refresh_equip.mcfunction 789 B

12345678910111213141516171819202122232425
  1. # 刷新单个玩家购买的物品
  2. clear @s arrow
  3. give @s[scores={shop_arrow=1}] arrow 2
  4. give @s[scores={shop_arrow=2}] tipped_arrow{Potion:"minecraft:slowness"} 3
  5. clear @s wooden_hoe
  6. clear @s stone_hoe
  7. give @s[scores={shop_weapon=1}] wooden_hoe
  8. give @s[scores={shop_weapon=2}] stone_hoe
  9. clear @s potion
  10. give @s[scores={shop_potion=1}] potion
  11. clear @s golden_apple
  12. give @s[scores={shop_potion=1}] golden_apple
  13. replaceitem entity @s armor.head air
  14. replaceitem entity @s[scores={shop_armor=1}] armor.head leather_helmet
  15. replaceitem entity @s armor.chest air
  16. replaceitem entity @s[scores={shop_armor=3}] armor.chest leather_chestplate
  17. replaceitem entity @s armor.legs air
  18. replaceitem entity @s[scores={shop_armor=2}] armor.legs leather_leggings
  19. # FIXME : 幻翼击杀数有旁观显示