5 posts
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?
496 posts
Location
Harlem, NY
Posted 28 February 2012 - 10:29 AM
5 posts
Posted 28 February 2012 - 10:48 AM
How do I get a Modem it says to sneak and Right click but that does nothing.
715 posts
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
5 posts
Posted 28 February 2012 - 08:47 PM
Oh thanks I'm going to go try it out.
5 posts
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.
715 posts
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/>/>
5 posts
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.
715 posts
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.
473 posts
Location
Poland
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.