illusivesoulworks / culinaryconstruct

Minecraft Mod: Make custom sandwiches out of your favorite food items! And maybe your not so favorite. Anything's possible!
https://www.curseforge.com/minecraft/mc-mods/culinary-construct
Other
14 stars 11 forks source link

Compat w/ Actually Additions Jams #32

Closed WenXin20 closed 5 years ago

WenXin20 commented 5 years ago

Actually Additions has several Jams that provide potion effects when eaten, but when placed in a sandwich, the potion effects are not applied when the sandwich is eaten. Is compat possible?

TheIllusiveC4 commented 5 years ago

Unfortunately, compatibility isn't really feasible from my end. This is because the Jams call Item#onItemUseFinish instead of ItemFood#onFoodEaten to apply the potion effects. The latter is what vanilla uses for food potion effects so that's what I use, and trying to call Item#onItemUseFinish instead from my end could cause unwanted side effects.