Jump to content

Reece C.

Members
  • Posts

    42
  • Joined

  • Last visited

About Reece C.

  • Birthday 11/01/1995

Reece C.'s Achievements

Grass

Grass (2/9)

0

Reputation

  1. 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.
  2. 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.
  3. Well, I just switched out my networking cables for a wireless modem, and the code still works. So yeah.
  4. This looks almost identical to the code I used. I don't see much, if any difference between the two.
  5. I'm talk'n red-stone detection. A conductive pipe that emits a red-stone signal when energy is passing through. Much like the red-stone item or fluid pipes. It shocks me that something like that isn't already installed.
  6. That's what I suspected. So I can easily just use wireless without having to change any code right?
  7. Which ever one has some sort of something to detect weather power is flowing is the better one. I wish I could detect power flow.
  8. How do I give you a like?

  9. Now all I have to figure out is how to make it look nice, you know, with lines ------------------ and stuff. Hope that won't be too difficult.
  10. And presto, it works! Thanks. So now I think I can use this method to add as many computers as I wish. Thank you!
  11. but, it still doesn't work after I fixed it.
  12. oh my bad, the buffer broadcast is in send format. My bad. :/
  13. Here are my current codes main code rednet.open("top") local engine_state = false local buffer_state = false mon = peripheral.wrap("back") while true do event, id, message = os.pullEvent("rednet_message") if message == "engines on" then engine_state = true elseif message == "engines off" then engine_state = false elseif message == "Buffer: Drain" then buffer_state = true elseif message == "Buffer: Retain" then buffer_state = false end mon.clear() mon.setCursorPos(5,5) if engine_state == true then mon.write("Engines: On") else mon.write("Engines: Off") end mon.setCursorPos(60,5) if buffer_state == true then mon.write("Buffer: Drain") else mon.write("Buffer: Retain") end end Engine send code 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 Buffer send code rednet.open("top") while true do shell.run("clear") if rs.getInput ("front") then rednet.broadcast(21,"buffer drain") else rednet.broadcast(21,"buffer retain") end os.pullEvent("redstone") end end
×
×
  • Create New...