Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function findSakura()
- for i = 1, 16 do
- turtle.select(i)
- local name = turtle.getItemDetail()
- if name.name == "Natura:planks" then return end
- end
- end
- function findPine()
- for i = 1, 16 do
- turtle.select(i)
- local name = turtle.getItemDetail()
- if name.name == "minecraft:planks" then return end
- end
- end
- function findTorches()
- for i = 1, 16 do
- turtle.select(i)
- local name = turtle.getItemDetail()
- if name.name == "minecraft:torch" then return end
- end
- end
- function ChangeWall()
- if turtle.detectUp() then turtle.digUp() end
- turtle.up()
- if turtle.detectUp() then turtle.digUp() end
- turtle.up()
- if turtle.detectUp() then turtle.digUp() end
- turtle.up()
- if turtle.detectBack() then turtle.turnRight() turtle.turnRight() turtle.dig() turtle.turnRight() turtle.turnRight() end
- turtle.dig()
- turtle.forward()
- turtle.digDown()
- turtle.down()
- findPine()
- turtle.placeUp()
- turtle.digDown()
- turtle.down()
- findSakura()
- turtle.placeUp()
- turtle.digDown()
- turtle.down()
- turtle.placeUp()
- turtle.back()
- turtle.place()
- end
- function SwitchWall()
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- function placeTorch()
- turtle.up()
- turtle.findTorches()
- turtle.placeUp()
- turtle.down()
- end
- local run = 0
- print("Length:")
- TESTESTEST
- run = read()
- turtle.forward()
- turtle.turnLeft()
- for i=1, run do
- ChangeWall()
- if (i % 5) == 0 then placeTorch() end
- SwitchWall()
- ChangeWall()
- if (i % 5) == 0 then placeTorch() end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- TESTESTEST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement