Skip to content
ct

Class

DropEntry

Generated GDScript class reference for ItemVault.DropEntry.

Status
Current
Version
v1.0
Updated
2026-07-31

Represents a single possible drop / loot entry. References an ItemDefinition directly; the world scene comes from the item itself (or a fallback scene_override for decorative drops). The same entry type backs both world-drop tables (RandomDrops) and pickup loot tables (Pickup2D/3D), so the project has a single "drop table" abstraction.

Source: addons/item_vault/drops/drop_entry.gd

Syntax

class DropEntry extends Resource

Members

NameKindSummary
itemPropertyThe item this entry represents. Its world_scene is used for spawning.
quantityPropertyHow many of the item to produce per successful roll.
oddsPropertyChance of this entry firing per roll, stored as a 0.0–1.0 probability. Authored as a percentage via the editor slider, but kept as a float so odds multipliers (e.g. DropsGenerator.odds_multiplier) can apply sub-percent precision that an integer 1–100 range cannot represent.
scene_overridePropertyOptional override scene for decorative / non-item drops. When set, takes precedence over item.world_scene.
resolve_sceneMethod