Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- WallBuilder.lua
- local tArgs = { ...}
- y = tonumber(tArgs[1])
- x = tonumber(tArgs[2])
- Slot = 1
- function checkCurSlot()
- InvCount = turtle.getItemCount(Slot)
- if InvCount == 0 then
- Slot = Slot + 1
- turtle.select(Slot)
- end
- end
- -----------
- turtle.select(Slot)
- for r=1, y do
- for i=1, x do
- turtle.place()
- checkCurSlot()
- turtle.up()
- end
- for i=1, x do
- turtle.down()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement