Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("QuarryUtils.lua")
- os.loadAPI("WorkerBuild.lua")
- rednet.open("left")
- -- change this to match the ID of the turtle that will be unpacking the workers
- local CONTROLLER_ID = 136
- -- Here we grab all the dank/nulls and ender chests
- -- Currently hard-coded values:
- -- Left: Stone dank/nulls
- -- Right: Dirt dank/nulls
- -- Up: Fuel ender chests
- -- Down: Dump ender chests
- turtle.select(1)
- -- grab stone dank/null
- turtle.turnLeft()
- turtle.suck(1)
- turtle.turnRight()
- -- grab grass dank/null
- turtle.turnRight()
- turtle.suck(1)
- turtle.turnLeft()
- -- grab fuel chest
- turtle.suckUp(1)
- -- grab dump chest
- turtle.suckDown(1)
- -- begin refuel
- turtle.forward()
- QuarryUtils.refuel()
- rednet.send(CONTROLLER_ID, "Done", "QuarryDone")
- id, message, protocol = rednet.receive("QuarryOptions")
- -- test move
- turtle.turnLeft()
- for i=1,message.hOffset do
- turtle.forward()
- end
- turtle.turnRight()
- WorkerBuild.build(message.map, message.vOffset, message.grassHeight)
Advertisement
Add Comment
Please, Sign In to add comment