Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bucketCount = 16
- height = 0
- dir = 1
- function refillBucket()
- turtle.select(16)
- turtle.placeUp()
- turtle.select(1)
- for i = 1,16 do
- turtle.placeUp()
- end
- turtle.select(16)
- turtle.digUp()
- bucketCount = 16
- turtle.select(8)
- turtle.transferTo(12,1)
- turtle.select(12)
- turtle.transferTo(16,1)
- turtle.select(9)
- turtle.transferTo(10,64)
- turtle.select(10)
- turtle.transferTo(11,64)
- turtle.select(11)
- turtle.transferTo(13,64)
- turtle.select(13)
- turtle.transferTo(14,64)
- end
- function placeBucket()
- if bucketCount == 0 then
- refillBucket()
- end
- bucketCount = bucketCount - 1
- turtle.select(1)
- turtle.placeDown()
- sleep(2)
- end
- function fforward()
- while turtle.forward()==false do
- end
- end
- function right()
- turtle.turnRight()
- end
- function left()
- turtle.turnLeft()
- end
- turtle.select(15)
- if turtle.compareDown()==false then
- print("Wrong place! Place Turtle in the left corner! Put Reactor Casing in the 15th slot!")
- else
- fforward()
- right()
- fforward()
- left()
- while turtle.detectDown()==false do
- turtle.down()
- height = height + 1
- end
- for i = 1,(height) do
- turtle.up()
- end
- finished = false
- while finished==false do
- for i = 1,(height - 1) do
- placeBucket()
- end
- turtle.select(14)
- turtle.placeDown()
- fforward()
- while turtle.detectDown() do
- turtle.select(15)
- if turtle.compareDown() then
- if dir == 1 then
- right()
- fforward()
- right()
- fforward()
- if turtle.compareDown() then
- finished = true
- end
- dir = 2
- else
- left()
- fforward()
- left()
- fforward()
- if turtle.compareDown() then
- finished = true
- end
- dir = 1
- end
- else
- fforward()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment