uepyon

homepos.lua

Mar 16th, 2024
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | Gaming | 0 0
  1. mon = peripheral.wrap("top")
  2. rednet.open("left")
  3. local home = vector.new(gps.locate())
  4.  
  5. for x = 1, 5 do
  6. turtle.forward()
  7. end
  8. for x = 1, 5 do
  9. turtle.forward()
  10. turtle.turnLeft()
  11. turtle.forward()
  12. turtle.turnRight()
  13. turtle.forward()
  14. turtle.up()
  15. end
  16.  
  17. local pos = vector.new(gps.locate())
  18. local dist = pos - home
  19. mon.write("I am ", tostring(dist), " away from home!!!")
  20.  
Tags: ccTweaked
Advertisement
Add Comment
Please, Sign In to add comment