有时,作为整合包作者,甚至作为玩家,你只是不同意默认设置。这就是我们存在的原因。
Tinkers' Modifiers 允许你更改 Tinkers' Construct (TiC) 使用的修饰符,并允许你完全省略它们、修改现有修饰符或添加新的修饰符!
使用方法
Tinkers' Modifiers 的设置方式使得你可以在任何时间点配置修饰符,然后只需通过命令重新加载它们即可。这一步也在服务器启动或单人游戏世界加载时完成。该模组会生成几个文件:
- Tinkers' Modifiers.cfg - 原始语法文件。已过时,不应使用。仅保留用于向后兼容。
- Tinkers' Modifers.json - 当前配置文件。使用 JSON,你可以配置游戏中使用的修饰符。
- Modifiers - 此目录包含所有检测到的 Tinkers' Construct 修饰符文件。它包含类名以及用于初始化这些修饰符的构造函数。
语法
首先,具备相当好的 JSON 使用知识几乎是必需的。之后,事情变得清晰一些,特别是内置文档的帮助下。
- clear - clear 标签只是一个字符串数组。每个字符串应该是类名,这将清除所有使用该类的修饰符,或者使用星号来清除所有修饰符
- addModifiers - 这是一个字典(或映射,或者你想叫它什么都行)的数组。每个映射需要 'class' 字段,这是一个指示用于修饰符的类的字符串。然后,从 arg0 开始,为每个参数增加 arg 后的数字。此外,你还可以直接创建一个名为 'params' 的数组
- subModifiers - 这与 addModifiers 几乎相同,除了它是移除修饰符而不是添加它。
参数
参数的处理相当简单,大多数只是直截了当的值并在内部处理。因此整数和其他数字类型就是数字本身,布尔值就是它们的值,数组也有类似的处理方式,在 [ 和 ] 之间处理,EnumSets 在这方面也类似。
然而,ItemStacks 像字典/映射一样处理,有两个值 - item 和 damage。damage 是一个可选字段,默认为 0。负值表示通配符值。
帮助和问题
如果你有任何问题,随时给我发消息或留下评论。如果你确实遇到模组的实际 bug,请留在 GitHub 页面上。
整合包
请随意使用它。这个模组的初衷就是为整合包设计的,所以请随意包含它。只需在私信或评论中给我一个链接或其他内容即可。
维基
由于配置的技术性质,我已经为该模组创建了一个基本维基。维基可以在这里找到:
附加说明
当使用 Iguana Tweaks 时,你需要 iguanaman.iguanatweakstconstruct.replacing.ModPartReplacement 来进行部件替换。在原版 Tinkers' 中,tconstruct.modifiers.tools.ModToolRepair 负责工具的修复
Sometimes, as a modpack author, or even as a user, you just don't agree with the defaults. This is why we're here.
Tinkers' Modifiers allows you to change what modifiers are used by Tinkers' Construct (TiC), and allows you to omit them completely, modify existing modifiers, or add new ones!
How to use it
Tinkers' Modifiers is setup in such a way that you can configure the modifiers at any point in time and then simply reload them with a command. This step is also done when the server is started, or a world is loading in single player. The mod generates a few files:
- Tinkers' Modifiers.cfg - The original syntax file. Obsolete, and shouldn't be used. Kept purely for backwards compatibility.
- Tinkers' Modifers.json - The current configuration file. Using JSON, you're able to configure the modifiers used in the game.
- Modifiers - This directory contains all detected Modifier files for Tinkers' Construct. It contains the class name, and also the constructor used to initialise those modifiers.
Syntax
First off, having a decent knowledge of how to use JSON is pretty much required. After that, though, things are a bit clearer, especially with the documentation built in.
- clear - The clear tag is simply an array of strings. Each string should be a class name, which will clear all modifiers using that class, or an asterisk to clear all modifiers
- addModifiers - This is an array of dictionaries (Or maps, or whatever you want to call them). Each map requires the field 'class', which is a string indicating the class to use for the modifier. Then, starting at arg0, increase the number after arg for every parameter. In addition, you can just make an array called 'params'
- subModifiers - This is almost identical to addModifiers, except it removes the modifier rather than adding it.
Parameters
Parameters are handled fairly simply, with most of them being just straight values and handled internally. So integers and other number types are just the number, booleans are just their values, and a similar thing with arrays, being handled between [ and ], EnumSets work similarly in this regard.
ItemStacks, however, are handled like a dictionary/map, with two values - item and damage. Damage is an optional field, and defaults to 0. A negative value indicates a wildcard value.
Assistance and Issues
If you have any problems, feel free to send me a message or leave a comment. If you have an actual bug with the mod, then leave it on the GitHub page please.
ModPacks
Go wild with it, please. The original purpose of this was for modpacks, so feel free to include it. Just drop me a link/whatever in a PM or in the comments.
Wiki
I've gone ahead and created a basic wiki for the mod, due to the technical nature of the configuration. The wiki can be found here:
Additional Notes
When using Iguana Tweaks, you'll need iguanaman.iguanatweakstconstruct.replacing.ModPartReplacement for part replacement. In Vanilla Tinkers', tconstruct.modifiers.tools.ModToolRepair handles the repairing of tools
评论 0
登录后参与评分
还没有评论,来抢沙发吧