Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local torchDistance = 10 -- alle 10 blöcke eine facke setzen
- local torchSlot = 16 --slot unten rechts
- local depthCounter = 0 -- zähler für die tiefe
- function canDown()
- if not turtle.dig() and turtle.down()) then
- return false
- else
- return true
- end
- end
- function goDown()
- turtle.digDown()
- turtle.down()
- turtle.dig()
- depthCounter = depthCounter + 1
- end
- function placeTorch()
- turtle.select(torchslot)
- turtle.placeUp()
- end
- while canDown() do
- goDown()
- if (depthCounter % torchDistance == 0) then
- placeTorch()
- end
- end
- placeTorch()
Add Comment
Please, Sign In to add comment