tuekats

lavaPlacing

Feb 20th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. redstone.setOutput("back",true)
  2. while true do
  3. if turtle.inspectDown()==false then
  4. turtle.select(1)
  5. turtle.placeDown()
  6. turtle.placeUp()
  7. local detail = turtle.getItemDetail(1)
  8. if detail["name"] == "minecraft:bucket" then
  9. turtle.select(2)
  10. turtle.digUp()
  11. turtle.drop()
  12. while turtle.getItemCount(2)==0 do
  13. redstone.setOutput("back",false)
  14. sleep(1)
  15. redstone.setOutput("back",true)
  16. sleep(1)
  17. end
  18. turtle.placeUp()
  19. end
  20. end
  21. sleep(3)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment