daily pastebin goal
0%
SHARE
TWEET

kopacz

a guest Jan 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function turn(p)
  2. turtle.forward()
  3. if p == "b" then turtle.digDown() elseif p == "p" then turtle.placeDown() end
  4. turtle.forward()
  5. if p == "b" then turtle.digDown() elseif p == "p" then turtle.placeDown() end
  6. turtle.turnRight()
  7. end
  8.  
  9. function selectItem(name,alt)
  10. local oldpos = turtle.getSelectedSlot()
  11. for i=1,16 do
  12. turtle.select(i)
  13. local slot = turtle.getItemDetail()
  14. if slot ~= nil and (slot["name"] == name or slot["name"] == alt) then
  15. break
  16. end
  17. end
  18. end
  19.  
  20. while true do
  21. if turtle.getFuelLevel() < 500 then selectItem("minecraft:coal_block") turtle.refuel(64) end
  22. turtle.suckDown(8)
  23. selectItem("minecraft:log","minecraft:stone")
  24. turtle.forward()
  25. for i=1,4 do turn("p") end
  26. while true do
  27. os.sleep(1)
  28. local _,name = turtle.inspectDown()
  29. if name ~= nil and (name == "Botania:livingrock" or name == "Botania:livingwood") then
  30. break
  31. end
  32. end
  33. for i=1,4 do turn("b") end
  34. turtle.back()
  35. selectItem("Botania:livingwood","Botania:livingrock")
  36. turtle.dropUp(8)
  37. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top