Started by
Mexar
on
Topic category: General discussion
Hello there.
What I'm trying to do is a mod that makes Alexa mock at me when I do something bad in Minecraft; I saw that there is a way to send a precise custom message to Arduino using the command /link sendmessage <something>.
How do I check for these messages in Arduino ide? How does it work? (sorry but the example wasn't clear enough) Is it possible to send the same messages through procedure?
Edited by Mexar on Mon, 11/16/2020 - 16:16
Yes, there is send message block.
https://github.com/Pylo/MCreatorLinkArduino/blob/26826d0c0fce3b9cf5961b…
Ok but I don't know what to type in the messages to make it work:
for example when I want to make this happens :
I type in chat /link sendmessage customCommand1
But it doesn't work; so what should I type? Am I doing something wrong?
another thing, what do you mean by format
because I think "command" refers to the "customCommand1" ; but the data? what is that?
You need to send custom command with data, eg. /link sendmessage customCommand1?data
I think there is a problem; I literally type
but nothing happens on the Arduino (I made it so that when it receives the message the led builtin should blink)
Hi did you find solution ?
Hi in that line "data" is the message u sent
İ mean if u send /link sendmessage hello world the data is hello world "command" is just for usage in IDE
İf u call "command.equals" it gets the "data" and declares it as command runs the function and sets it back to zero
And also builtin led is always active so u should turn it off first