Hiya! I've been trying to bridge together Let's Do Vinery and Brewin n Chewin. I've gotten to a point where I've successfully made fluid with fluid registry and added all the recipes for the various wines, but I'm at the point where I'm trying to get them all to apply Brewin n Chewin's "Tipsy" potion effect.
Currently, using basically the food modifier script from the wiki to add the effect, which kinda of works, but there's a whole lot of jank too. I have tested this on two different instances as well, with different results coming from each:
I've used a few script iterations using .effect in the food builder. these are posing multiple problems
One of the main problems is that tooltips are incorrect, and the parameters set in the script are ignored. Tipsy appears as blue text instead of red, and the time of the effect matches other effects on wines (1:30 jump boost = 1:30 tipsy, even though it is set to 3:00). Applying the effect to items that give no effects still displays incorrectly in the tooltip, as in does not display at all, but does actually apply correctly.
Another problem is that tipsy does not stack the way it does with BnC's in house drinks. @plush spear made and posted a script that kind of does this in 2023, with a couple issues to it as well. Firstly the script increases the amplitude of all potion effects on the player when a custom item is used, which...
a) requires the custom item created in the script to be used to increase the effect, rather than an item that already exists like a Vinery Wine, and
b) causes unexpected problems with effects that don't have higher amplitudes or otherwise have issue with that. ex: i was finding that spawning into a world and testing this while still having Cold Sweat's Grace Protection effect would just hard crash the game lol
I'm pretty new to using KubeJS and do not have the know-how to deconstruct Liopyus old script into something easier for a dumby like me to read and perhaps is more widely applicable, but do feel there must be a way to streamline it, maybe with the foodEaten event or something? And idk bout the tooltips and effect not applying properly with food.effect() but that might sort itself out along the way.
