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.



