211_particle1.mcfunction 651 B

12345678910
  1. # 绿光粒子 (0 e)
  2. scoreboard players add @s shop_particle_system 0
  3. tellraw @s[scores={shop_particle_system=0}] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先在左侧购买尾迹特效才能切换尾迹种类!","color":"red"}]
  4. execute as @s[scores={shop_particle_system=0}] at @s run function lib:sounds/error
  5. tellraw @s[scores={shop_particle_system=1..}] ["",{"text":">> ","color":"green","bold":true},"尾迹特效已切换为 ",{"text":"绿光","color":"green"}]
  6. execute as @s[scores={shop_particle_system=1..}] at @s run function lib:sounds/hit
  7. scoreboard players set @s[scores={shop_particle_system=1..}] particle_type 1