block_exchange.mcfunction 373 B

1234567
  1. # 切换节奏方块状态
  2. scoreboard players add $tempo_block mem 1
  3. execute if score $tempo_block mem matches 2.. run scoreboard players set $tempo_block mem 0
  4. # 切换对应颜色方块 0:蓝色 1:红色
  5. execute if score $tempo_block mem matches 0 run function lib:tempo_block/tempo_blue
  6. execute if score $tempo_block mem matches 1 run function lib:tempo_block/tempo_red