refresh_equip.mcfunction 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # 刷新单个玩家购买的物品
  2. # 01
  3. clear @s bow
  4. give @s[scores={shop_01_bow=1}] bow{display:{Name:'{"text":"破损的弓","italic":false,"color":"gray"}'},Damage:382}
  5. give @s[scores={shop_01_bow=2}] bow{display:{Name:'{"text":"弓","italic":false,"color":"gray"}'},Damage:346}
  6. give @s[scores={shop_01_bow=3}] bow{display:{Name:'{"text":"<冲击 I> 弓","italic":false,"color":"white"}'},Damage:346,Enchantments:[{id:"minecraft:punch",lvl:1s}]}
  7. # 02
  8. clear @s arrow
  9. clear @s tipped_arrow
  10. give @s[scores={shop_02_arrow=1}] arrow
  11. give @s[scores={shop_02_arrow=2}] arrow 2
  12. give @s[scores={shop_02_arrow=3}] tipped_arrow{Potion:"minecraft:slowness"} 2
  13. # 03
  14. clear @s golden_apple
  15. clear @s enchanted_golden_apple
  16. give @s[scores={shop_03_apple=1}] golden_apple{display:{Lore:['{"text":"在部分小游戏中食用能使生命 +1","italic":false,"color":"gray"}'],Name:'{"text":"金苹果","italic":false,"color":"aqua"}'}}
  17. give @s[scores={shop_03_apple=2}] enchanted_golden_apple{display:{Name:'{"text":"附魔金苹果","italic":false,"color":"light_purple"}',Lore:['{"text":"在部分小游戏中食用能使当前生命加倍","italic":false,"color":"gray"}']}}
  18. scoreboard players reset @s shop_03_apple
  19. # 04
  20. clear @s splash_potion
  21. give @s[scores={shop_04_float=1}] splash_potion{CustomPotionEffects:[{Id:25,Amplifier:1,Duration:50}],CustomPotionColor:8039610,display:{Name:'{"text":"喷溅型浮空药水","italic":false,"color":"gray"}'}}
  22. give @s[scores={shop_04_float=2}] splash_potion{CustomPotionEffects:[{Id:25,Amplifier:1,Duration:70}],CustomPotionColor:8039610,display:{Name:'{"text":"喷溅型浮空药水","italic":false,"color":"white"}'}}
  23. # 05
  24. clear @s wooden_axe
  25. clear @s golden_axe
  26. give @s[scores={shop_05_axe=1}] wooden_axe{display:{Name:'{"text":"木斧","italic":false,"color":"gray"}'},Damage:54}
  27. give @s[scores={shop_05_axe=2}] golden_axe{display:{Name:'{"text":"金斧","italic":false,"color":"gray"}'},Damage:28}
  28. give @s[scores={shop_05_axe=3}] golden_axe{display:{Name:'{"text":"金斧","italic":false,"color":"white"}'},Damage:25}
  29. # 06
  30. item replace entity @s armor.feet with air
  31. item replace entity @s[scores={shop_06_armor=1}] armor.feet with leather_boots{display:{Name:'{"text":"皮革靴子","italic":false,"color":"gray"}'}}
  32. item replace entity @s[scores={shop_06_armor=2}] armor.feet with iron_boots{display:{Name:'{"text":"铁靴子","italic":false,"color":"gray"}'}}
  33. item replace entity @s[scores={shop_06_armor=3}] armor.feet with diamond_boots{display:{Name:'{"text":"钻石靴子","italic":false,"color":"white"}'}}
  34. item replace entity @s[scores={shop_06_armor=4}] armor.feet with netherite_boots{display:{Name:'{"text":"下界合金靴子","italic":false,"color":"aqua"}'}}
  35. # 07
  36. clear @s fishing_rod
  37. give @s[scores={shop_07_fish=1}] fishing_rod{display:{Name:'{"text":"一次性钓鱼竿","italic":false,"color":"gray"}'},Damage:64}
  38. give @s[scores={shop_07_fish=2..}] fishing_rod{display:{Name:'{"text":"钓鱼竿","italic":false,"color":"white"}'},Damage:60}