tick2.mcfunction 1.4 KB

1234567891011121314151617
  1. # 检查状态
  2. tag @a remove invisible
  3. tag @a[nbt={ActiveEffects:[{Id:14b}]}] add invisible
  4. # 播放玩家粒子效果(他人)
  5. execute as @a[scores={particle_type=1},gamemode=!spectator,tag=!invisible] at @s run particle electric_spark ~ ~0.5 ~ 0.25 0.3 0.25 0 1 force @a[distance=0.01..]
  6. execute as @a[scores={particle_type=2},gamemode=!spectator,tag=!invisible] at @s run particle composter ~ ~0.5 ~ 0.25 0.3 0.25 2 1 force @a[distance=0.01..]
  7. execute as @a[scores={particle_type=3},gamemode=!spectator,tag=!invisible] at @s run particle glow ~ ~0.2 ~ 0.2 0.1 0.2 0 1 force @a[distance=0.01..]
  8. execute as @a[scores={particle_type=4},gamemode=!spectator,tag=!invisible] at @s run particle witch ~ ~0.2 ~ 0.25 0.1 0.25 0 1 force @a[distance=0.01..]
  9. execute as @a[scores={particle_type=5},gamemode=!spectator,tag=!invisible] at @s run particle wax_on ~ ~0.5 ~ 0.25 0.3 0.25 2 1 force @a[distance=0.01..]
  10. # 播放展示用实体的粒子效果
  11. execute as @e[tag=show_particle_1] at @s run particle electric_spark ~ ~0.5 ~ 0.1 0.1 0.1 0 1 force @a
  12. execute as @e[tag=show_particle_2] at @s run particle composter ~ ~0.5 ~ 0.15 0.15 0.15 2 1 force @a
  13. execute as @e[tag=show_particle_3] at @s run particle glow ~ ~0.3 ~ 0.15 0.15 0.15 0 1 force @a
  14. execute as @e[tag=show_particle_4] at @s run particle witch ~ ~0.2 ~ 0.15 0.05 0.15 0 1 force @a
  15. execute as @e[tag=show_particle_5] at @s run particle wax_on ~ ~0.5 ~ 0.2 0.2 0.2 0.5 1 force @a