Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- myid = os.getComputerID()
- fuel = turtle.getFuelLevel()
- pos0 = vector.new(gps.locate())
- turtle.forward()
- pos1 = vector.new(gps.locate())
- dist = pos1 - pos0
- turtle.back()
- face = ""
- if dist.x > 0 then
- face = "west"
- elseif dist.x < 0 then
- face = "east"
- elseif dist.z > 0 then
- face = "north"
- else
- face = "south"
- end
- print("id:"..os.getComputerID())
- print("fuel:"..fuel)
- print("pos:"..tostring(pos0))
- print("faceTo:"..face)
Add Comment
Please, Sign In to add comment