Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- stripAmount = args[1]
- stripLength = 5
- stripsPerChest = 3
- function strip()
- for i = 1, stripLength do
- t.dig()
- t.forward()
- t.digDown()
- end
- t.turnAround()
- for i = 1, stripLength do
- t.forward()
- end
- end
- function stripPair()
- t.left()
- strip()
- strip()
- t.right()
- t.placeDown(1)
- end
- function placeChest()
- t.placeDown(2)
- for i = 3, 16 do
- turtle.select(i)
- turtle.dropDown()
- end
- end
- function run()
- stripsSinceChest = 0
- for i = 1, stripAmount do
- for x = 1, 2 do
- t.dig()
- t.forward()
- t.digDown()
- end
- stripPair()
- stripsSinceChest = stripsSinceChest + 1
- t.dig()
- t.forward()
- t.digDown()
- if stripsSinceChest == 3 or i == stripAmount then
- stripsSinceChest = 0
- placeChest()
- end
- end
- end
- run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement