Brewery

Brewery

101k Downloads

Feature Request: Adding a "minimum age" for a drink recipe to even be drinkable

Dracnoian opened this issue ยท 1 comments

commented

Hey there!

To say I am absolutely in love with this plugin is truly doing it an understatement. I adore this plugin for the servers I play on and the servers I am a developer/admin on. I love this plugin because of how flexible it is and how much I can do with it and the drinks. My own Brewery config for the server I mainly work on is over 10,000 lines and still growing quickly, because I love adding drinks, both mundane and fun/creative. But recently I ran into a bit of a wall on one of my drink ideas, that being aging.

I was wondering if it might be possible for a "minimum age" config option to be set. Wherein if you put it at, say, 6, then you'd have to wait 6 days for to age before it even becomes drinkable. I ask this because I wanted to add a few drinks that would need this in order to meet their full potential. Outside of permission locking recipes (which I know is already a suggestion), I can't think of any better improvement to add to this awesome plugin.

Thank you

commented

Hi, i'm glad you enjoy the Plugin. I hope it has given a lot of fun over the years.
this should be quite easy to add, but i think it could be a bit confusing, if drinks can not even be drunken at all before years of aging?
Another possibility would be to restrict the recipe to a minimum age, where before it would just keep being just the Cauldron stuff. To me this also sounds like it has the potential to be very confusing, but if you would like to try to add this (for your own server for example) you could have a look at the getAgeRecipe() in BIngredients. Adding bestRecipe.minimumAge > time and then adding this minimumAge property to the Recipe should to the trick.