Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main()
- use()
- setup()
- goOneDown()
- setup()
- goOneDown()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.up()
- turtle.select(14)
- turtle.place()
- turtle.down()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(1)
- local torches = turtle.getItemCount(16)
- for i=1, torches do
- for j=1, 5 do
- setup()
- if goOneDown() then
- return true
- end
- end
- placeTorch()
- end
- end
- function use()
- print("64 Torches on Itemslot 16")
- print("64 Cobblestone on Itemslot 15")
- print("2 Craftingtable on Itemslot 14")
- end
- function placeTorch()
- turtle.up()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.up()
- turtle.select(16)
- if turtle.compareUp() then
- return 'true'
- end
- turtle.placeUp()
- turtle.turnRight()
- turtle.turnRight()
- turtle.down()
- turtle.forward()
- turtle.down()
- end
- function setup()
- while turtle.detect() do
- turtle.dig()
- sleep(0.5)
- end
- turtle.forward()
- end
- function goOneDown()
- while turtle.detectUp() do
- turtle.digUp()
- sleep(0.5)
- end
- if turtle.detectDown() then
- turtle.digDown()
- if turtle.detectDown() then
- print("Block unbreakable")
- return true
- end
- end
- turtle.down()
- if turtle.detectDown() then
- turtle.digDown()
- if turtle.detectDown() then
- print("Block unbreakable")
- return true
- end
- end
- turtle.down()
- if turtle.detectDown() then else
- turtle.select(15)
- turtle.placeDown()
- turtle.select(1)
- end
- turtle.up()
- return false
- end
- function goBack()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.select(14)
- while true do
- turtle.up()
- if turtle.compareUp() then
- return true
- else
- turtle.forward()
- end
- end
- end
- main()
- print("End Going Up")
- goBack()
- print("Finished")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement