Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. redstone.setOutput("left", true)
  2. while true do
  3. planter = false
  4. for i = 1, 16 do
  5. turtle.select(i)
  6. print("on est au")
  7. print(i)
  8. if planter == false then
  9. print("on peut planter")
  10. if turtle.getItemDetail().name == "minecraft:sapling" then
  11. print("on plante")
  12. turtle.place()
  13. planter = true
  14. end
  15. end
  16. if turtle.getItemDetail().name == "minecraft:dye" then
  17. print("poudre")
  18. turtle.place()
  19. end
  20. if turtle.compareTo(16) == true then
  21. print("on pousse")
  22. redstone.setOutput("left", false)
  23. sleep(1)
  24. redstone.setOutput("left", true)
  25. end
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement