Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local found = false
- for slot = 1, 16 do
- local itemDetail = turtle.getItemDetail(slot)
- if itemDetail and itemDetail.name == "minecraft:acacia_log" then
- turtle.select(slot)
- turtle.place()
- turtle.turnLeft()
- found = true
- break
- end
- end
- if not found then
- print("Log cannot found. place log and type reboot")
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement