tick20.mcfunction 470 B

1234567
  1. # 切换计分板显示
  2. scoreboard players add $scb_switch rgb_sys 1
  3. execute if score $scb_switch rgb_sys matches 9.. run scoreboard players set $scb_switch rgb_sys 0
  4. execute if score $scb_switch rgb_sys matches 0..2 run scoreboard objectives setdisplay sidebar rgb_R
  5. execute if score $scb_switch rgb_sys matches 3..5 run scoreboard objectives setdisplay sidebar rgb_G
  6. execute if score $scb_switch rgb_sys matches 6..8 run scoreboard objectives setdisplay sidebar rgb_B