Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variables
- go = true
- chk = true
- dnc = 10
- trvd = 0
- --Functions
- dig = function()
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- chkDrp()
- trvd = (trvd+1)
- end
- chkDrp = function()
- inv = 1
- while chk == true do
- if turtle.getItemCount(inv) == 0 then
- chk = false
- else
- inv = inv+1
- if inv == 17 then
- drpOf()
- end
- end
- end
- chk = true
- end
- drpOf = function()
- go = false
- end
- strp = function()
- sf = 0
- while dnc ~= sf do
- chkDrp()
- dig()
- sf = sf+1
- end
- end
- ary = function()
- while go == true do
- strp()
- turtle.turnLeft()
- dig()
- dig()
- dig()
- dig()
- turtle.turnRight()
- turtle.turnRight()
- dig()
- dig()
- dig()
- dig()
- dig()
- dig()
- dig()
- dig()
- turtle.turnRight()
- strp()
- turtle.turnRight()
- dig()
- dig()
- dig()
- dig()
- turtle.turnRight()
- turtle.turnRight()
- dig()
- dig()
- dig()
- dig()
- dig()
- dig()
- dig()
- dig()
- turtle.turnLeft()
- end
- end
- --Code
- ary()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement