此模组是 Reskillable 的附加组件,允许你轻松添加新技能。
需要注意的是,目前无法在这些技能中添加新的特性(traits),但可以将这些技能用作前置要求。
此模组有一个配置目录,配置文件 JSON 文件和所有图标图片必须放置在此目录中。
JSON 文件用于列出并定义要添加的多个新技能,然后你可以将图标图片放入该目录供新技能使用。
首次生成时,JSON 文件会包含一个示例:
[
{
"name": "example",
"localName": "Example",
"background": "stone"
}
]
注意:此示例不会作为新技能添加。可以安全地将其保留在那里以供参考。具体来说,任何名为 "example" 的技能都不会被添加。
所有技能都必须采用上述格式,且三个属性均需填写。以下是每个属性的说明及其作用:
- name
这基本上是该技能的“注册名”。图标文件的名称必须与此名称相同。
- localName
这是你在游戏中看到的名称——它会被注入到语言翻译映射表中。
- background
这应该是你想用作技能背景的方块注册路径名称。
所有图标文件必须为 PNG 格式,尺寸为 64x64 像素。顶部 64x16 像素的区域用于放置你的 4 个技能阶段图标。你可以参考此示例图标。
确保在向 Reskillable 配置文件添加新的技能锁定时,如果你想使用此模组添加的技能,则必须将其引用为 "extraskills:<skillName>"。例如,如果我有一个名为 "tech" 的技能,那么技能锁必须使用 "extraskills:tech"。
请将任何问题或建议通过顶部的链接发布到我的 GitHub 上。
This mod is an addon for Reskillable and allows you to easily add new skills.
It's worth noting that at this time there is no way to add new traits within these skills, but the skills can then used for requirements.
There is a config directory for this mod where the config JSON file and all icon images must be located.
The JSON file is where you can list and define multiple new skills to be added, and then you can put icon images into the directory for the new skills to use.
The JSON file will generate the first time with an example:
[
{
"name": "example",
"localName": "Example",
"background": "stone"
}
]
Note: This example will not be added as a new skill. It is safe to leave it there for your reference. Specifically, any skill with the name "example" will not be added.
All skills must be in the above format with all three properties populated. Here's what each are and what they do:
- name
This is basically the "registry name" of the skill. The icon file must be named the same as this name.
- localName
This will be what you see in-game - it is injected into the language translation map.
- background
This should be the registry path name of a block which you would like to use as the background for the skill.
All icon files must be in a PNG format, and 64x64 pixels. The top row of 64x16 pixels are where your 4 skill stage icons will be. You can use this example icon as a guide.
Make sure that when you add new skill locks to the Reskillable config, if you want to use a skill added by this mod you must reference it as "extraskills:<skillName>". For example, if I have a skill called "tech", then the skill lock must use "extraskills:tech".
Please post any issues or suggestions to my GitHub using the link at the top.
评论 0
登录后参与评分
还没有评论,来抢沙发吧