Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Ender Quarry fence deployer
- local args={...}
- local deploy = true
- if #args > 0 and args[1] == "undeploy" then
- deploy = false
- end
- turtle.select(1)
- local function forward()
- while turtle.forward() == false do
- if turtle.dig() == false then
- turtle.attack()
- end
- end
- end
- for i=1, 4 do
- for j=1, 63 do
- forward()
- if turtle.detectDown() then
- turtle.digDown()
- end
- if deploy then
- turtle.placeDown()
- end
- local currentSlot = turtle.getSelectedSlot()
- if turtle.getItemCount(currentSlot) == 0 then
- turtle.select(currentSlot + 1)
- end
- end
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement