Onion

item survival:vegetable-onion · from game

Stack size64

Nutrition

Satiety100
Food categoryVegetable
Health0

Compare it with every other food on the foods page. Where this comes from →

Game logic (C#)

The C# classes this item's JSON definition hands its behavior to. Files link to vssurvivalmod on GitHub, pinned to the commit the mapping was made from.

RoleName in JSONC# typeSource file
Behavior GroundStorable CollectibleBehaviorGroundStorable CollectibleBehavior/BehaviorGroundStorable.cs

Used in (3)

Filters
RecipeCategoryIngredients → output
pickledvegetable barrel
dye-orange barrel
Yellow dye ×1L + Onion → Orange dye ×1L
dye-yellow barrel
Water ×1L + Onion → Yellow dye ×1L

Dropped by (2)

Filters
SourceKindMechanismChance / Quantity
Growing onions block blockDrop ×3
Mature onions block blockDrop ×12

Found in structures (2)

StructureKind
Tobias cave area storystructure
Village area storystructure

This confirms the schematic(s) contain this code somewhere, not where or how many times -- the per-instance block-entity decoding used for tapestries isn't run for every content type.

Find in schematics

Search every worldgen schematic for this item → Decodes the schematics in your browser to find where it is placed, what chiseled blocks use it, and which chests could hold it (including random placeholders), which the lists above don't cover.