HomeJavaModsDisable Click Event Warning
ModsJava

Disable Click Event Warning

by AndrewGaming587 · on Modrinth

Disables the annoying pop-up added in 25w20a when you just want to click a button that runs an operator/invalid command

⬇ Download on Modrinth

This mod's entire purpose is to remove the warning that shows up in 25w20a and newer when you try to click text or a dialog button that has a click event that runs an operator command (or an invalid command or any other command that pops up a warning). It does this by simply changing the click event method to just run the command without checking the command. Also allows /say to be run from a click event, cool little side-effect.

I recommend you install this mod if you use and/or develop a datapack that relies heavily on click events and/or dialogs being able to run operator commands.

For Mod Developers:

If you're wondering why this mod might be causing issues with your mod if it changes click event handling in any way, it's probably because this mod @Overrides the runClickEventCommand method of ClientPlayNetworkHandler.class (yarn mappings)

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more