Modify item groups (creative inventory)
mageowl opened this issue ยท 3 comments
Describe the feature
It would be nice to be able to change or remove items from the creative inventory for modpacks.
Additional info
Often two mods have conflicting features (both add an iron rod), and modpack developers can use KubeJS to remove these from recipes, tags, and JEI, but not from the creative inventory without a mod like MoreCreativeTabs.
This should already be possible using Forge's events via ForgeEvents, but a dedicated JS side event would be nice.
You can add and remove Items from the creative Inventory like so:
StartupEvents.modifyCreativeTab('minecraft:redstone_blocks', event => {
// Adds example item after redstone
event.addAfter('minecraft:redstone', 'kubejs:example_item')
// Removes redstone
event.removeDisplay('minecraft:redstone');
})