Posts posted by Julian Texo
-
-
I'm trying to remove Items from creative tabs. But the method setCreativeTab() is no longer present in the Item class.
Is there a new method/new way of doing that?
I have tried this (which gives me an error on startup (UnsupportedOperationException: null)
@SubscribeEvent public static void removeItemsFromCreativeTabs(FMLCommonSetupEvent event){ for (Item item:ForgeRegistries.ITEMS) { if (item.getName(new ItemStack(item)).getString().equals("Wooden Pickaxe")){ item.getCreativeTabs().clear(); } } }
Removing/Hiding Vanilla Items
in Modder Support
Posted ·
Edited by Julian Texo
As the title suggests I have been trying to find a way to hide Vanilla Items. As far as I understand it the best way to do it would be to remove the recipes and hide the items from all creative tabs.
But older solutions to this don't seem to work in 1.19 - forge.
Any ideas/resources I can take a look at to figure this out?
To elaborate: I am planning on making mining wands and combat wands that will replace pickaxes/shovels and swords. For that I want to make pickaxes no longer craftable.