Just Enough Item Descriptions
JEI 物品/流体描述的简单 JSON 格式
灵感来源于 Vazkii 的一条 推文,提醒我可以写代码了,而且我有一段时间想要一个这样的模组。
这是一个 FORGE 模组。鉴于这个模组非常简单,我可能会在之后考虑 Fabric 版本,但目前仅支持 Forge。
使用方法
在 /config/jeidescs/ 文件夹中创建 JSON 文件。
你可以创建多个文件,它们将按字母顺序加载以确保一致性。
在 entries 标签下创建一个数组 []。
条目格式包含一个 item 或 fluid 标签,用于指定一个或多个物品/流体
对于物品或流体,你可以指定常规 ID 或 #tag ID
你还可以为物品数量或流体量(以 mb 为单位,即 1/1000 桶)指定 amount 标签
然后,指定要添加到给定资源的描述。
text:原始文本的快捷方式,就是这么简单
translate:使用翻译键的快捷方式,允许对描述进行本地化
component:编写一个完全可用的组件,就像用于告示牌或 /tellraw 命令中的那些一样。使用 extra 标签向一行添加多个组件,额外组件将直接添加到包含它们的组件末尾。你也可以编写一个组件数组 [] 作为第一个组件的快捷方式,数组中的其他组件作为其 extra 标签。请注意,JEI 不支持特殊的悬停或点击事件,因此即使可以指定它们也不会产生任何效果。
(1.1.0 新增) 为了快速且紧凑的条目,可以创建一个 items 或 fluids 标签,允许你将一个或多个资源/tag ID(用逗号分隔)作为键和一个有效的组件作为值输入。(例如:"Text", ["A", "B", {"text":"C"}], {"translate": "translation.key.here"})
如需更多帮助,请查看 GitHub 上的 示例配置
欢迎在评论中提出请求,并在 问题追踪器 上报告任何错误!
我是 Kinetic Hosting 的合作伙伴!如果你需要 Minecraft 服务器并希望支持我,请点击下面的图片!
Just Enough Item Descriptions
JEI Item/Fluid descriptions in a simple JSON format
Inspired by a tweet by Vazkii which reminded me I can code and I wanted a mod like this for a while.
This is a FORGE mod. May look into fabric later given how simple this mod is, but forge only for now.
Usage
Create JSON files in the /config/jeidescs/ folder.
You can create multiple files, and they will be loaded in alphabetical order for consistancy.
Make an array[] under the entries tag.
The entry format contains an item or fluid tag specifying one or more item/fluid
For the item or fluid, you can either specify a regular id or a #tag id
You can also specify an amount tag for the item count or fluid amount (in mb, or 1/1000 of a bucket)
Then, you specify the description to add to the given resource.
text: A shortcut for raw text, simple as that
translate: A shortcut for using a translation key, allowing localization of the descriptions
component: Writing a fully functional component, just like the ones used on signs or in /tellraw. Use the extra tag to add multiple components to one line, with the extra components being directly added to the end of the component containing them. You can also write an array[] of components as a shortcut for the first component with all others in the array as its' extra tag. Do note that JEI does not support special hover or click events, so even though they can be specified they will have no effect.
(New in 1.1.0) For quick and compact entries, make an items or fluids tag, allowing you to enter one or more resource/tag ids (seperated with commas) as a key and a valid component as a value. (EX: "Text", ["A", "B", {"text":"C"}], {"translate": "translation.key.here"})
For more help, check out the Sample Config on github
Feel free to request stuff in the comments, and report any bugs on the issue tracker!
I'm a Kinetic Hosting partner! If you need a Minecraft server and want to support me, click the image below!
评论 0
登录后参与评分
还没有评论,来抢沙发吧