The idea is a new parameter for the @ player selectors (@a, @p, ...).
text: Player who says the text in between the quotation marks
text_word: Player who's text contains the text in between the quotation marks, if blank it tests for any speaking
text_begin: Player who text starts with the text between the quotation marks, if blank it tests for any speaking
chat: Replace "text" with chat to "chat" only chat
command: Replace "text" with "command" to test only commands
_case: If added to the end of "text" (after word/begin), it requires text to be case sensitive.
_hide: If added to the end of "text" (after word/begin/case), it stops the command from activating or the chat from sending.
Now some of you are asking "What is the point of this?". I will list some example uses:
A door that opens when you say the magic word.
A server censor list, to stop chat with certain words.
Custom server commands in vanilla Minecraft.
Stop players from using certain commands.
Location: Where to look for the text
-word: Tests for text anywhere
-exact: Tests for exact text
-begin: Tests for text only at the beginning
Source: Where the chat comes from
-chat: Checks chat for text
-command: Checks commands for text
-both: Checks all output for text
Case: If true, case sensitive
Display: If true the command/chat message should go through (command run/chat said)
Command: Optional command to run, is run at the location of the player who typed the chat
Example commands:
/testforchat "Hello" word chat false true give @p minecraft:apple
Gives any player who says Hello an apple
/testforchat "/notch" text command true false tp @p Notch
Yes, please! Command additions for map-makers are always good in my list. Just think of all the stuff you could do with this. It's an amazing idea, I hope it makes its way into the game. Full support.
Yes, please! Command additions for map-makers are always good in my list. Just think of all the stuff you could do with this. It's an amazing idea, I hope it makes its way into the game. Full support.
please please pretty please do not do that it's pretty annoying!
It would be good that the text imput can generate a redstone output and not only work for commands, this would give more possibilities.
Support.
I'm pretty sure /testfor works with datatags, so I think it works. If not, you can always have the player teleport to themselves and stick a comparator to that.
I'm pretty sure /testfor works with datatags, so I think it works. If not, you can always have the player teleport to themselves and stick a comparator to that.
I agree, that would probably be the best solution.
Added a similar idea. Append _case to text, text_begin, text_word, ect. to make it case sensitive.
Also made everything in one check to remove extra commands that require the first
text: Player who says the text in between the quotation marks
text_word: Player who's text contains the text in between the quotation marks, if blank it tests for any speaking
text_begin: Player who text starts with the text between the quotation marks, if blank it tests for any speaking
chat: Replace "text" with chat to "chat" only chat
command: Replace "text" with "command" to test only commands
_case: If added to the end of "text" (after word/begin), it requires text to be case sensitive.
_hide: If added to the end of "text" (after word/begin/case), it stops the command from activating or the chat from sending.
Now some of you are asking "What is the point of this?". I will list some example uses:
A door that opens when you say the magic word.
A server censor list, to stop chat with certain words.
Custom server commands in vanilla Minecraft.
Stop players from using certain commands.
Example commands:
Gives any player who says Hello an apple
Teleports any player who types /notch to Notch
An alternate format idea:
Location: Where to look for the text
-word: Tests for text anywhere
-exact: Tests for exact text
-begin: Tests for text only at the beginning
Source: Where the chat comes from
-chat: Checks chat for text
-command: Checks commands for text
-both: Checks all output for text
Case: If true, case sensitive
Display: If true the command/chat message should go through (command run/chat said)
Command: Optional command to run, is run at the location of the player who typed the chat
Example commands:
Gives any player who says Hello an apple
Teleports any player who types /notch to Notch
Those are probably plug-ins, and the server is most likely using Bukkit.
On topic: This seems like a fair suggestion. With this, I guess you could also make custom commands or something? I'll give this some support.
There should be an option to change this, as you might not want it case sensitive.
And thanks for the support.
Imagine CleverBot in Minecraft.
EVERYONE SPAM-TWEET NOTCH ABOUT THIS!!!!!
please please pretty please do not do that it's pretty annoying!
#DINNERBONE ADD THIS NOW!
Useful for code maps, although book and quills and signs work too.
It would be good that the text imput can generate a redstone output and not only work for commands, this would give more possibilities.
Support.
Yep, /testfor's whole purpose is the data tags.
https://twitter.com/SeargeDP/status/432282134305181696
for Case Sensitive
for Non-sensitive
p.s. Includes the " "
I agree, that would probably be the best solution.
Added a similar idea. Append _case to text, text_begin, text_word, ect. to make it case sensitive.
Also made everything in one check to remove extra commands that require the first