Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function turnAround()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function refuel()
- if turtle.getFuelLevel() < 100 then
- turtle.select(2) --- slot 2 refuel chest ---
- if turtle.detectUp then
- turtle.digUp()
- turtle.placeUp()
- turtle.suckUp()
- turtle.refuel()
- turtle.dropUp()
- turtle.digUp()
- end
- end
- end
- function wholechunk()
- refuel()
- for a=1,15 do
- turtle.detect()
- turtle.dig()
- turtle.forward()
- end
- end
- function chunkload()
- turtle.detectUp()
- turtle.digUp()
- turtle.select(16) ---slot 16 chunkloader---
- turtle.placeUp()
- wholechunk()
- turtle.detectUp()
- turtle.digUp()
- turtle.placeUp()
- turnAround()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- --- A turtle está agora na posição 13 pronta para colocar builder ---
- function builder()
- refuel()
- turtle.select(4) ---slot 4 builder ---
- turnAround()
- turtle.place()
- turtle.digDown()
- turtle.down()
- turtle.dig()
- turtle.select(1) ---slot 1 quantum entagloporter---
- turtle.place()
- turtle.up()
- turtle.turnLeft()
- turtle.detect()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.detect()
- turtle.dig()
- turtle.select(5) ---slot 5 redstone torch ---
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- function firstphase()
- chunkload()
- builder()
- end
- function secondphase()
- function backUp()
- refuel()
- for b=1,178 do
- turtle.up()
- end
- end
- function standby()
- while turtle.detect() == true do
- sleep(1)
- if turtle.detect() == false then
- backUp()
- end
- end
- end
- function netherrack()
- local sucess, data = turtle.inspectDown()
- if sucess == true then
- if data.name == "minecraft:bedrock" then
- turtle.turnRight()
- turtle.select(15) ---slot 15 bloco de netherrack---
- turtle.place()
- standby()
- end
- end
- end
- function goDown()
- refuel()
- while true do
- turtle.digDown()
- turtle.down()
- netherrack()
- end
- end
- goDown()
- standby()
- backUp()
- end
- firstphase()
- secondphase()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement