How do i send a message as the player to the server

Started by Charwie on

Topic category: Help with modding (Java Edition)

Last seen on 01:42, 9. May 2023
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i send a message as the player to the server

So, i want to have it so when a play does something i.e clicks a button, they send a message in the chat

Last seen on 01:42, 9. May 2023
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ayo really need help with…
Sun, 02/19/2023 - 23:33

ayo really need help with this, would be great if anyone could help

Last seen on 19:36, 28. Mar 2024
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just use the "Execute…
Mon, 02/20/2023 - 04:09

Just use the "Execute command / in the name of event/target entity" and in the green box, type "say" then whatever you want after that.

Last seen on 00:55, 5. Oct 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You don't need mods for this…
Mon, 02/20/2023 - 04:13

You don't need mods for this. You can (pretty much) achieve this with a command block with a button attached.

/execute as @s run say [your message]

The way to execute this via mods is basically the same; for event to be triggered you either need to add a block that runs this command when clicked or plug a similar command into a command block with a button attached.

Last seen on 01:42, 9. May 2023
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
alright the "say" thing…
Sat, 03/04/2023 - 06:12

alright the "say" thing worked, however this requires access to commands on a server / op, is there a way to pull off the same thing without the use of the say command? same results just want it to show that the player sent that message

Last seen on 00:55, 5. Oct 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you have static messages…
Tue, 03/28/2023 - 16:21

If you have static messages you want sent, you could make blocks for each and have them send message to chat when activated by redstone or clicked on (just be sure to make a way for them to stop after the first send, nbt is your friend). If you want editable messages, recreate the /say command without the permission level.

What's your goal anyhow?