Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = { ... }
- if #args ~= 1 then
- print("Usage: setPosition {x,y,z,direction}")
- return
- end
- local position = textutils.unserialize(args[1])
- if #position ~= 4 then
- print("You haven't specified current location correctly you moron")
- return
- end
- os.loadAPI("betterTurtle")
- betterTurtle.setLocation(position)
- pos = betterTurtle.retrieveLocation()
- print(textutils.serialize(pos))
Advertisement
Add Comment
Please, Sign In to add comment