Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// How many computers this script will test with.
- local size = 10
- local pos = { commands.getBlockPosition() }
- pos = { x = pos[1], y = pos[2], z = pos[3] }
- --// Create a new set of computers for reproduction
- for x = pos.x+1, pos.x+size do
- commands.setblock(x, pos.y, pos.z, "minecraft:air")
- commands.setblock(x, pos.y, pos.z, "computercraft:computer")
- end
- --// Create modems underneath computers.
- for x = pos.x, pos.x+size do
- commands.setblock(x, pos.y-1, pos.z, "computercraft:wired_modem_full")
- end
- print("Turn on all modems, then press enter.")
- os.pullEvent("key")
- peripheral.find("computer", function (name, comp)
- comp.turnOn()
- end)
- print("The bug should have now been reproduced.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement