You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
451 B
21 lines
451 B
local args = { ... }
|
|
|
|
rednet.open("right")
|
|
while true do
|
|
-- we are using wireless to get the distance
|
|
-- so the master should be aligned with the slaves
|
|
local id, mess, dist = rednet.receive()
|
|
if mess == id then
|
|
turtle.up()
|
|
for i = 1, dist do turtle.back() end
|
|
|
|
-- TODO: wait for empty chest or something
|
|
sleep(1)
|
|
|
|
for i = 1, dist do turtle.forward() end
|
|
turtle.down()
|
|
end
|
|
end
|
|
|
|
-- TODO: activate redstone for the buildcraft engine
|
|
|
|
|