Add NamedItemComponent and NamedItemListComponent to API
Add Show Item Names option to config, disabled by default
Tested on Fabric 0.15.11, Minecraft 1.20.1
Description
This change adds two new components to the API and an option to enable them for the ItemProvider in wailax plugin.
The NamedItemComponent is used to display a single item, similar to the ItemComponent. I found it useful for Create's Placard (alternative to ItemFrame) and for Copycat material:
The NamedItemListComponent is used to display a list of items, like the contents of a chest or a drawer. I like to use it with Modern Industrialization, where you have a lot of items with similar icons, so it's much easier to distinguish them by their names.
Some screenshots:
If the number of item types is greater than the maxHeight value, "..." is will be displayed to indicate that there are more items in the container. Players may want to adjust this setting, as the default value of 3 will only show 3 items. With maxHeight=10 it looks like this:
Proposed changes
NamedItemComponent
andNamedItemListComponent
to APIShow Item Names
option to config, disabled by defaultTested on Fabric 0.15.11, Minecraft 1.20.1
Description
This change adds two new components to the API and an option to enable them for the
ItemProvider
in wailax plugin.The
NamedItemComponent
is used to display a single item, similar to theItemComponent
. I found it useful for Create's Placard (alternative to ItemFrame) and for Copycat material:The
NamedItemListComponent
is used to display a list of items, like the contents of a chest or a drawer. I like to use it with Modern Industrialization, where you have a lot of items with similar icons, so it's much easier to distinguish them by their names.Some screenshots:
If the number of item types is greater than the
maxHeight
value, "..." is will be displayed to indicate that there are more items in the container. Players may want to adjust this setting, as the default value of 3 will only show 3 items. WithmaxHeight=10
it looks like this: