block_exchange.mcfunction 368 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:blue 1:red
  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