Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PlaceTorchRight()
- slot = turtle.getSelectedSlot()
- turtle.select(15)
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(slot)
- end
- function PlaceTorchLeft()
- slot = turtle.getSelectedSlot()
- turtle.select(15)
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(slot)
- end
- function Dig()
- for i = 1, 2 do
- turtle.digDown()
- turtle.digUp()
- turtle.dig()
- turtle.forward()
- end
- end
- function GoInLeft()
- turtle.digDown()
- turtle.digUp()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function GoInRight()
- turtle.digDown()
- turtle.digUp()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- function PlaceInChest()
- slot = turtle.getSelectedSlot()
- if turtle.getItemCount(13) == 64 then
- turtle.select(16)
- turtle.placeDown()
- for i = 2, 13 do
- turtle.select(i)
- turtle.dropDown()
- end
- end
- turtle.select(slot)
- end
- function NeedsFuel()
- if turtle.getFuelLimit() == 0 then
- slot = turtle.getSelectedSlot()
- turtle.select(14)
- turtle.refuel()
- end
- end
- function goInPos
- turtle.turnRight()
- turtle.forward()
- turtle.up()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function TwoBlock()
- for i = 1, 5
- Dig()
- GoInRight()
- Dig()
- GoInLeft()
- NeedsFuel()
- end
- end
- print("Auf Slot 14: Fuel")
- print("Auf Slot 15: Torch")
- print("Auf Slot 16: Chest")
- print("Wie weit soll die Turtle fahren? (Turtle macht das zehnfache)")
- local input = read()
- for i = 1, input do
- TwoBlock()
- PlaceTorchRight()
- PlaceInChest()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement