This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Jacob_sword's profile picture

Need Help With Rednet.

Started by Jacob_sword, 28 February 2012 - 09:23 AM
Jacob_sword #1
Posted 28 February 2012 - 10:23 AM
I need help with Rednet. I've got two computers hoked up. I go into Lua an type.

lua> rednet.open(left")
lua> rednet.broadcast("hi")
true


On the other computer

lua> rednet.open("right")
lua> rednet,receive (20)

Then I wait and get nothing what am I doing wrong?
FuzzyPurp #2
Posted 28 February 2012 - 10:29 AM
How to use Modems with Rednet
Jacob_sword #3
Posted 28 February 2012 - 10:48 AM
How do I get a Modem it says to sneak and Right click but that does nothing.
Espen #4
Posted 28 February 2012 - 12:05 PM
The command rednet.receive(x) listens for x seconds for messages.
But of course you have to listen before you send a message.
So start your listener first and then send a message. That should work.

Also, don't know if that is what you really typed or just mistyped here, but just to make sure:
You forgot a double-quote in the first command.
It's not…
rednet.open(left")
…but rather…
rednet.open("left")

And you used a comma instead of a dot in the last command.
It's not…
rednet,receive(20)
…but rather…
rednet.receive(20)

How to get a modem:
To craft it you can use the recipe on the very first post of the ComputerCraft thread on the minecraftforums.
To place it on a computer you SHIFT + right-click on the computer with it.
Edited on 28 February 2012 - 11:08 AM
Jacob_sword #5
Posted 28 February 2012 - 08:47 PM
Oh thanks I'm going to go try it out.
Jacob_sword #6
Posted 28 February 2012 - 10:44 PM
Hey I'm using tekkit and it only has computercraft 1.2 for right now. It has Rednet but how do I do this without a modem.
Espen #7
Posted 28 February 2012 - 10:57 PM
Hey I'm using tekkit and it only has computercraft 1.2 for right now. It has Rednet but how do I do this without a modem.
Instead of modems you'll have to use bundled cable from the Redpower 2 mod.
The commands stay the same though. :D/>/>
Jacob_sword #8
Posted 29 February 2012 - 09:33 AM
finally got it to work thanks Espen. Also do you now a way how to do this wireless. I got this redstone wireless box and was thinking I could use that.
Espen #9
Posted 29 February 2012 - 11:43 AM
finally got it to work thanks Espen. Also do you now a way how to do this wireless. I got this redstone wireless box and was thinking I could use that.
Hmm? Are you talking about the wireless modems from ComputerCraft?
If so, then it's exactly the same. Place them on a side of a computer (SHIFT + Right-Click so you don't turn on the computer instead) and use the same rednet commands.
If you're talking about the wireless redstone mod, then that is a different mod which has nothing to do with ComputerCraft and thus cannot be controlled via rednet.
Liraal #10
Posted 29 February 2012 - 12:47 PM
well if it's wireless redstone, you can still write a control software, as rednet is basically a mean of sending bits tjrough bundled cables, no magic involved. OR if you don't want to do that, just get 32 tramsitters and receivers and connect them to the colors on different frequencies.