This commit is contained in:
Crispy 2025-05-23 02:31:02 +02:00
parent 12ffbdc45d
commit 13ddce15ae
15 changed files with 8967 additions and 61 deletions

View file

@ -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"

View file

@ -1,2 +1,6 @@
while true do
{os.pullEvent("rednet_message")}
print("rednerd")
message = {os.pullEvent("rednet_message")}
print(message[3])
coroutine.yield()
end

View file

@ -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