| 123456789101112131415161718192021222324252627282930313233343536 |
- # 刷新单个玩家购买的物品
- clear @s bow
- give @s[scores={shop_bow=1}] bow{display:{Name:'{"text":"弓","italic":false,"color":"gray"}'},Damage:381}
- clear @s wooden_shovel
- clear @s stone_shovel
- give @s[scores={shop_weapon=1}] wooden_shovel{display:{Name:'{"text":"木锹","italic":false,"color":"gray"}'}}
- give @s[scores={shop_weapon=2..}] stone_shovel{display:{Name:'{"text":"石锹","italic":false,"color":"gray"}'}}
- clear @s splash_potion
- give @s[scores={shop_potion_spd=1}] splash_potion{CustomPotionEffects:[{Id:1,Amplifier:0,Duration:300}],CustomPotionColor:8039610,display:{Name:'{"text":"喷溅型迅捷药水","italic":false,"color":"gray"}'}}
- give @s[scores={shop_potion_spd=2}] splash_potion{CustomPotionEffects:[{Id:1,Amplifier:1,Duration:300}],CustomPotionColor:8039610,display:{Name:'{"text":"喷溅型迅捷药水","italic":false,"color":"gray"}'}}
- give @s[scores={shop_potion_rst=1}] splash_potion{CustomPotionEffects:[{Id:11,Amplifier:0,Duration:400}],CustomPotionColor:9913400,display:{Name:'{"text":"喷溅型抵抗药水","italic":false,"color":"gray"}'}}
- clear @s golden_apple
- clear @s enchanted_golden_apple
- give @s[scores={shop_apple=1}] golden_apple{display:{Lore:['{"text":"恢复 4 颗心或生命 +1","italic":false,"color":"gray"}'],Name:'{"text":"生命果","italic":false,"color":"green"}'}}
- give @s[scores={shop_apple=2}] enchanted_golden_apple{display:{Name:'{"text":"附魔生命果","italic":false}',Lore:['{"text":"恢复到满血或生命加倍","italic":false,"color":"gray"}']}}
- scoreboard players reset @s shop_apple
- clear @s arrow
- clear @s tipped_arrow
- give @s[scores={shop_arrow=1}] arrow
- give @s[scores={shop_arrow=2}] arrow 2
- give @s[scores={shop_arrow=3}] tipped_arrow{Potion:"minecraft:slowness"} 2
- clear @s crossbow
- give @s[scores={shop_firework=1}] minecraft:crossbow{display:{Name:'{"text":"烟花弩","italic":false,"color":"gray"}',Lore:['{"text":"发射一个漂亮的烟花!","italic":false,"color":"gray"}']},Damage:326,Charged:1b,ChargedProjectiles:[{id:"firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;11743532,15435844,14602026,4312372,6719955,2437522,8073150]}]}}}]} 1
- item replace entity @s armor.chest with air
- item replace entity @s[scores={shop_armor=3..}] armor.chest with golden_chestplate{display:{Name:'{"text":"金胸甲","italic":false,"color":"gray"}'}}
- item replace entity @s armor.legs with air
- item replace entity @s[scores={shop_armor=2}] armor.legs with golden_leggings{display:{Name:'{"text":"金护腿","italic":false,"color":"gray"}'}}
- item replace entity @s armor.feet with air
- item replace entity @s[scores={shop_armor=1}] armor.feet with golden_boots{display:{Name:'{"text":"金靴子","italic":false,"color":"gray"}'}}
|