User:Veerserif/Sandbox/Food infobox

From Vintage Story Wiki
< User:Veerserif‎ | Sandbox
Revision as of 16:27, 30 August 2023 by Veerserif (talk | contribs) (seeing if i can get lcfirst: working)
Veerserif/Sandbox
No image.png
Stackable

N/A

Edible

N/A

Satiety

N/A

Ingredient

No

Shelf life

, turns into rot

Food-specific infobox, and by "food" I mean "anything edible with or without processing". So as of 1.18.8 that includes honeycomb and cattail roots, but not, I don't know, sticks.

Parameters

Parameter Type Notes
stackable number Required. maximum stack size
edible string Required. Whether or not the item is edible - I suggest the values "Raw", "Cooked (Firepit)", "Cooked (Meal)", "Cooked (Oven)"
satiety number Required. Satiety number
category string Only displays if satiety exists. Satiety category - vegetable, protein, dairy, fruit
ingredient string What the food can be used to make - meals, pies, soup, etc.
FreshTime string Required. Shelf life of the item
TransitionRatio number Optional. Ratio of transition (i.e. a TransitionRatio of 0.5 means "0.5 of the stack of the original item becomes the TransitionOutput after TransitionTime")
TransitionOutput string Optional. Output of transition - defaults to "rot"
TransitionTime string Optional. Time taken, after FreshTime expires, for the item to fully transition into TransitionOutput.