Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aantal = 2
- function placeBlock(n) -- Place block below, move forward
- for i = 1,n do
- turtle.placeDown()
- turtle.forward()
- end
- end
- function vloer(ab)
- a = ab*5
- for i = 1,2 do
- placeBlock(a) -- Plaats steen
- for x = 1,2 do -- Moves to second row
- turtle.turnLeft()
- turtle.forward()
- end
- placeBlock(a) -- Plaats steen
- for x = 1,2 do -- Moves to second row
- turtle.turnRight()
- turtle.forward()
- end
- end
- placeBlock(a) -- Plaats steen
- end
- function muur()
- turtle.select(3) -- Select Wood
- for i = 1,4 do
- turtle.up()
- turtle.placeDown()
- end
- turtle.forward()
- for i = 1,3 do
- turtle.down()
- end
- turtle.select(2) -- Select steen
- for i = 1,4 do
- placeBlock(3)
- turtle.placeDown()
- turtle.up()
- rotate()
- end
- end
- function rotate()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function pos2()
- rotate()
- turtle.forward()
- turtle.turnRight()
- for i = 1,4 do
- turtle.forward()
- end
- turtle.turnRight()
- for i = 1,5 do
- turtle.down()
- end
- end
- function pos1()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- end
- function pos3()
- for i = 1,4 do
- turtle.forward()
- end
- for i = 1,5 do
- turtle.down()
- end
- turtle.turnRight()
- for i = 1,4 do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- function basismuur(a)
- for i = 1,a do
- muur()
- pos2()
- muur()
- pos3()
- end
- end
- function pos4()
- rotate()
- for i = 1,4 do
- turtle.up()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- rotate()
- end
- function balkback(a)
- turtle.select(3) -- Select Wood
- b=a*5
- for i = 1,b do
- turtle.place()
- turtle.back()
- end
- turtle.turnRight()
- turtle.back()
- for i = 1,6 do
- turtle.back()
- end
- turtle.turnRight()
- for i = 1,3 do
- turtle.back()
- end
- for i = 1,b do
- turtle.place()
- turtle.back()
- end
- end
- function pos5()
- turtle.up()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- turtle.select(1) -- Select steen
- vloer(aantal)
- pos1()
- basismuur(aantal)
- pos4()
- balkback(aantal)
- turtle.select(4) -- Select wood
- pos5()
- vloer(aantal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement