Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redstone.setOutput("top", true)
- sleep(25) --Wait for turtles to return home
- redstone.setOutput("top", false)
- pool=peripheral.wrap("front")
- --Rednet initialization
- rednet.open("right")
- --Find rednet IDs for mining turtles
- local IDs={}
- if rednet.lookup("OrechidMiner") then
- for i=1,4 do
- IDs[i]=rednet.lookup("OrechidMiner","layer"..i)
- --print(IDs[i])
- end
- end
- while true do
- redstone.setOutput("top", true)
- for i=1,4 do
- rednet.send(IDs[i],"go")
- end
- sleep(130)
- redstone.setOutput("top", false)
- sleep(448*6.5)
- while pool.getMana(true)<50000 do
- sleep(5)
- end
- end
Add Comment
Please, Sign In to add comment