UnifiedKeybinds/UnifiedOptions
如果你正在阅读这段文字,说明我特意发布并记录了它。
它有什么作用 ?
将安装了该模组的所有 Minecraft 实例中的 options.txt 和按键绑定统一到一个文件中,供所有版本共用。
简单来说,图示如下
未安装此模组时

安装此模组后

如何使用 ??
模组开箱即用。
安装模组后,它会将大多数 options.txt 中的选项移动到主目录下的 universal.txt 文件中:
- Windows 用户:
%userprofile%/MinecraftOptions - Linux 用户(以及我认为的 macOS,但我从未使用过):
~/MinecraftOptions
默认选项?YOSBR?? ?
模组还具有类似 YOSBR 和默认选项的功能,但它不是从整合包目录内的文件夹中复制配置,而是从 MinecraftOptions/<version>/extras 中复制。例如,你可以利用此功能自动将你的 JourneyMap 配置复制到所有整合包中,使地图外观保持一致,或者禁用 Immersive Engineering 杂乱的标签提示。
配置 ???
模组开箱即用,但你可以配置同步哪些选项、更改选项存储位置以及完全禁用模组。
配置文件位于 MinecraftOptions/config.toml。其中解释了每个选项的作用。
如果你想重置配置,只需删除 config.toml,模组便会生成一个新的。
默认情况下,以下选项 不会 被同步:
- tutorialStep
- 本模组禁用了教程。
- overrideWidth
- overrideHeight
- resourcePacks
- incompatibleResourcePacks
- renderDistance
- simulationDistance
- fullscreen
- fullscreenResolution
你可以向黑名单中添加或删除选项(或按键绑定)。被列入黑名单的选项将存储在原版 options.txt 中。
你可以通过在 synchronization 下更改 directory 来更改读取 universal.txt 和 extras 的位置。config.toml 文件不可移动。
1.12 版本支持
如果你打开一个 1.12 的 options.txt,你会看到你的控制设置以数字格式显示,如下所示:
key_key.jump:57
key_key.sneak:42
key_key.sprint:16
key_key.drop:211
key_key.inventory:20
key_key.chat:28
key_key.playerlist:0
而如果你打开一个 1.16 的 options.txt,你会看到你的控制设置以命名键格式显示,如下所示:
key_key.jump:key.keyboard.space
key_key.sneak:key.keyboard.left.shift
key_key.sprint:key.keyboard.left.control
key_key.drop:key.keyboard.q
key_key.inventory:key.keyboard.e
key_key.chat:key.keyboard.t
key_key.playerlist:key.keyboard.tab
此模组的 1.12 版本会自动将任何数值转换为现代的命名键。请注意,1.16 及更高版本不支持此功能,因此如果你想转换 1.12 的 options.txt,请使用该模组的 1.12 版本加载它。
在整合包中使用?
可以
用于开发者环境的 Maven 包
将此添加到你的仓库中
repositories {
maven { url "https://codeberg.org/api/packages/PORTB/maven" }
}
并将以下内容添加到你的依赖项中
dependencies {
//示例:portb:unifiedoptions:1.19.4-1.1
runtimeOnly fg.deobf("portb:unifiedoptions:<MC VERSION>-<MOD VERSION>")
}
版本列表:
UnifiedKeybinds/UnifiedOptions
If you're reading this, I bothered to publish it (and document it)
What does it do ?
Unifies options.txt and keybinds for all minecraft instances with the
mod installed into a single file that is used by all versions.
Put simply, in a diagram
Without the mod installed

With the mod installed

How to use it ??
The mod should function out of the box.
When the mod is installed, it will move most options.txt options into
universal.txt which can be found in your home directory:
- Windows users:
%userprofile%/MinecraftOptions - Linux users (and I assume macos, never used it):
~/MinecraftOptions
Default options? YOSBR?? ?
The mod also has a feature kinda like YOSBR and default options, but
instead of copying configs from a folder within the modpack directory,
it copies from MinecraftOptions/<version>/extras. You could use this,
for example to automatically copy your journeymap config into all your
modpacks so that your map always looks the same, or disable immersive
engineering's cluttery tag tooltips.
Configuring it ???
The mod should function out of the box, but you can configure what options are synchronized, move where options are stored and completely disable the mod.
The config file is found at MinecraftOptions/config.toml. It explains
what each option does.
If you want to reset your config, just delete config.toml and the
mod will generate a new one.
By default, the following options are not synchronized:
- tutorialStep
- This mod disables the tutorial.
- overrideWidth
- overrideHeight
- resourcePacks
- incompatibleResourcePacks
- renderDistance
- simulationDistance
- fullscreen
- fullscreenResolution
You can add or remove options (or keybinds) to/from the blacklist.
Blacklisted options will be stored in the vanilla options.txt.
You can change where universal.txt and extras are read from by
changing directory, under synchronization. config.toml cannot be
moved.
1.12
If you open a 1.12 options.txt, you will see your controls formatted with numbers, like this:
key_key.jump:57
key_key.sneak:42
key_key.sprint:16
key_key.drop:211
key_key.inventory:20
key_key.chat:28
key_key.playerlist:0
And if you open a 1.16 options.txt, you will see your controls formatted with named keys, like this:
key_key.jump:key.keyboard.space
key_key.sneak:key.keyboard.left.shift
key_key.sprint:key.keyboard.left.control
key_key.drop:key.keyboard.q
key_key.inventory:key.keyboard.e
key_key.chat:key.keyboard.t
key_key.playerlist:key.keyboard.tab
The 1.12 version of this mod converts any numerical values into the modern named keys automatically. Note that 1.16 and higher versions do not support this, so if you want to convert a 1.12 options.txt, load it with the 1.12 version of this mod.
Use in modpacks?
yes
Maven packages for use in a developer environment
Add this to your repositories
repositories {
maven { url "https://codeberg.org/api/packages/PORTB/maven" }
}
And add this to your dependencies
dependencies {
//example: portb:unifiedoptions:1.19.4-1.1
runtimeOnly fg.deobf("portb:unifiedoptions:<MC VERSION>-<MOD VERSION>")
}
List of versions:
下载 UnifiedOptions
下载 UnifiedOptions
下载 UnifiedOptions
下载 UnifiedOptions
下载 UnifiedOptions
下载 UnifiedOptions
下载 UnifiedOptions
下载 UnifiedOptions
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧