Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ...}
- local x = tonumber(tArgs[1])
- local y = tonumber(tArgs[2])
- local slot = 1
- turtle.select(16)
- turtle.refuel()
- for e=1, y, 1 do
- for i=1, 4,1 do
- for w=1, x,1 do
- if turtle.getItemCount(slot) == 0 then
- slot=slot+1
- end
- turtle.select(slot)
- if turtle.detectDown() and not turtle.compareDown() then
- turtle.digDown()
- end
- turtle.placeDown()
- if w<x then
- turtle.forward()
- end
- if w==x then
- turtle.turnRight()
- end
- end
- if i==4 and e<y then
- turtle.up()
- end
- end
- end
- turtle.back()
- for r=1,y,1 do
- turtle.down()
- end
- turtle.turnRight() turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement