Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Minecraft Mining Automation via Computercraft Turtles by FinnTron
- -- V0.7 *31.10.2021
- --Start Print
- print("Sucessful boot of Mining Program")
- os.sleep(0.7)
- print("Please put Cobblestone in Slot 1")
- os.sleep(0.1)
- print("Torches in Slot 2")
- os.sleep(0.1)
- print("Chest or an inplaceable Item in Slot 3")
- os.sleep(0.1)
- print("Please wait for instructions...")
- --Set variables
- os.sleep(1.5)
- print("Give the count of side strips:")
- local a = read()
- os.sleep(0.8)
- print("Excavation started...")
- --Functions
- function checkDown()
- while turtle.detectDown() == false do
- turtle.select(1)
- turtle.placeDown()
- end
- end
- function forward()
- while turtle.forward() == false do
- turtle.dig()
- end
- while turtle.detectUp() == true do
- turtle.digUp()
- end
- checkDown()
- end
- function tunnel()
- forward()
- forward()
- forward()
- end
- function doubleTurn()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function sidestrip()
- forward()
- turtle.turnLeft()
- for i = 1,3 do
- forward()
- end
- doubleTurn()
- for i = 1,6 do
- forward()
- end
- doubleTurn()
- for i = 1, 3 do
- forward()
- end
- turtle.turnRight()
- end
- function testItems()
- if turtle.getItemCount(16) == 64 then
- turtle.select(3)
- doubleTurn()
- turtle.place()
- x = 3
- while (x == 16) == false do
- turtle.select(x + 1)
- turtle.drop(64)
- x = x + 1
- end
- doubleTurn()
- end
- end
- function torch()
- turtle.back()
- turtle.select(2)
- turtle.placeUp()
- turtle.forward()
- end
- --Mainprogram
- for i = 1,a do
- tunnel()
- sidestrip()
- torch()
- testItems()
- end
- --End print
- print("Excavation was sucessful.")
- os.sleep(0.5)
- print("Thank you for trusting our service.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement