Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refuel()
- for i = 1, 16 do
- local data = turtle.getItemDetail(i)
- if data.name = minecraft:sapling then
- turtle.place()
- print("Turtle found sapling, placing...")
- break
- end
- end
- end
- refuel()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement