tick2.mcfunction 746 B

123456789
  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