Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Turtle Program for making Botania flowers
- function refuel ()
- if turtle.getFuelLevel() < 100 then
- i = turtle.getSelectedSlot()
- turtle.select(16)
- turtle.refuel()
- turtle.select(i)
- end
- end
- function main ()
- turtle.select(1)
- bucketTest = turtle.getItemDetail()
- -- If we have a water bucket, start crafting
- if (bucketTest.name == "minecraft:water_bucket") then
- turtle.drop()
- sleep(0.1)
- turtle.suck()
- for i=2,14 do
- turtle.select(i)
- turtle.drop(1)
- end
- sleep(0.1)
- turtle.select(15)
- turtle.suck()
- end
- -- Refill bucket process
- turtle.select(1)
- turtle.forward()
- turtle.place()
- turtle.back()
- refuel();
- end
- while (true) do
- main()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement