Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --insert enderchest or drawer full of fuel in slot 1
- --supposed to place turtles from slots 3-16, add fuel to slot 2, and force them to refuel
- --i = inventory slot
- i=3
- --Select turtles in inventory slots and turn off after i=17
- for p=1,150 do
- turtle.select(i)
- if turtle.getItemCount(i)==0 then
- i=i+1
- turtle.select(i)
- end
- if i==17 then
- turtle.reboot()
- end
- --place turtle
- turtle.turnLeft()
- turtle.place()
- --select fuel chest slot and add fuel to turtle, pick up chest, and force refuel
- turtle.select(1)
- turtle.placeUp()
- turtle.select(2)
- turtle.suckUp(15)
- turtle.drop()
- turtle.select(1)
- turtle.digUp()
- peripheral.wrap("front").refuel()
- --move on to the next spot
- turtle.turnRight()
- turtle.forward()
- end
Add Comment
Please, Sign In to add comment