Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Mine_Pro_v1.1
- Neil O'Mara
- 2/16/19
- Builds 3*3 cobblestone tunnel and places torches
- What's new in 1.1: Different digging and block placing scripts to fix bugs in previous version
- How to use: Place turtle in the bottom left corner of where you want tunnel, and have 64 torches in slot 1 and 64 cobblestone in slot 2
- Notes: Turtle digs a 5*5 tunnel, and places blocks around to make a 3*3 tunnel with cobblestone walls, ceiling, and floor
- Notes continued: Positions of the tunnel are labeled as a number, a decimal point, and another number
- Notes continued: The first number in the tunnel position is the column, and the second number after the decimal point is the row
- Notes continued: Position 2.2 is column 2 row 2.]]
- -- Notifications --
- textutils.slowPrint('Mining Sequence Initiated') -- Tells user that program has started successfully --
- if turtle.getItemCount(1) < 1 then error('Out Of Torches') -- Terminates program when out of torches --
- end
- if turtle.getItemCount(2) < 1 then error('Out Of Cobblestone') -- Terminates program when out of cobblestone --
- end
- -- Positioning To Dig First 5*5 Tunnel --
- turtle.dig() -- dig 2.2 --
- turtle.forward() -- position 2.2 --
- -- Digging Column 2 --
- turtle.digDown() -- dig 2.1 --
- turtle.digUp() -- dig 2.3 --
- turtle.up() -- position 2.3 --
- turtle.digUp() -- dig 2.4 --
- turtle.up() -- position 2.4 --
- turtle.digUp() -- dig 2.5 --
- turtle.down() -- position 2.3 --
- turtle.down() -- position 2.2 --
- -- Positioning To Dig Column 1 --
- turtle.turnLeft()
- turtle.dig() -- dig 1.2 --
- turtle.forward() -- position 1.2 --
- turtle.turnRight() -- facing forward --
- -- Digging Column 1 --
- turtle.digDown()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.down()
- turtle.down()
- -- Positioning To Dig Column 3 --
- turtle.turnRight()
- turtle.forward() -- position 2.2 --
- turtle.dig() -- dig 3.2 --
- turtle.forward() -- position 3.2 --
- turtle.turnLeft() -- facing forward --
- --Digging Column 3 --
- turtle.digDown()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.down()
- turtle.down()
- -- Positioning To Dig Column 4 --
- turtle.turnRight()
- turtle.dig() -- dig 4.2 --
- turtle.forward() -- position 4.2 --
- turtle.turnLeft() -- facing forward --
- -- Digging Column 4 --
- turtle.digDown()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.down()
- turtle.down()
- -- Positioning To Dig Column 5 --
- turtle.turnRight()
- turtle.dig() -- dig 5.2 --
- turtle.forward() -- position 5.2 --
- turtle.turnLeft() -- facing forward --
- -- Digging Column 5 --
- turtle.digDown()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.up()
- turtle.digUp()
- turtle.down()
- turtle.down()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement