Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- boner: Apply bonemeal to sapling
- boneSlot = 16
- saplingSlot = 1
- minimum = 64
- boneTrys = 6
- while true do
- attempts = 0
- sleep(2)
- turtle.turnLeft()
- if turtle.getItemCount(saplingSlot) < minimum then
- turtle.suckDown()
- end
- turtle.select(saplingSlot)
- if turtle.compare() then
- if turtle.getItemCount(boneSlot) > 0 then
- turtle.select(boneSlot)
- for i=1,boneTrys do
- if turtle.getItemCount(boneSlot) > 0 then
- turtle.place()
- else
- break
- end
- end
- end
- else
- if not turtle.detect() then
- turtle.select(saplingSlot)
- turtle.place()
- sleep(1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement