squidlex Posted May 11, 2020 Posted May 11, 2020 I'm looking to add support for other mods, and I want to only register an item if said mod is present. For example only load a custom sword if cooking for blockheads is installed. It might not be good practice to avoid registering an item for all I know, so if there are any other alternatives I'd love to hear them. Thanks for your time! Quote
squidlex Posted May 11, 2020 Author Posted May 11, 2020 (edited) 2 minutes ago, diesieben07 said: You should always register all your registry entries. You can then remove them from the creative menu and disable the recipes using recipe conditions. I see, thank you for your help Is there an easy way to remove them from the creative menu if the mod is not present? Edited May 11, 2020 by squidlex Quote
squidlex Posted May 11, 2020 Author Posted May 11, 2020 3 minutes ago, diesieben07 said: Override either Item#isInGroup or Item#fillItemGroup. Excellent, thanks for all your help! Quote
Recommended Posts
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.