Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- computerID = 1
- function checkLevels(minimal)
- local pedestal = peripheral.wrap("top")
- if (pedestal.getAspectCount("aer") < minimal) then return false end
- if (pedestal.getAspectCount("terra") < minimal) then return false end
- if (pedestal.getAspectCount("ignis") < minimal) then return false end
- if (pedestal.getAspectCount("aqua") < minimal) then return false end
- if (pedestal.getAspectCount("ordo") < minimal) then return false end
- if (pedestal.getAspectCount("perditio") < minimal) then return false end
- return true
- end
- function levels()
- while not checkLevels(100) == true do
- sleep(15)
- checkLevels(100)
- end
- rednet.send(computerID, Done)
- turtle.suckUp()
- turtle.dropDown()
- rs.setBundledOutput("back", colors.white)
- sleep(2)
- rs.setBundledOutput("back", 0)
- end
- function place()
- turtle.suckDown()
- turtle.select(1)
- turtle.dropUp()
- levels()
- end
- while true do
- local id,msg,dist = rednet.receive()
- func = loadstring(msg.."(...)")
- setfenv(func, getfenv())
- func(id)
- end
Advertisement
Add Comment
Please, Sign In to add comment