Posted April 18, 20214 yr Is there any ways to add a item to the ItemGroup depends on a tag? Like something is depends on a mod loaded as the code below: public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MyProject.MOD_ID); public static final RegistryObject<Item> ITEM_A = ITEMS.register("item_a", () -> new Item(new Item.Properties().group(ModList.get().isLoaded("mod_a") ? ItemGroup.MATERIALS : null))); Edited April 19, 20214 yr by JerryLy086
April 19, 20214 yr Author Sorry I don't really understand that... but I found that I need a bool value about a tag is loaded or not but don't really know how to do it...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.