2
0

buy_particle0.mcfunction 659 B

1234567891011
  1. # 关闭粒子 (0 e)
  2. # 触发器ID 102
  3. execute unless entity @s[scores={shop_particle_s=0..}] run scoreboard players set @s shop_particle_s 0
  4. tellraw @s[scores={shop_particle_s=0}] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先在左侧购买尾迹特效才能切换尾迹种类!","color":"red"}]
  5. execute as @s[scores={shop_particle_s=0}] at @s run function lib:sounds/error
  6. tellraw @s[scores={shop_particle_s=1..}] ["",{"text":">> ","color":"green","bold":true},"尾迹特效已 ",{"text":"关闭","color":"green"}]
  7. execute as @s[scores={shop_particle_s=1..}] at @s run function lib:sounds/hit
  8. scoreboard players set @s particle_type 0