game_init3.mcfunction 942 B

123456789101112131415161718192021
  1. # 地牢 1 生成
  2. scoreboard players set $random_max mem 4
  3. scoreboard players set $random_min mem 1
  4. function lib:random
  5. execute if score $random mem matches 1 run setblock 1028 254 5030 redstone_block
  6. execute if score $random mem matches 2 run setblock 1028 254 5029 redstone_block
  7. execute if score $random mem matches 3 run setblock 1028 254 5028 redstone_block
  8. execute if score $random mem matches 4 run setblock 1028 254 5027 redstone_block
  9. # 地牢 2 生成
  10. scoreboard players set $random_max mem 4
  11. scoreboard players set $random_min mem 1
  12. function lib:random
  13. execute if score $random mem matches 1 run setblock 1027 254 5030 redstone_block
  14. execute if score $random mem matches 2 run setblock 1027 254 5029 redstone_block
  15. execute if score $random mem matches 3 run setblock 1027 254 5028 redstone_block
  16. execute if score $random mem matches 4 run setblock 1027 254 5027 redstone_block
  17. # 清理区域
  18. fill 1025 255 5031 1029 251 5025 air