game_init3.mcfunction 1.1 KB

1234567891011121314151617181920212223242526
  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 251 5025 1029 255 5031 air
  19. fill 1000 319 5000 1032 290 5032 air
  20. fill 1000 289 5000 1032 271 5032 air
  21. fill 1000 270 5000 1032 255 5032 air
  22. schedule function mini:trade/game_init4 1t