tempo_block.mcfunction 2.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # 切换节奏方块状态
  2. # scoreboard players add $parkour_block mem 1
  3. # execute if score $parkour_block mem matches 2.. run scoreboard players set $parkour_block mem 0
  4. # # 蓝色
  5. # execute if score $parkour_block mem matches 0 run setblock 1012 8 1035 air
  6. # execute if score $parkour_block mem matches 0 run setblock 1009 10 1036 air
  7. # execute if score $parkour_block mem matches 0 run setblock 1010 10 1033 air
  8. # execute if score $parkour_block mem matches 0 run setblock 1013 10 1032 air
  9. # execute if score $parkour_block mem matches 0 run setblock 1010 12 1030 air
  10. # execute if score $parkour_block mem matches 0 run setblock 1009 16 1051 air
  11. # execute if score $parkour_block mem matches 0 run setblock 1004 17 1050 air
  12. # execute if score $parkour_block mem matches 0 run setblock 1009 9 1036 minecraft:warped_hyphae
  13. # execute if score $parkour_block mem matches 0 run setblock 1013 9 1032 minecraft:warped_hyphae
  14. # execute if score $parkour_block mem matches 0 run setblock 1010 11 1033 minecraft:warped_hyphae
  15. # execute if score $parkour_block mem matches 0 run setblock 1010 11 1030 minecraft:warped_hyphae
  16. # # 红色
  17. # execute if score $parkour_block mem matches 1 run setblock 1009 9 1036 air
  18. # execute if score $parkour_block mem matches 1 run setblock 1013 9 1032 air
  19. # execute if score $parkour_block mem matches 1 run setblock 1010 11 1033 air
  20. # execute if score $parkour_block mem matches 1 run setblock 1010 11 1030 air
  21. # execute if score $parkour_block mem matches 1 run setblock 1013 10 1032 minecraft:crimson_hyphae
  22. # execute if score $parkour_block mem matches 1 run setblock 1012 8 1035 minecraft:crimson_hyphae
  23. # execute if score $parkour_block mem matches 1 run setblock 1009 10 1036 minecraft:crimson_hyphae
  24. # execute if score $parkour_block mem matches 1 run setblock 1010 10 1033 minecraft:crimson_hyphae
  25. # execute if score $parkour_block mem matches 1 run setblock 1010 12 1030 minecraft:crimson_hyphae
  26. # execute if score $parkour_block mem matches 1 run setblock 1009 16 1051 minecraft:crimson_hyphae
  27. # execute if score $parkour_block mem matches 1 run setblock 1004 17 1050 minecraft:crimson_hyphae
  28. # 音效
  29. # execute if score $parkour_block mem matches 0 run playsound block.note_block.pling block @a[tag=parkour_portal] 1007 15 1051 1 0.6
  30. # execute if score $parkour_block mem matches 1 run playsound block.note_block.pling block @a[tag=parkour_portal] 1007 15 1051 1 1.1
  31. # execute if score $parkour_block mem matches 0 run playsound block.note_block.pling block @a[tag=parkour_portal] 1010 10 1033 1 0.6
  32. # execute if score $parkour_block mem matches 1 run playsound block.note_block.pling block @a[tag=parkour_portal] 1010 10 1033 1 1.1