Advertisement
Guest User

reproduce.lua

a guest
Mar 28th, 2020
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. --// How many computers this script will test with.
  2. local size = 10
  3.  
  4. local pos = { commands.getBlockPosition() }
  5.       pos = { x = pos[1], y = pos[2], z = pos[3] }
  6.  
  7. --// Create a new set of computers for reproduction
  8. for x = pos.x+1, pos.x+size do
  9.     commands.setblock(x, pos.y, pos.z, "minecraft:air")
  10.     commands.setblock(x, pos.y, pos.z, "computercraft:computer")
  11. end
  12.  
  13. --// Create modems underneath computers.
  14. for x = pos.x, pos.x+size do
  15.     commands.setblock(x, pos.y-1, pos.z, "computercraft:wired_modem_full")
  16. end
  17.  
  18. print("Turn on all modems, then press enter.")
  19. os.pullEvent("key")
  20.  
  21. peripheral.find("computer", function (name, comp)
  22.     comp.turnOn()
  23. end)
  24.  
  25. print("The bug should have now been reproduced.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement