Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bl=0
- up=false
- ---crafting petals
- function petals()
- while turtle.suck(32) do
- local data = turtle.getItemDetail()
- if data then
- if data.name=="botania:flower" then
- turtle.craft()
- end
- end
- turtle.dropUp()
- end
- end
- ---- sortieren
- function sort()
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- if bl>8 then
- up=true
- bl=bl-8
- turtle.down()
- else
- up=false
- end
- print(up)
- for i=1,bl do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.drop()
- turtle.turnLeft()
- for i =1,bl do
- turtle.forward()
- end
- turtle.turnLeft()
- if up==true then
- turtle.Up()
- end
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- -----------------
- for i=1,5 do
- redstone.setOutput("left", true)
- sleep(1)
- redstone.setOutput("left", false)
- sleep(1)
- end
- petals()
- turtle.back()
- turtle.up()
- while turtle.suck() do
- local data = turtle.getItemDetail()
- if data then
- bl=tonumber(data.damage)
- if data.name=="botania:petal" then
- bl=bl+1
- sort()
- else
- bl=17
- sort()
- end
- end
- end
- turtle.down()
- turtle.forward()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement