Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SizeX,SizeY,SizeZ = 5,5,5
- local ZDig = function()
- turtle.dig()
- turtle.forward()
- end
- local XDigSection = function(Inverted)
- ZDig()
- if Inverted = true then
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- ZDig()
- if Inverted = false then
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- for Y = 1,SizeY do
- if Y % 2 == 1 then
- XDigSection(false)
- else
- XDigSection(true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment