Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- print('Welcome to the Obsidian Miner 2000')
- print('Place an empty bucket in the first slot. This will be used by the turtle to refuel itself.')
- print('It will finish a row, and turn to the right one. Place the turtle correctly.')
- print('How far do you want it to go per row? [It will do 4 rows]')
- length = read()
- function RotationRight()
- for i = 1,length do
- turtle.placeDown()
- turtle.refuel()
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- function RotationLeft()
- for i = 1,length do
- turtle.placeDown()
- turtle.refuel()
- turtle.dig()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function Platform()
- turtle.up()
- turtle.select(2)
- turtle.placeDown()
- turtle.select(1)
- end
- turtle.digDown()
- turtle.down()
- RotationRight()
- RotationLeft()
- RotationRight()
- RotationLeft()
- Platform()
- term.clear()
- print('Thank you for using the Obsidian Miner 2000!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement