Guest User

startup.lua

a guest
Apr 1st, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. local function main()
  2.     --local blockUp, dataUp = turtle.inspectUp()
  3.  
  4.     --if blockUp and dataUp.name == "botania:livingwood" then
  5.         --turtle.digUp()
  6.         --turtle.suckUp()
  7.     --elseif not blockUp then
  8.         --turtle.placeUp()
  9.     --end
  10.  
  11.     local blockDown, dataDown = turtle.inspectDown()
  12.    
  13.     if blockDown and dataDown.name == "botania:livingwood" then
  14.         turtle.digDown()
  15.         turtle.suckDown()
  16.     elseif not blockDown then
  17.         turtle.placeDown()
  18.     end    
  19. end
  20.  
  21. while true do
  22.     main()
  23.     sleep(1)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment