Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bMined = 0
- function turtleBuildCobbleGen()
- term.clear()
- term.setCursorPos(1,1)
- print("Building Cobble Generator")
- if turtle.getFuelLevel() < 5 then
- getFuel()
- end
- turtle.select(3)
- turtle.up()
- turtle.placeDown()
- turtle.place()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- turtle.place()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.up()
- turtle.forward()
- turtle.placeDown()
- turtle.place()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.up()
- turtle.turnRight()
- turtle.select(1)
- turtle.placeDown()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.down()
- turtle.select(2)
- turtle.placeDown()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.down()
- turtle.select(15)
- turtle.placeDown()
- turtle.select(1)
- turtle.dropUp()
- turtle.select(2)
- turtle.dropUp()
- turtle.select(1)
- end
- function getFuel()
- turtle.select(16)
- turtle.digUp()
- turtle.placeUp()
- turtle.select(1)
- turtle.suckUp(1)
- turtle.refuel()
- turtle.select(16)
- turtle.digUp()
- end
- function cobbleMiner()
- turtle.select(1)
- while true do
- bMined = bMined + 1
- term.clear()
- term.setCursorPos(1,1)
- print("Mined " .. bMined .. " Cobblestone" )
- turtle.dig()
- turtle.dropDown()
- sleep(1)
- end
- end
- function turtleReadyCobbleGen()
- term.clear()
- term.setCursorPos(1,1)
- print("Please place the following items in these slots.")
- print("This goes from left to right. Top to bottom.")
- print("Slot #1 Lava Bucket")
- print("Slot #2 Water Bucket")
- print("Slot #3 14 Blocks of your choice")
- print("Slot #15 Cobble designated Ender Chest")
- print("Slot #16 Coal designated Ender Chest")
- print("Press enter to continue.")
- local readyToBuildCobbleGen = io.read()
- if readyToBuildCobbleGen == null then
- turtleBuildCobbleGen()
- else
- turtleBuildCobbleGen()
- end
- end
- turtleReadyCobbleGen()
- cobbleMiner()
- --20 Cobble per Wall layers. 50 for roof.
- --22 Cobble per first 3 Tower layers. 28 following Tower layers
Add Comment
Please, Sign In to add comment