Adding items
Filters API is an easy-to-use library.
The following codes are just examples. They will throw exceptions on the server. You should ensure that Filters API codes are executed only on the client.
The tab that has filters will display categorized items only, except that you have registered uncategorized filter.
Call Filter.addItems(Item...)
after registering items to add them to the filter.
Fabric
Forge
You should add items to filters after ITEMS.register()
is called.
Congratulations! Now you can find filters when opening the creative mode tab.
See also
Last updated
Was this helpful?