We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

39

A command that executes for a specific chat message

5 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 11
    Registered User commented
    Comment actions Permalink

    I agree, but I think the command is to simple in this form, maybe more like "/execute if entity @a[chat="hello"] so you could do something like "/execute if entity @a[chat="gamemodeCreative",tags=operator] run gamemode creative @s".

  • 3
    Registered User commented
    Comment actions Permalink

    I think is idea very very good for asking quiz and you need to found answer or we can make any secret codes to go creative mode and we can make very nice creations at all

  • 1
    Registered User commented
    Comment actions Permalink

    I think for Bedrock Edition the syntax would better be:

    /execute @a ~ ~ ~ chat “hello” /say You Said Hi!

    to stay consistent with the execute detect command

  • 1
    Registered User commented
    Comment actions Permalink

    Mabye  "/execute if chat"  would make more sense?

    e.g /execute if chat @a Hi run say You said Hi! 

  • 1
    Registered User commented
    Comment actions Permalink

    This is a really good idea and as someone who loves to do stuff with command blocks i am going to work over the concept.
    To go with the logic of the current commands it would make sense for it to look like this:

    /execute as @a[message="Hello"] run tellraw @s {"text":"[Server] You said Hello","color":"gray"}

     

    *This would loop tho due to it receiving the message until it is gone, so we would need a scoreboard to resets it everytime which would look like this:
    /scoreboard objectives add Messages dummy

    *Then we make a repeating command block which checks for a message:
    /execute as @a[message="Hello"] run scoreboard players set @s Messages 1

    *After that we would place a cain command block with the command:
    /execute as @a[message="Hello",scores={Message=1}] run tellraw @s {"text":"[Server] You said Hello","color":"gray"}

    *And above that we would make a cain command block on conditional with the command:
    /execute as @a[message="Hello",scores={Message=1}] run scoreboard players set @s Message 0

     

    I hope that this helped and i would love this to be a feature in the game as it would bring so many possibilitys not only for server, but also for minigames.