Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- First draft, initial run worked well.
- -- First update, 201507051133 added optional height
- -- lay a fence border for ender quarries (limited by inventory space)
- -- note: at some point turtle may go so far as to hit an unloaded chunk and stop...
- -- so probably follow it for really big quarries
- -- All rights reserved, wtparish, free to use so long as you don't make the program turn left.
- -- cite me as the original author, and be sure to vote republican, or independent.
- -- No part of this code may be used to contribute to any Democratic Party activity or other socialist agendas.
- -- (this includes any rebranded agendas including, but not limited to, the "Progressive Movement", or any
- -- group that advocates any form of "social justice", "social contracts", "no borders", "new world order"), or
- -- any globalist group that seeks to diminish America's superiority in the war for the world.
- -- ver. 1.0, 201507051114
- slot=1
- width=128
- item=1
- aerial=false
- height=32
- -- optionally climb to height, obviously adjust above value to go higher (above trees/etc)
- if aerial then
- for x=1, height do
- turtle.digUp()
- turtle.up()
- end
- end
- turtle.select(1)
- for side=1,4 do
- for x=1, width do
- turtle.digDown()
- turtle.placeDown()
- item=item+1
- while not turtle.forward() do
- turtle.dig()
- end
- if item>64 then
- slot=slot+1
- item=1
- if slot>16 then
- -- whatever the command to end is, just do the math and don't let this happen
- end
- turtle.select(slot)
- end
- end
- turtle.turnRight()
- end
- -- Note: Turtle always turns right, never left. It's my Republiturtle policy. Or maybe it's an anti Demiturtle policy...
- -- you choose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement