-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convention drink tags #1853
Comments
Ominous bottle is water??? I wouldn’t think of potions as water either. Just the water bottle and awkward potion as water-like |
Yeah, I'm not 100% sure about that one, to be honest. It just feels like it should go somewhere, and it seems like a potion. However, it appears like it was deliberately excluded from the potions tag because it doesn't use the potion contents component. Perhaps this is a decision that could be separately revisited? To me, the ominous bottle is just a special potion that illagers brewed for the bad omen effect, and the only thing that differentiates it gameplay-wise from other potions is just that it has a different texture. Also, all potions, including the water bottle, awkward, mundane, and thick potions, are technically assigned to the same |
Just spitballing, would As for potion, maybe |
Yes, I think a magic drink tag could work. Perhaps the Ominous Bottle can go in just the magic tag, and Potion can go in both the magic and the water tags. As for the beneficial/harmful/neutral categories, of course one can always just use the Java methods provided by the game for this. The problem with including them as item tags is that the potion contents component cannot be read by a tag so the |
Also perhaps there could be some tags to differentiate Iced/Hot Tea, Coffee, and Chocolate. This would be very useful for my specific use case but I fear it may be too many tags for similar things. |
Oh and one more thing: the base drink tags could be a good idea. I already propose using |
What about soup? Is soup a drink? What about slime? My mod adds slime bottles that you can drink, which are arguably protein, so perhaps fall into a similar category as soup.. But they provide effects that might make it closer to magic. I think for a lot of this its more important to decide on conventions and document them than having the conventions all exist in the |
Also worth asking, what about sizes of drinks? Potions are in bottles, but I also have buckets of potions which have 4x as much potion. Milk bottles are also fairly common, as are different amounts of caffeination. If your goal is applying effects based on things drunk, you would probably be better off with a data map that allows mods to set numeric values for their drinks than a simple boolean tagging. You should also look into the mod Diet, which applies food groups to many mods. Author uses his own system that while tag based to start, supports an API for NBT based items along with non-item nutrition sources. He does have the advantage of being able to base his numbers off food properties compared to your goal, but it might still be worth considering as I don't think tags alone will be sufficient for your mod idea (assuming they end up being sufficient in the first place) |
No I don't think soup is a drink - mainly because it provides nutrition through a food component. Also, soups already do have a tag in the food subtags. As mentioned in the issue, I think what differentiates drinks from non-drinks is that drinks use the drink animation and do not generally have a food component. The Minecraft wiki has a page on drinks with a useful definition for drinks:
https://minecraft.wiki/w/Drinks Buckets are also weird since only one in vanilla - milk - is actually drinkable. But I agree, perhaps it is better simply to document how drinks should be tagged (perhaps with a few vanilla-based examples), rather than exhaustively list a bunch of empty drink tags. Also for your comment about Diet, I had heard of it before however it has unfortunately not updated to 1.21.1 (which is the version I'm targeting for Thirstful). This system will also be component based, where the components are assigned based on tags. I'm not so sure whats available here on NeoForge yet but there are mods available on Fabric to modify the components of items from datapacks - so if players do want more fine grained control, they will be able to use that. However if/when Diet does update I will make sure to support it. |
Here is a revised list of tags based on this discussion for consideration. This one is based more on providing examples for standardization rather than listing all drinks. The Javadoc of the tag keys could also be a good place to formally describe these standards. However, I know that I myself don't always look at the javadoc since I don't actually use datagen at all - I usually just look at the rendered tags (though perhaps that is not a good practice on my part haha).
The follow tags demonstrate how to differentiate subtypes of drinks using juices that have a vanilla ingredient
I also propose adding drink-containing tags, similar to the
There may be a better way to differentiate buckets and bottled drinks. My solution is based on checking combinations like I'd be happy to make a PR for this both here and in Fabric API, but I know @TelepathicGrunt has their whole system for syncing tags, is there any preference there? |
Copied from Fabric API issue: FabricMC/fabric#4378
This is a request to add new conventional item tags for drinks. There are a couple tags already for this, namely
#c:buckets/milk
,#c:potions
, and#c:potions/bottle
. However, many mods like Farmer's Delight (and its many add-ons), Let's Do (a whole series of mods, many of which add drinks), Brewery, and Dehydration (just to name a few) also add drinks of their own that often do not fall under vanilla categories. I would like Fabric API to add a newdrinks
subfolder of tags with greater depth for drinks, similar to thefoods
tags, though most of these tags would be empty.Here are some of the tags I would like to see, but I would like to get input on what further tags could be added (since there are probably a few I am missing here):
#c:drinks
for all drinks (similar to#c:foods
)#c:drinks/water
for drinks that are mostly water - including potions and ominous bottles (potentially).#c:drinks/milk
for milk#c:drinks/coffee
for coffee#c:drinks/caffeinated
for drinks that provide caffeine, including coffee and energy drinks#c:drinks/tea
for tea#c:drinks/hot_chocolate
for hot chocolate/hot cocoa#c:drinks/smoothie
for milk shakes and smoothies#c:drinks/juice
for all juices#c:drinks/soda
for all sodasI'd also propose adding tags for alcoholic drinks. However, this may be difficult to add given Minecraft's age rating/usage policy. Regardless, there are many mods out there for brewing and alcoholic drinks, so I still think this would be a worthwhile inclusion.
#c:drinks/alcohol
for all alcoholic drinks#c:drinks/alcohol/wine
for all wines, including mead#c:drinks/alcohol/beer
for all beers and ales#c:drinks/alcohol/cider
for all ciders#c:drinks/alcohol/cocktail
for all cocktails#c:drinks/alcohol/spirit
for all spirits like rum, tequila, and vodka.My Personal Use Case
I am working on a thirst mod addon for my temperature mods Frostiful and Scorchful (https://github.com/TheDeathlyCow/thirstful/). This mod will focus on adding a lot of effects to these sorts of drinks. For example, quenching thirst (from water, milk, juice, and soda), warming and cooling (coffee, tea, hot cocoa, smoothies), diuretics (caffeine, alcohol), and vasodilation (a faux warming effect caused by drinking alcohol). I would like this thirst mod to be able to work with as many food and drink mods out of the box as possible, without requiring players/mod pack authors to have to manually configure large amounts of tags. My suggestions for tags are mostly based on my ideas for this particular mod, but I have tried to make it as widely applicable as possible. Still, I am very open to further suggestions.
Other Considerations
food
component).The text was updated successfully, but these errors were encountered: