Jump to content

Recommended Posts

Posted

rednet.open("left")

while true do

shell.run("clear")

if rs.getInput ("back") then

      rednet.broadcast("engines on")

else

    rednet.broadcast("engines off")

end

os.pullEvent("redstone")

end

I want it to repeatedly send the correct message, instead of just sending it once when the red-stone is updated.

Posted

I could just use this

rednet.open("left")

while true do

shell.run("clear")

if rs.getInput ("back") then

      rednet.broadcast("engines on")

      shell.run("reboot")

else

    rednet.broadcast("engines off")

    shell.run("reboot")

end

os.pullEvent("redstone")

end

But sometimes there is a large delay before the message is updated. I need something more reliable.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...