Jump to content

Julian Texo

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Julian Texo's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. 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.
  2. 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(); } } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.