No RunCommand Confirm

模组

· 作者 MangoFanFan_

移除游戏中的 run_command 确认屏幕。

0 本站下载 0 关注 更新于 1 年前

最新 1.0.2+1.21.9 · 1.21.10 · Fabric

一键开服(送7天)

这是什么

自 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.

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源