Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --slot 1 frame blocks, slot 2 alveary blocks
- --slot 3 rain shields, slot 4 lighting
- --slot 5 slabs
- -- slot 6 and 7 extra slabs
- -- fill all other slots with alveary blocks
- -- makes a maximum of 21 alvearies
- --first block is placed where the turtle starts
- -- alveary is built behind and to the right of turtle starting position
- function refill(slot)
- local flag = false
- for i = 1,16 do
- if i ~= slot then
- turtle.select(i)
- flag = flag or turtle.transferTo(slot)
- end
- end
- return flag
- end
- local tArgs = {...}
- local times = tonumber(tArgs[1])
- if not times then error("SPECIFY HOW MANY") end
- for i = 1, times do
- turtle.select(1)
- turtle.back(1)
- turtle.place()
- turtle.back(1)
- turtle.place()
- turtle.back(1)
- turtle.place()
- turtle.turnRight()
- turtle.forward(1)
- turtle.turnRight()
- turtle.back(1)
- turtle.select(2)
- turtle.back(1)
- turtle.place()
- turtle.select(4)
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.select(3)
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.back()
- turtle.back()
- turtle.select(2)
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- --layer 2
- turtle.up()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.back()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.back()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.back()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.select(2)
- --Layer 3
- turtle.up()
- turtle.turnRight()
- turtle.turnRight()
- turtle.back()
- turtle.back()
- turtle.select(2)
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.back()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.back()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- --Slab row
- turtle.up()
- turtle.turnRight()
- turtle.turnRight()
- turtle.back()
- turtle.back()
- turtle.select(5)
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.back()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.back()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- --Get in position
- turtle.up()
- for i = 1,4 do turtle.forward() end
- for i = 1,4 do turtle.down() end
- turtle.turnRight()
- turtle.turnRight()
- turtle.back()
- refill(2)
- refill(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment