BrineUtil

Untitled

Feb 22nd, 2021
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. os.loadAPI("QuarryUtils.lua")
  2. os.loadAPI("WorkerBuild.lua")
  3. rednet.open("left")
  4.  
  5. -- change this to match the ID of the turtle that will be unpacking the workers
  6. local CONTROLLER_ID = 136
  7.  
  8. -- Here we grab all the dank/nulls and ender chests
  9. -- Currently hard-coded values:
  10. -- Left: Stone dank/nulls
  11. -- Right: Dirt dank/nulls
  12. -- Up: Fuel ender chests
  13. -- Down: Dump ender chests
  14. turtle.select(1)
  15. -- grab stone dank/null
  16. turtle.turnLeft()
  17. turtle.suck(1)
  18. turtle.turnRight()
  19. -- grab grass dank/null
  20. turtle.turnRight()
  21. turtle.suck(1)
  22. turtle.turnLeft()
  23. -- grab fuel chest
  24. turtle.suckUp(1)
  25. -- grab dump chest
  26. turtle.suckDown(1)
  27.  
  28. -- begin refuel
  29. turtle.forward()
  30. QuarryUtils.refuel()
  31.  
  32. rednet.send(CONTROLLER_ID, "Done", "QuarryDone")
  33. id, message, protocol = rednet.receive("QuarryOptions")
  34.  
  35. -- test move
  36. turtle.turnLeft()
  37. for i=1,message.hOffset do
  38. turtle.forward()
  39. end
  40. turtle.turnRight()
  41. WorkerBuild.build(message.map, message.vOffset, message.grassHeight)
Advertisement
Add Comment
Please, Sign In to add comment