Where $N ($ followed by a number) in the second parameter would evaluate into that match. So if you know regex, you know that anything inside of parenthesis is a match. You could have multiple matches in the regex and use them in the command where you like.
So with the former command, if you typed "!tpme Notch" it would run "/tp @p Notch".
This would test if the any of the messages sent in the tick that this was activated, making it good for 20 tick clocks. This would be intended for messages or commands match the message listed in the command. This would work similarly to "detect" meaning that if it is true, it will execute the next command relative to the player that said the message if you had it in an execute command, but just on its own, it would execute relative to the command block.
I like this, however, I think it should not check the message buffer, but it should only check the message sent that game tick. This would make it only trigger one time right when it is sent. This command would only work from command blocks connected to a fill clock. I also think some sort of wildcards or regex should be allowed. If you could use a regex filter this would be fantastic. Of course, with regex, there would need to be a way to assign the match text to a variable or something...
Since you can use the /execute command, I don't think this should trigger from the player saying the message, but from the command block itself. So you could do "/execute @a ~ ~ ~ testformessage" if you want it to trigger from who said it.
Example of how I think it should work:
/testformessage <regex> [command to run on match text]
Where $N ($ followed by a number) in the second parameter would evaluate into that match. So if you know regex, you know that anything inside of parenthesis is a match. You could have multiple matches in the regex and use them in the command where you like.
So with the former command, if you typed "!tpme Notch" it would run "/tp @p Notch".
The Meaning of Life, the Universe, and Everything.
Location:
The Internet
Join Date:
7/29/2014
Posts:
46
Location:
The Internet
Member Details
Honestly, I rather like this idea. I can think of times in the past where this would have been useful for me, as well as some applications for it in the future. Support.
I like this, however, I think it should not check the message buffer, but it should only check the message sent that game tick. This would make it only trigger one time right when it is sent. This command would only work from command blocks connected to a fill clock. I also think some sort of wildcards or regex should be allowed. If you could use a regex filter this would be fantastic. Of course, with regex, there would need to be a way to assign the match text to a variable or something...
Since you can use the /execute command, I don't think this should trigger from the player saying the message, but from the command block itself. So you could do "/execute @a ~ ~ ~ testformessage" if you want it to trigger from who said it.
Example of how I think it should work:
/testformessage <regex> [command to run on match text]
Where $N ($ followed by a number) in the second parameter would evaluate into that match. So if you know regex, you know that anything inside of parenthesis is a match. You could have multiple matches in the regex and use them in the command where you like.
So with the former command, if you typed "!tpme Notch" it would run "/tp @p Notch".
Made no sense to me, but I am a bit of a command noob so I have no idea what you just said. Either way, I added it to the post(With Credit to you) as well as a simple usage.
Honestly, I rather like this idea. I can think of times in the past where this would have been useful for me, as well as some applications for it in the future. Support.
Sorry about the very late response, I hadn't seen this. At any rate, thanks, and would you mind telling me a few so I can add them to a list of uses?
Simple to use, simple to remember, and very useful.
-~=[Support]=~-
I must say, I thought this thread rather dead, and figured I shouldn't bump it, thank you for reviving it, hopefully others shall see this and agree.
Either way thanks, and check out a few of the others of mine if you can.
I am posting here for two reasons, one I never did, and I feel the need to say I would find this useful, and two, recently another post similar to this, that doesn't seem to be maintained has resurfaced. Also, this is much more useful/ many more options than the other thread.
Rollback Post to RevisionRollBack
Also take a look at this guide if you are requesting builders for a server/project.
Please note, if I deny a suggestion because it is already possible, then I mean it is already possible withing 10 command blocks (That do not spawn other command blocks) or up to 5 creations (Command blocks that spawn other command blocks) to make your suggestion.
If I critique your suggestion I am not hating on you. Learn the difference.
Usage Thank you nigathan
/testformessage <regex> [command to run on match text]
/execute @a ~ ~ ~ testformessage "^!tp (@p .+)$" "tp"
This would let a player type "!tp @p Notch" and it would run "/tp @p Notch" from the player who said it, teleporting that player to Notch.
Actually a better method might be like this:
/execute @a ~ ~ ~ testformessage "^!tpme (.+)$" "tp @p $1"
Where $N ($ followed by a number) in the second parameter would evaluate into that match. So if you know regex, you know that anything inside of parenthesis is a match. You could have multiple matches in the regex and use them in the command where you like.
So with the former command, if you typed "!tpme Notch" it would run "/tp @p Notch".
/execute @a ~ ~ ~ testformessage "hi" tp @p
This would test if the any of the messages sent in the tick that this was activated, making it good for 20 tick clocks. This would be intended for messages or commands match the message listed in the command. This would work similarly to "detect" meaning that if it is true, it will execute the next command relative to the player that said the message if you had it in an execute command, but just on its own, it would execute relative to the command block.
USES:
Custom Commands
Dialogue
Puzzle Answers
advanced vanilla command permissions
"Siri" Thanks Danata
Go check out my other posts as well, and thank you for your consideration.
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/2306278-cameralock
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/2295285-overlay
Since you can use the /execute command, I don't think this should trigger from the player saying the message, but from the command block itself. So you could do "/execute @a ~ ~ ~ testformessage" if you want it to trigger from who said it.
Example of how I think it should work:
/testformessage <regex> [command to run on match text]
/execute @a ~ ~ ~ testformessage "^!tp (@p .+)$" "tp"
This would let a player type "!tp @p Notch" and it would run "/tp @p Notch" from the player who said it, teleporting that player to Notch.
Edit:
Actually a better method might be like this:
/execute @a ~ ~ ~ testformessage "^!tpme (.+)$" "tp @p $1"
Where $N ($ followed by a number) in the second parameter would evaluate into that match. So if you know regex, you know that anything inside of parenthesis is a match. You could have multiple matches in the regex and use them in the command where you like.
So with the former command, if you typed "!tpme Notch" it would run "/tp @p Notch".
Hope that made sense..
Made no sense to me, but I am a bit of a command noob so I have no idea what you just said. Either way, I added it to the post(With Credit to you) as well as a simple usage.
Sorry about the very late response, I hadn't seen this. At any rate, thanks, and would you mind telling me a few so I can add them to a list of uses?
-~=[Support]=~-
+ = BOOM!
I must say, I thought this thread rather dead, and figured I shouldn't bump it, thank you for reviving it, hopefully others shall see this and agree.
Either way thanks, and check out a few of the others of mine if you can.
I'm a programmer. I love ponies. I believe in Celestia ...
I am posting here for two reasons, one I never did, and I feel the need to say I would find this useful, and two, recently another post similar to this, that doesn't seem to be maintained has resurfaced. Also, this is much more useful/ many more options than the other thread.
Also take a look at this guide if you are requesting builders for a server/project.
Please note, if I deny a suggestion because it is already possible, then I mean it is already possible withing 10 command blocks (That do not spawn other command blocks) or up to 5 creations (Command blocks that spawn other command blocks) to make your suggestion.
If I critique your suggestion I am not hating on you. Learn the difference.
Good Idea. But here's a bit of advice:
Rather than a command, It would be better if it's a tag.
Ex. /testfor @p {Message:"/spawn"}
/tp @p <x> <y> <z> {Message:"/spawn"}
This will help because it could be used on much more commands rather than it self is a command.
Thank you
i tried it and it said [09:21:06] JMHacker did not match the required data structure
It's a suggestion you Spruce Wood. That means that it hasn't been implemented yet.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Status: Building Redstone contraptions like there is no tomorrow!
Give a player a wooden axe and he'll go chop some trees down, give me a wooden axe and I'll be off doing worldedit like crazy
Selling your soul to Notch is a good idea! (Sorry Satan, you'll have to wait)