buy_particle0.mcfunction 1.0 KB

12345678910111213141516
  1. # 关闭粒子 (0 e)
  2. # 触发器ID 102
  3. tag @s remove canbuy
  4. tag @s[tag=show_particle_1,tag=particle] add canbuy
  5. tag @s[tag=show_particle_2,tag=particle] add canbuy
  6. tag @s[tag=show_particle_3,tag=particle] add canbuy
  7. tag @s[tag=show_particle_4,tag=particle] add canbuy
  8. tag @s[tag=show_particle_5,tag=particle] add canbuy
  9. tag @s[tag=show_particle_6,tag=particle] add canbuy
  10. tellraw @s[tag=canbuy] ["",{"text":">> ","color":"aqua","bold":true},{"text":"成功关闭了自己的 ","color":"aqua"},{"text":"粒子效果","color":"green"}]
  11. tellraw @s[tag=!canbuy,tag=particle] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你已经关闭了自己的 ","color":"aqua"},{"text":"粒子效果","color":"green"}]
  12. tellraw @s[tag=!particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先购买粒子效果系统!","color":"red"}]
  13. execute as @s[tag=!canbuy] at @s run function lib:sounds/error
  14. execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
  15. execute as @s[tag=canbuy] run function item:particle/reset_particle
  16. tag @s remove canbuy