Jump to content

Is it possible to extend functionality of a client mod?


Recommended Posts

I wish to add some extra info to Craft Pot's FoodRecipePopup widget.

I have already added Craft Pot as a dependency to my mod.

Has any mod done something like this in the past?

 

 

I am interested in adding a crockpot efficiency calculations to extend the normal Craft Pot mod's FoodRecipePopup

Basically, how much hunger the ingredients have, compared to how much hunger the end dish has.

Edited by loopuleasa
Link to comment
Share on other sites

In my opinion, you should wait until that mod is loaded. From source code comment I see mod dependency doesn't work for client mods.

If you detected Craft Pot is enabled, then AddClassPostInit should work. If it fails, at least you can hook the containerwidget to access Craft Pot's widget later.

There is already a mod:

Snipaste_2022-10-11_18-13-41.thumb.png.5cb92d026b4a97d8f92fa5a0fd2527c8.png

Edited by Rickzzs
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...