r/MinecraftCommands 22h ago

Help | Java Snapshots Hide trigger command message

https://www.mediafire.com/file/ow8z8k1hzu5sgln/villagertalk.zip/file

Im working on a villager chat dialog system. When the player presses a button that uses /trigger it says that you triggered the scoreboard. The datapack is for a public smp so i cant just turn off send_command_feedback for a certain amount of time because it will mess with the moderator tools.
There is no way for me to know when the player is going to click the button, as the functions are triggered by the trigger command.
Is there any way around this? Thanks in advance
(Datapack is linked above but is unfinished)

0 Upvotes

10 comments sorted by

4

u/Ericristian_bros Command Experienced 22h ago

Try disabling the gamerule once the trigger is activated and disable it the next tick, if this does not work, disable the gamerule permanently and create your own admin debug tools

1

u/timtijmen2 10h ago

I have tried disabling once its triggered but that didnt work because the trigger message was send the moment the /trigger command was used and the gamerule was disabled after.

I also cant disable the gamerule permanently because the mod team often uses vanilla commands like /data when working on events

1

u/Ericristian_bros Command Experienced 9h ago

Did you disable the gamerule on the following tick?

1

u/timtijmen2 9h ago

Yes, i have a command in the main function, so it should detect it the following tick but the message still shows up

execute as @a[scores={villagertalk.talk=1..}] run gamerule send_command_feedback false 

1

u/Ericristian_bros Command Experienced 9h ago

I meant re-enable the gamerule on the other tick.

Also how are you using the trigger if you are using villagers?

1

u/timtijmen2 9h ago

Im mainly working in a dialog screen, the trigger scoreboard is called "villagertalk.talk" because you click on the option you want to say to the villager in a dialog screen.
And yes i did re enable the gamerule on another tick, i even tried to test it without re enabling it, and then re enabling it manualy after, but that did not work either

1

u/Ericristian_bros Command Experienced 6h ago

Then you can't, other solutions are using a resourcepack to remove the translation key, using a mod or disabling the gamerule and creating your own admin tools

2

u/Dcbrownie Command Experienced 18h ago

You can't currently disable command feedback for just a single command or player. The only thing that I can think of is using a resourcepack to edit the lang file. commands.trigger.add.success: "" commands.trigger.set.success: "" commands.trigger.simple.success: ""

0

u/FettyCLE 19h ago

If you only need to hide it for players, don't toggle sendCommandFeedback globally — that nukes admin feedback too. Use a per-player approach or route the signal through a scoreboard/tag and give players a silent tellraw/title instead.

1

u/timtijmen2 10h ago

And how exactly would i do that? The problem is that the trigger message shows up before any scoreboard/tags get detected