Skip to main content

Module loot_table

Module loot_table 

Source

Structs§

AttributeModifier
An attribute modifier for SetAttributes function.
BannerPattern
A banner pattern layer.
BlockEntityRef
A reference to a block entity for loot context.
BlockPredicate
Predicate for checking block properties.
ConditionalLootFunction
A function with optional conditions.
CopyDataOperation
Copy data operation for CopyCustomData.
DamageSourceInfo
Damage source information for loot context.
DamageSourcePredicate
Predicate for checking damage source properties.
DamageTagPredicate
A tag check for damage source.
EntityEquipment
Entity equipment predicate
EntityEquipmentRef
Equipment references for an entity.
EntityFlags
Entity flags (is_on_fire, is_sneaking, etc.)
EntityPredicate
Predicate for checking entity properties.
EntityRef
A reference to an entity for loot context. This is intentionally opaque - the actual entity type depends on game implementation.
EntityRefFlags
Entity flags for predicate checking.
FireworkExplosion
A firework explosion definition.
LocationPredicate
Predicate for checking location/block properties.
LootContext
Context for loot table evaluation, containing all relevant game state.
LootContextRef
Reference to loot context for number provider evaluation. This is a simplified view to avoid circular references.
LootPool
A pool of loot entries with roll counts.
LootTable
A complete loot table definition.
LootTableRegistry
Registry for loot tables.
NumberProviderRange
A range for number comparisons (used in ValueCheck, TimeCheck, EntityScores).
PropertyCheck
A property check for block state conditions.
StewEffect
A stew effect for suspicious stew.
WeatherState
Weather state for WeatherCheck condition.

Enums§

AttributeOperation
Attribute modifier operation type.
BonusFormula
Formula types for apply_bonus function.
CopyDataOp
Operation type for data copying.
CopySource
Source for copying components.
DyeColor
Dye/banner color.
EnchantedChance
Enchanted chance calculation method.
EnchantmentOptions
Options for selecting enchantments - either a tag reference or explicit list.
EquipmentSlotGroup
Equipment/attribute slot group for enchantments and attributes.
FireworkShape
Firework explosion shape.
ListOperation
Operation mode for list modifications (lore, book pages).
LootCondition
A condition that must be met for a loot entry or pool to apply.
LootContextEntity
Entity target for loot context lookups.
LootEntry
A loot table entry that can generate items.
LootFunction
A function that modifies loot items.
LootType
The type of loot table, determining when/how it’s used.
NameTarget
Target for set_name function.
NumberProvider
A number provider that can be constant or random.
ScoreboardTarget
Target for scoreboard number provider.
SlotRange
A range of slots for the Slots entry type.
ToolPredicate
Predicate for matching tools.

Type Aliases§

LootTableRef