Displaying the results of an RNG as a player message, not an announcement

Started by RaptorMajor10 on Wed, 01/06/2021 - 23:09

Topic category: Help with MCreator software

Last seen on 00:56, 24. Feb 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Displaying the results of an RNG as a player message, not an announcement
Wed, 01/06/2021 - 23:09

Hello all! 

I hope this is the right place to post this (I'm brand new to this site, so I wasn't entirely sure..)
I've been working on creating a custom dice rolling mod for a server I help run. The Idea is that a player will be able to enter in a command (Such as /roll 4d20+5) or some variation of it, and have the results be displayed in chat as if said by the player, rather than being announced to the entire server. This way groups of players can get together and use the rolling command to share results with each other, and the chat won't be filled with every player's roll from across the server. 

However, I'm having trouble getting this to work. Using the Execute command with /say doesn't seem to be working. 

I'll attach a picture of the most basic build for the mod, where I'm just trying to get the results display working. 

Any help is appreciated! And keep in mind, I'm a coding novice ^^The most basic set up, just to try and get the result display to work'

Last seen on 00:56, 24. Feb 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Here's the Imgur link since…
Wed, 01/06/2021 - 23:09

Here's the Imgur link since trying to use it in the post didn't work: https://imgur.com/a/RhBSXL8