Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local x = args[1]
- local y = args[2]
- local slot = 1
- function line()
- for i=1, y do
- turtle.placeDown()
- turtle.forward()
- checkblocks()
- end
- end
- function checkblocks()
- if turtle.getItemCount(slot) < 1 then
- slot = slot+1
- turtle.select(slot)
- end
- end
- function cover()
- for j=1,math.floor(x/2) do
- line()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- line()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
- end
- x = args[1]
- y = args[2]
- slot = 1
- cover()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement