Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = { ... }
- os.loadAPI("npos")
- local startO = nil
- if(args[4] == "n") then startO = npos.orientations.NORTH end
- if(args[4] == "e") then startO = npos.orientations.EAST end
- if(args[4] == "s") then startO = npos.orientations.SOUTH end
- if(args[4] == "w") then startO = npos.orientations.WEST end
- npos.init(tonumber(args[1]), tonumber(args[2]), tonumber(args[3]), startO)
- local cpos = npos.getPosition()
- local curY = cpos.y
- print("Digging down to near bedrock...")
- while(curY > 2) do
- npos.move(npos.directions.DOWN, true)
- curY = curY - 1
- end
- print("Excavating starting room")
- npos.excavateUp(5, 5, 5)
Add Comment
Please, Sign In to add comment