mmm
This commit is contained in:
parent
5422d52065
commit
4f2631b349
24 changed files with 414 additions and 5665 deletions
|
@ -2,8 +2,8 @@ im = require("inventorymanager")
|
|||
local height = 0
|
||||
function mineLayer()
|
||||
rednet.broadcast("i can halt now")
|
||||
id, message = rednet.receive(nil, 5)
|
||||
if message == "halt" then
|
||||
id, messages = rednet.receive(nil, 5)
|
||||
if messages == "halt" then
|
||||
print("was ordered to stop")
|
||||
return false
|
||||
end
|
||||
|
@ -17,15 +17,15 @@ function mineLayer()
|
|||
slots = slots +1
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if slots < 8 then
|
||||
print("not confident i can pick it all up :(")
|
||||
return false
|
||||
end
|
||||
status = "dropping down"
|
||||
print(status)
|
||||
while turtle.down() do
|
||||
height = height+1
|
||||
while turtle.down() do
|
||||
height = height+1
|
||||
end
|
||||
turtle.digDown()
|
||||
turtle.down()
|
||||
|
@ -33,7 +33,7 @@ function mineLayer()
|
|||
status = "mining layer:"..height
|
||||
print(status)
|
||||
for i = 1,16 do
|
||||
|
||||
|
||||
for j = 1,15 do
|
||||
hit, below = turtle.inspectDown()
|
||||
if below.name == "minecraft:water" then
|
||||
|
@ -66,7 +66,7 @@ function mineLayer()
|
|||
end
|
||||
function gohome()
|
||||
status = "resurfacing"
|
||||
print(status)
|
||||
print(status)
|
||||
for i = 1,height do
|
||||
turtle.up()
|
||||
end
|
||||
|
@ -74,6 +74,6 @@ function gohome()
|
|||
end
|
||||
turtle.forward()
|
||||
while mineLayer() do
|
||||
|
||||
|
||||
end
|
||||
gohome()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue