Advertisement
WyattNunnery

Replicate v0.1 Test

Aug 8th, 2022 (edited)
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. assumedHeightGround = 0
  2. assumedPosX = 0
  3. assumedPosY = 0
  4. assumedPosZ = 0
  5. assumedOrientationNS = 1
  6. assumedOrientationEW = 0
  7. function digFirstTree()
  8.         turtle.dig()
  9.         turtle.craft()
  10.         turtle.refuel(4)
  11.  
  12.         turtle.forward()
  13.         assumedPosX = assumedPosX +
  14.  
  15.         while turtle.detectUp() == true do
  16.             turtle.digUp()
  17.             turtle.up()
  18.             assumedHeightGround = assumedHeightGround + 1
  19.         end
  20.         for assumedHeightGround do
  21.             turtle.down()
  22.             assumedHeightGround = assumedHeightGround - 1
  23.         end
  24.         turtle.craft()
  25.         turtle.refuel(1)
  26.     end
  27. digFirstTree()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement