rednet.recieve bug #1529
-
Minecraft Version1.20.x Version1.106.1 Detailswhen using the code from the official wiki, it gives an error. the code in question is the rednet.recieve code with no timeout. it just says that there is an unexpected = sign, and suggests using ==, which does nothing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Can you post the code you're trying to run? I've just tested all three examples from the docs, and they appear to work. |
Beta Was this translation helpful? Give feedback.
-
sure, here it is rednet.open(
--the rednet api returns the id of the computer
-- sending the message, then the message.
--this saves the id variable as "id" and the message
--as "message"
id,message=rednet.recieve
print(id)
print(message) the sending code seems to have no issues, though here it is anyway rednet.open("right")
rednet.send(12,"hello from the other side!" ) i have checked, the receiving computer is id 12, also i,m using a wired modem if that changes anything. |
Beta Was this translation helpful? Give feedback.
Oh gosh, I'm not sure where you got that code from, but it's horribly garbled. It's missing a couple of pretty key bits. This is what the code should look like: