Advertisement
CelticCoder

turtleToTravelHeight

Nov 12th, 2023 (edited)
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. local alphaX, alphaY, alphaZ = gps.locate()
  2. if alphaY < 250 then
  3.     for increment = alphaY, 250 do
  4.         turtle.up()
  5.     end
  6. elseif alphaY > 250 then
  7.     for increment = 1, alphaY - 250 do
  8.         turtle.down()
  9.     end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement