NER ItemsAdder 集成
NER ItemsAdder Integration(或 NER_IA_Integration)是一个专为 NeverEnoughRecipes 和 ItemsAdder 制作的 Paper 插件,旨在提供多种功能以修复问题并连接 ItemsAdder 与 NER。
功能
ItemsAdder 虚假配方修复
每当您注册一个以自定义物品为配料的合成配方时,ItemsAdder 会注册两个配方:
- 使用您的自定义物品的实际配方。
- 一个带有
zzzfake_ 前缀命名空间的虚假配方,其中仅包含基础物品作为配料。
ItemsAdder 这样做的具体原因尚不清楚,但很可能是为了绕过配方书忽略配料 NBT 数据的问题,通过监听所选配方并替换物品来实现。
遗憾的是,这些虚假配方也会显示在 NER 中。该插件会在 IA 每次重新加载时从 NER 的注册表中移除这些配方。
命名空间支持
该插件在 NER 中添加了对使用命名空间过滤器(@<namespace>)搜索自定义物品的支持。
所有在 ItemsAdder 中注册的自定义物品都将以其自定义命名空间添加,以便使用。
物品分组
自 1.3.0 版本起,物品可以分组在一起,在 /ner GUI 中仅占用一个槽位(例如,所有床都归类在“床”下)。
该插件支持为 ItemsAdder 物品创建自定义物品组。
您只需在现有的 ItemsAdder 配置文件中添加以下内容,或创建一个新配置文件即可:
info:
namespace: example
ner_item_groups:
group1:
title: "My Item Group"
animate_icon: true
items:
- example:item1
- example:item2
# ...
group1 可以是任意名称,并将与命名空间一起用于创建物品组的 ID。如果未定义命名空间,则将使用从 1 开始的整数代替。
title 设置用于物品组的标题。此处可以使用任何可在物品显示名称中使用的 MiniMessage 格式。
animate_icon 设置是否应循环显示组中的所有物品以展示图标。如果不设置此项,则默认为 true。
items 设置要包含在此组中的物品列表。请注意,仅支持自定义的 ItemsAdder 物品。
注意:
由于 NER 1.3.0 使用 Materials 而非 ItemStacks 来区分物品,因此 NER_IA_Integration 仅在 NER 1.4.0 或更高版本中支持物品分组功能。
此外,折叠状态下的物品组不会显示标题,仅在展开时才会显示。目前尚不清楚这是出于何种原因。
NER ItemsAdder Integration
NER ItemsAdder Integration (or NER_IA_Integration) is a paper-plugin made for NeverEnoughRecipes and ItemsAdder, providing various features to fix issues and connect ItemsAdder and NER.
Features
ItemsAdder Fake Recipe Fix
Whenever you register a Crafting recipe with custom Items as ingredients will ItemsAdder register two recipes:
- The actual recipe using your custom Items.
- A Fake recipe with
zzzfake_ prefixed namespace containing only the base-items as ingredients.
Why ItemsAdder does this isn't clear, but it's most likely to bapass the issue of the Recipe book ignoring NBT data of ingredients, by listening for what recipe was selected and swapping out the items.
These recipes unfortunately also show in NER. This plugin removes these recipes from NER's registry every time IA reloads.
Namespace support
The plugin adds support for using the namespace filter (@<namespace>) in NER for searching custom Items.
Every custom Item registered in ItemsAdder will be added with their custom Namespace to use.
Item Grouping
Since 1.3.0 can Items be grouped together, occupying only one slot in the /ner GUI (i.e. all Beds are grouped together under "Beds").
This plugin adds support for making your own Item Groups for ItemsAdder Items.
All you need to do is add the following to an existing ItemsAdder Config or create a new one:
info:
namespace: example
ner_item_groups:
group1:
title: "My Item Group"
animate_icon: true
items:
- example:item1
- example:item2
# ...
group1 can be any name you want and will be used alongside the namespace to create the ID of the item group. If no namespace is defined, will an integer starting at 1 be used instead.
title sets the title to use for the Item group. Any MiniMessage formatting usable in an Item's display name can be used here.
animate_icon sets whether the item shown for the group should cycle through all Items in the group. Not setting this will default to true.
items sets the List of Items to include in this group. Note that only custom ItemsAdder Items are supported.
NOTES:
NER_IA_Integration only supports Item Grouping in 1.4.0 or newer of NER due to 1.3.0 using Materials instead of ItemStacks to separate items.
Additionally are group titles not shown on the collapsed Item Group. Only when open is it shown. It's unclear why this is the case.
评论 0
登录后参与评分
还没有评论,来抢沙发吧