Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inp="0"
- count=0
- maxcount=16
- gows="0"
- shell.run("refuel all")
- while true do
- inp=read()
- coal = turtle.refuel()
- shell.run("label set Miner, "..coal)
- if not(inp=="0") then
- if not(inp=="ref") then
- if not(inp=="go") then
- if not(inp=="drop") then
- shell.run("tunnel "..inp)
- turtle.turnLeft()
- turtle.turnLeft()
- shell.run("tunnel "..inp)
- count=0
- inp="0"
- end
- end
- end
- if(inp=="drop") then
- while not(count==maxcount) do
- if count==0 then
- else
- turtle.select(count)
- turtle.dropDown()
- end
- count=count+1
- end
- turtle.select(1)
- end
- end
- if inp=="go" then
- turtle.forward()
- end
- if(inp=="ref") then
- shell.run("refuel all")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement