Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- slot = 1
- function floor1()
- for x=1, 10, 1 do
- placeFloor()
- turnRight()
- placeFloor()
- turnLeft()
- end
- end
- function placeFloor()
- placeDown()
- for x=1, 19, 1 do
- turtle.forward()
- placeDown()
- end
- end
- function place()
- inventory()
- turtle.place()
- end
- function placeUp()
- inventory()
- turtle.placeUp()
- end
- function placeDown()
- inventory()
- turtle.placeDown()
- end
- function turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- function turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- function inventory()
- if turtle.getItemCount(slot) == 0 then
- slot = slot + 1
- end
- turtle.select(slot)
- end
- function walls1()
- turtle.up()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- for x=1, 3, 1 do
- placeWalls()
- turtle.turnLeft()
- end
- placeWall4()
- end
- function placeWalls()
- for x=1, 19, 1 do
- placeDown()
- placeUp()
- turtle.back()
- place()
- end
- end
- function placeWall4()
- for x=1, 18, 1 do
- placeDown()
- placeUp()
- turtle.back()
- place()
- end
- placeDown()
- placeUp()
- turtle.turnRight()
- turtle.back()
- place()
- turtle.up()
- turtle.up()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- end
- function cage()
- for x=1, 4, 1 do
- placeCage()
- end
- end
- function placeCage()
- placeUp()
- turtle.back()
- place()
- for x=1, 6, 1 do
- turtle.back()
- end
- turtle.turnRight()
- turtle.forward()
- placeCageFloor()
- turtle.up()
- placeCageWall()
- for x=1, 6, 1 do
- turtle.back()
- end
- turtle.turnRight()
- turtle.down()
- end
- function placeCageFloor()
- cageFloor()
- turnRight()
- cageFloor()
- turnLeft()
- cageFloor()
- turnRight()
- cageFloor()
- turnLeft()
- cageFloor()
- turnRight()
- cageFloor()
- end
- function cageFloor()
- for x=1, 4, 1 do
- placeDown()
- turtle.forward()
- end
- placeDown()
- end
- function placeCageWall()
- for x=1, 4, 1 do
- placeDown()
- placeUp()
- turtle.back()
- place()
- end
- turtle.turnLeft()
- for x=1, 5, 1 do
- placeDown()
- placeUp()
- turtle.back()
- place()
- end
- turtle.turnLeft()
- for x=1, 5, 1 do
- placeDown()
- placeUp()
- turtle.back()
- place()
- end
- turtle.turnLeft()
- for x=1, 6, 1 do
- placeDown()
- turtle.back()
- place()
- end
- end
- floor1()
- walls1()
- cage()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement