Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function forward()
- refuel();
- while turtle.detect() do
- turtle.dig()
- end
- turtle.forward()
- end
- function up()
- refuel();
- while turtle.detectUp() do
- turtle.digUp()
- end
- turtle.up()
- end
- function selectSlot()
- while turtle.getItemSpace() == 64 do
- emptySlot = true;
- for i=1, 15 do
- if emptySlot then
- turtle.select(i)
- emptySlot = turtle.getItemSpace() == 64
- end
- end
- end
- end
- function refuel()
- while turtle.getFuelLevel() == 0 do
- turtle.select(16)
- turtle.refuel()
- end
- turtle.select(1)
- selectSlot()
- end
- function placeDown()
- while turtle.detectDown() do
- turtle.digDown()
- end
- selectSlot()
- turtle.placeDown()
- end
- function unp()
- up()
- p()
- end
- function fnp()
- forward()
- p()
- end
- function f()
- forward()
- end
- function r()
- turtle.turnRight()
- end
- function l()
- turtle.turnLeft()
- end
- function rfl()
- r()
- f()
- l()
- end
- function flfrp()
- f()
- l()
- fnp()
- r()
- end
- function p()
- placeDown()
- end
- while true do
- up()
- for i = 1, 4 do
- p()
- fnp()
- fnp()
- fnp()
- fnp()
- rfl()
- fnp()
- fnp()
- rfl()
- fnp()
- fnp()
- rfl()
- fnp()
- rfl()
- fnp()
- rfl()
- fnp()
- rfl()
- fnp()
- rfl()
- fnp()
- r()
- fnp()
- flfrp()
- fnp()
- flfrp()
- fnp()
- fnp()
- fnp()
- f()
- end
- end
Add Comment
Please, Sign In to add comment