Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local l = ...
- function buildFancyStone()
- data = turtle.getItemDetail()
- if data.name ~= "TConstruct:decoration.multibrickfancy" then
- for i=1,16 do
- data = turtle.getItemDetail(i)
- if data.name == "TConstruct:decoration.multibrickfancy" then
- turtle.select(i)
- break
- end
- end
- end
- turtle.place()
- end
- function buildStoneWall()
- data = turtle.getItemDetail()
- if data.name ~= "chisel:stonebricksmooth" then
- for i=1,16 do
- data = turtle.getItemDetail(i)
- if data.name == "chisel:stonebricksmooth" then
- turtle.select(i)
- break
- end
- end
- end
- turtle.place()
- end
- function buildCobblestone()
- data = turtle.getItemDetail()
- if data.name ~= "minecraft:cobblestone" then
- for i=1,16 do
- data = turtle.getItemDetail(i)
- if data.name == "minecraft:cobblestone" then
- turtle.select(i)
- break
- end
- end
- end
- turtle.place()
- end
- function buildGlass()
- data = turtle.getItemDetail()
- if data.name ~= "chisel:glass" then
- for i=1,16 do
- data = turtle.getItemDetail(i)
- if data.name == "chisel:glass" then
- turtle.select(i)
- break
- end
- end
- end
- turtle.place()
- end
- function right(val)
- turtle.turnRight()
- for i=1,val do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnLeft()
- end
- function left(val)
- turtle.turnLeft()
- for i=1,val do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- end
- function buildGlassTunnel()
- turtle.back()
- for i=1,4 do
- buildGlass()
- turtle.up()
- end
- for i=1,2 do
- right(1)
- buildGlass()
- end
- turtle.up()
- for i=1,3 do
- right(1)
- buildGlass()
- end
- right(1)
- turtle.down()
- for i=1,2 do
- buildGlass()
- right(1)
- end
- for i=1,4 do
- turtle.down()
- buildGlass()
- end
- left(8)
- print("Glass finished...\n")
- end
- function buildFancyStoneTunnel()
- turtle.back()
- for i=1,4 do
- buildFancyStone()
- turtle.up()
- end
- for i=1,2 do
- right(1)
- buildFancyStone()
- end
- turtle.up()
- for i=1,3 do
- right(1)
- buildFancyStone()
- end
- right(1)
- turtle.down()
- for i=1,2 do
- buildFancyStone()
- right(1)
- end
- for i=1,4 do
- turtle.down()
- buildFancyStone()
- end
- left(8)
- print("FancyStone finished...\n")
- end
- function buildStoneWallTunnel(var)
- for i=1,var do
- turtle.back()
- for i=1,4 do
- buildStoneWall()
- turtle.up()
- end
- for i=1,2 do
- right(1)
- buildStoneWall()
- end
- turtle.up()
- for i=1,3 do
- right(1)
- buildStoneWall()
- end
- right(1)
- turtle.down()
- for i=1,2 do
- buildStoneWall()
- right(1)
- end
- for i=1,4 do
- turtle.down()
- buildStoneWall()
- end
- left(8)
- end
- print("Stonewall finished...\n")
- end
- function execute()
- buildGlassTunnel()
- buildFancyStone()
- buildStoneWall(3)
- buildFancyStone()
- end
- for i=1,l do
- execute()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement