a
This commit is contained in:
parent
12ffbdc45d
commit
13ddce15ae
15 changed files with 8967 additions and 61 deletions
|
@ -17,7 +17,7 @@ function fell(index)
|
|||
print("going towards tree")
|
||||
pf.lookat(trees[index or math.random(#trees)])
|
||||
has, data = turtle.inspect()
|
||||
print(has,data)
|
||||
--print(has,data)
|
||||
if
|
||||
has and data.name ==
|
||||
"techreborn:rubber_log"
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
while true do
|
||||
{os.pullEvent("rednet_message")}
|
||||
print("rednerd")
|
||||
message = {os.pullEvent("rednet_message")}
|
||||
print(message[3])
|
||||
coroutine.yield()
|
||||
end
|
||||
|
|
|
@ -10,10 +10,14 @@ new_print = function(...)
|
|||
old_print(x)
|
||||
rednet.broadcast(x)
|
||||
end
|
||||
_G.print = new_print
|
||||
while true do
|
||||
parallel.waitForAny(
|
||||
require("rednerd")
|
||||
--shell.run("shell")
|
||||
--_G.print = new_print
|
||||
rednet.host("tomfoolery",os.computerLabel())
|
||||
--while true do
|
||||
if not _G.thing or true then
|
||||
_G.thing = true
|
||||
parallel.waitForAll(
|
||||
function() while true do read() end end,
|
||||
function() shell.run("felling") end,
|
||||
function() while true do id,message = rednet.receive() print(message) end end
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue