Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Pastas Witherfarm v 1.2
- --by Spaghetti_Pasta
- function place() --Platziert Wither
- while(true) do
- if turtle.forward() then
- turtle.forward()
- turtle.select(1)
- turtle.placeDown()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.up()
- turtle.placeDown()
- turtle.select(2)
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.back()
- turtle.place()
- turtle.down()
- turtle.back()
- break
- else
- redstone.setOutput("bottom", true)
- sleep(1)
- redstone.setOutput("bottom", false)
- sleep(6)
- end
- end
- end
- function refill() --Fuellt Material nach
- turtle.turnLeft()
- while (true) do
- turtle.select(1)
- if turtle.suck(4) then
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(2)
- while(true) do
- if turtle.suck(3) then
- turtle.turnLeft()
- end
- break
- end
- end
- break
- end
- end
- function refillFuel()
- while(true) do
- turtle.select(16)
- if turtle.suckUp() then
- turtle.refuel()
- turtle.dropUp()
- end
- break
- end
- end
- while (true) do
- if not redstone.getInput("back") then
- sleep(10)
- else
- refill()
- place()
- redstone.setOutput("bottom", true)
- os.sleep(1)
- redstone.setOutput("bottom", false)
- refillFuel()
- sleep(10)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement