tick2.mcfunction 961 B

12345678910111213
  1. # 节奏方块触发
  2. execute if score $countdown_fast mem matches 0 run function mini:parkour/game/tempo_block
  3. execute unless score $countdown_fast mem matches 1.. run scoreboard players set $countdown_fast mem 15
  4. # 音效
  5. execute if score $countdown_fast mem matches 5 run playsound block.note_block.snare block @a[tag=parkour_portal] 1007 15 1051 1 2
  6. execute if score $countdown_fast mem matches 5 run playsound block.note_block.snare block @a[tag=parkour_portal] 1010 10 1033 1 2
  7. execute if score $countdown_fast mem matches 10 run playsound block.note_block.snare block @a[tag=parkour_portal] 1007 15 1051 1 2
  8. execute if score $countdown_fast mem matches 10 run playsound block.note_block.snare block @a[tag=parkour_portal] 1010 10 1033 1 2
  9. # 传送门粒子
  10. execute if score $parkour_door mem matches 0 run particle reverse_portal 1009 28 1031 1 2 1 0.1 50
  11. execute if score $parkour_door mem matches 1 run particle portal 1014.5 21.5 1057.0 0 1.5 1 1 15