Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Creators
Details
čæęÆä»ä¹
čŖ Minecraft Java 1.21.6 čµ·ļ¼åØęøøęäøē¹å»č天ę äøēęę¬ę§č”大éØåå½ä»¤ę¶ļ¼é½ä¼éę±é¢å¤ē”®č®¤ć
åÆęēęÆļ¼čæäøęÆäøäøŖåÆéēåč½ęč 设置ļ¼čęÆå¼ŗå¶å¼åÆć
å ę¤ęäŗę¤ęØ”ē»ļ¼éčæäøäøŖ Mixin ę„åę¶éč¦é¢å¤ē”®č®¤ēå½ä»¤ēé¢å¤ē”®č®¤ęµēØļ¼ē“ę„ę§č”ć
Starting from Minecraft Java 1.21.6, when clicking on text in the chat bar to execute most commands in the game, additional confirmation is required.
Unfortunately, this is not an optional feature or setting; it is mandatorily enabled.
Hence, this mod was created. It uses a Mixin to bypass the additional confirmation process for commands that require it, executing them directly.
å¦ä½ä½æēØ
ä½ åÆä»„ēØčæę ·ēē»ęå建äøäøŖåÆē¹å»ēęę¬ē»ä»¶ļ¼
You can create a clickable text component using a structure like this:
{
"text": "Hello?",
"click_event": {
"action": "run_command",
"command": "/tp @s 100 100 100"
}
}
使ēØę令ęå½ę°å°å®åéē»ē©å®¶ļ¼ē¶åē©å®¶åÆä»„ē¹å»Hello?ćåØ 1.21.6 仄åļ¼å½ä»¤/tp @s 100 100 100å°±ä¼ę§č”ļ¼å
¶äø@sęÆē©å®¶čŖå·±ć
Send this to a player using a command or function, and then the player can click Hello?. Prior to version 1.21.6, the command /tp @s 100 100 100 would execute immediately, where @s refers to the player themselves.
ä» 1.21.6 å¼å§ļ¼ęøøęä¼å¼¹åŗé¢å¤ē甮认å±å¹ļ¼ę¾ē¤ŗå°č¦ę§č”ēå½ä»¤/tp @s 100 100 100ļ¼å¹¶č¦ę±ē©å®¶åꬔéę©ę§č”ļ¼ęåę¶ć
Since version 1.21.6, the game pops up an additional confirmation screen showing the command /tp @s 100 100 100 that is about to be executed, and asks the player to either confirm execution or cancel.
ę们éč¦äøē§å ³éčæē§å¼ŗå¶ę§é¢å¤ē”®č®¤ēę¹ę³ļ¼å äøŗęę£åØåäøäøŖę°ę®å ļ¼ččæå½±åå°ęēę°ę®å ęøøē©ä½éŖäŗ(ććøļæ£ć)
We need a way to turn off this mandatory extra confirmation because I am working on a data pack, and this is affecting my experience playing with my data pack (-ļ½”-;)
é½ē© Java ēäŗļ¼ē©å®¶åŗå½ē„éčŖå·±åØå¹²ä»ä¹ć ę仄ļ¼å®č£ ę¤ęØ”ē»ä¹åļ¼ä½ å°±åä¹č§äøå°čæäøŖé¢å¤ē甮认äŗć
**If you're playing the Java Edition, players should know what they are doing.**āā So, after installing this mod, you will no longer see this extra confirmation.



