Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = { ... }
- local x = tonumber(args[1])
- local y = tonumber(args[2])
- --local z = tonumber(args[3])
- local function placeX()
- for i = 1, x - 1 do
- turtle.back()
- turtle.select(i)
- turtle.place()
- end
- end
- local function change()
- turtle.up()
- turtle.select(1)
- turtle.placeDown()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- local function goDown()
- turtle.turnLeft()
- turtle.back()
- turtle.select(1)
- turtle.place()
- for j = 1, y - 1 do
- turtle.down()
- end
- end
- local function placeXY()
- for k = 1, y - 1 do
- placeX()
- change()
- end
- placeX()
- goDown()
- end
- local function start()
- placeXY()
- end
- start()
- --[[local function digXYZ()
- for l = 1, z do
- startMine()
- digXY()
- goBack()
- end
- end
- digXYZ()]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement