Onion

item survival:vegetable-onion · from game

Stack size64

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.