Advertisement
colhaydutu

turtleplace

Sep 29th, 2023 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. while true do
  2. local found = false
  3. for slot = 1, 16 do
  4. local itemDetail = turtle.getItemDetail(slot)
  5. if itemDetail and itemDetail.name == "minecraft:acacia_log" then
  6. turtle.select(slot)
  7. turtle.place()
  8. turtle.turnLeft()
  9. found = true
  10. break
  11. end
  12. end
  13. if not found then
  14. print("Log cannot found. place log and type reboot")
  15. break
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement