nocv

Untitled

Oct 12th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local args = { ... }
  2.  
  3. os.loadAPI("npos")
  4.  
  5. local startO = nil
  6.  
  7. if(args[4] == "n") then startO = npos.orientations.NORTH end
  8. if(args[4] == "e") then startO = npos.orientations.EAST end
  9. if(args[4] == "s") then startO = npos.orientations.SOUTH end
  10. if(args[4] == "w") then startO = npos.orientations.WEST end
  11.  
  12. npos.init(tonumber(args[1]), tonumber(args[2]), tonumber(args[3]), startO)
  13.  
  14. local cpos = npos.getPosition()
  15. local curY = cpos.y
  16.  
  17. print("Digging down to near bedrock...")
  18. while(curY > 2) do
  19. npos.move(npos.directions.DOWN, true)
  20. curY = curY - 1
  21. end
  22.  
  23. print("Excavating starting room")
  24. npos.excavateUp(5, 5, 5)
Add Comment
Please, Sign In to add comment