Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function placef()
- turtle.select(1)
- x = 1
- if turtle.getItemCount(x) == 0 then
- repeat turtle.select(x+1)
- x = x + 1
- if x == 17 then
- x = 1
- y = 2
- end
- if y == 2 then
- os.reboot()
- end
- until turtle.getItemCount(x) > 0
- end
- turtle.place()
- end
- function placeup()
- turtle.select(9)
- x = 9
- if turtle.getItemCount(x) == 0 then
- repeat turtle.select(x+1)
- x = x + 1
- if x == 17 then
- x = 9
- y = 2
- end
- if y == 2 then
- os.reboot()
- end
- until turtle.getItemCount(x) > 0
- end
- turtle.placeUp()
- end
- function place()
- turtle.select(9)
- x = 9
- if turtle.getItemCount(x) == 0 then
- repeat turtle.select(x+1)
- x = x + 1
- if x == 17 then
- x = 9
- y = 2
- end
- if y == 16 then
- os.reboot()
- end
- until turtle.getItemCount(x) > 0
- end
- turtle.placeDown()
- end
- function repairOT()
- turtle.select(1)
- x = 1
- if turtle.getItemCount(x) == 0 then
- repeat turtle.select(x+1)
- x = x + 1
- if x == 17 then
- x = 1
- y = 2
- end
- if y == 2 then
- os.reboot()
- end
- until turtle.getItemCount(x) > 0
- end
- if turtle.compareDown() == false then
- place()
- turtle.turnRight()
- else
- turtle.turnRight()
- end
- if turtle.compare() == false then
- placef()
- turtle.turnLeft()
- else
- turtle.turnLeft()
- end
- turtle.forward()
- end
- function repairBI()
- turtle.select(1)
- x = 1
- if turtle.getItemCount(x) == 0 then
- repeat turtle.select(x+1)
- x = x + 1
- if x == 17 then
- x = 1
- y = 2
- end
- if y == 16 then
- os.reboot()
- end
- until turtle.getItemCount(x) > 0
- end
- if turtle.compareUp() == false then
- placeup()
- turtle.turnLeft()
- else
- turtle.turnLeft()
- end
- if turtle.compare() == false then
- placef()
- turtle.turnRight()
- else
- turtle.turnRight()
- end
- turtle.forward()
- end
- for k = 1, 3 do
- for i = 1, 64 do
- repairOT()
- end
- place()
- turtle.turnRight()
- turtle.forward()
- end
- for k = 1,63 do
- repairOT()
- end
- place()
- turtle.forward()
- turtle.down()
- turtle.down()
- placeup()
- turtle.back()
- turtle.back()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- for k = 1, 3 do
- for i = 1,61 do
- repairBI()
- end
- turtle.forward()
- turtle.turnLeft()
- placef()
- turtle.turnRight()
- turtle.back()
- turtle.turnRight()
- end
- turtle.turnRight()
- turtle.turnRight()
- placef()
- placeup()
- turtle.turnRight()
- turtle.turnRight()
- for k = 1, 60 do
- repairBI()
- end
- turtle.down()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- placeup()
- print("Place me back in the same postition I started in to repair the Particle accelerator")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement