• 注册
  • MOD模组 MOD模组 关注:103 内容:17653

    世界启动命令与全局游戏规则(World Start Commands and Global Gamerules)

  • 查看作者
  • 打赏作者
  • 当前位置: SodaMC > MOD模组 > 正文
  • 潮涌核心
    支持者

    世界启动命令与全局游戏规则(World Start Commands and Global Gamerules)


    这款模组允许在创建世界时运行命令,支持设置适用于所有世界的全局游戏规则,并兼容任何其他命令。

    这款模组最初设计用于设置全局游戏规则,这些规则将应用于每个世界,但它也支持运行任何其他命令。

    配置与使用

    首次启动游戏时,模组会在配置文件夹中创建一个名为 WSCommands.json 的文件,其格式如下:

    {
      "Repeat": false,
      "DedicatedMode": false,
      "1": "[命令1]",
      "2": "[命令2]",
      "3": "[命令3]"
    }已复制!

    模组会在每次加载新世界时按顺序运行这些命令。

    重要提示:

    • 不要跳过任何数字。
    • 不要忘记逗号。
    • 命令中不包含 /

    示例配置

    {
      "Repeat": false,
      "DedicatedMode": false,
      "1": "effect give @a minecraft:resistance",
      "2": "gamerule keepInventory true",
      "3": "gamerule doInsomnia false",
      "4": "give @r minecraft:diamond"
    }已复制!

    此配置将:

    1. 给予所有玩家抗性效果。
    2. keepInventory 游戏规则设为 true
    3. doInsomnia 游戏规则设为 false
    4. 给予世界中随机玩家一颗钻石。

    配置选项说明

    • Repeat:如果设为 true,命令将在每次加载世界时运行(如果 DedicatedMode 设为 true,则每次玩家加入世界时运行)。
    • DedicatedMode:如果设为 true,命令将为每个首次加入世界的玩家运行。

    命令与故障排除

    游戏内命令

    • /wsc [目标] forcerun:直接运行配置中的命令。
    • /wsc [目标] reset:下次加载当前世界时再次运行命令。
    • /wsc null:一个不执行任何操作的命令。

    常见问题

    • 命令在创建世界时不运行? 尝试执行 /wsc forcerun(需要 OP 权限)。如果显示红色错误消息,可能是配置中遗漏了逗号(除最后一行外,所有行都应有逗号)。
    • 命令运行但游戏规则未设置? Minecraft 对游戏规则的大小写非常敏感。例如,gamerule keepinventorygamerule Keepinventory 不会生效,正确的写法是 gamerule keepInventory
    • 从命令方块复制到配置文件时需注意: 必须转义 JSON 格式中使用的特殊字符(例如, 变为 " 变为 ")。可以使用在线工具(如 JSON 转义工具)来简化此过程。

    其他信息

    模组还会在配置文件夹中生成一个名为 WSCommands.toml 的文件,其中包含最重要的配置信息。

    截图:

    版本&下载

    World Start Commands and Global Gamerules 2.0.0

    2.0.0 · Release版本: 2.0.0支持游戏: 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11类型: NeoForgeRelease下载次数: 10,553

    World Start Commands and Global Gamerules 2.0.0

    2.0.0 · Release版本: 2.0.0支持游戏: 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1类型: Forge NeoForgeRelease下载次数: 39,187

    World Start Commands and Global Gamerules 1.0.7

    1.0.7 · Release版本: 1.0.7支持游戏: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4类型: NeoForgeRelease下载次数: 461

    World Start Commands and Global Gamerules 1.0.7

    1.0.7 · Release版本: 1.0.7支持游戏: 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1类型: Forge NeoForgeRelease下载次数: 613

    World Start Commands and Global Gamerules 1.0.6

    1.0.6 · Release版本: 1.0.6支持游戏: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4类型: NeoForgeRelease下载次数: 48

    World Start Commands and Global Gamerules 1.0.6

    1.0.6 · Release版本: 1.0.6支持游戏: 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1类型: Forge NeoForgeRelease下载次数: 62

    World Start Commands and Global Gamerules 1.0.5

    1.0.5 · Release版本: 1.0.5支持游戏: 1.21.1类型: NeoForgeRelease下载次数: 145

    World Start Commands and Global Gamerules 1.0.5

    1.0.5 · Release版本: 1.0.5支持游戏: 1.20.6类型: NeoForgeRelease下载次数: 38

    World Start Commands and Global Gamerules 1.0.5

    1.0.5 · Release版本: 1.0.5支持游戏: 1.20.1类型: Forge NeoForgeRelease下载次数: 500

  • 收录

  • 请登录之后再进行评论

    登录
  • Soda任务 图片
  • 偏好设置
  • 主题
  • 帖子间隔 侧栏位置: