Re-exportsΒ§
pub use crate::DyeColor;pub use crate::equipment::EquipmentSlotGroup;
ModulesΒ§
- conditions π
- context π
- entries π
- functions π
- registry π
StructsΒ§
- Attribute
Modifier - An attribute modifier for
SetAttributesfunction. - Banner
Pattern - A banner pattern layer.
- Block
Entity Ref - A reference to a block entity for loot context.
- Block
Predicate - Predicate for checking block properties.
- Conditional
Loot Function - A function with optional conditions.
- Copy
Data Operation - Copy data operation for
CopyCustomData. - Damage
Source Info - Damage source information for loot context.
- Damage
Source Predicate - Predicate for checking damage source properties.
- Damage
TagPredicate - A tag check for damage source.
- Entity
Equipment - Entity equipment predicate
- Entity
Equipment Ref - Equipment references for an entity.
- Entity
Flags - Entity flags (
is_on_fire,is_sneaking, etc.) - Entity
Predicate - Predicate for checking entity properties.
- Entity
Ref - A reference to an entity for loot context. This is intentionally opaque - the actual entity type depends on game implementation.
- Entity
RefFlags - Entity flags for predicate checking.
- Firework
Explosion - A firework explosion definition.
- Location
Predicate - Predicate for checking location/block properties.
- Loot
Context - Context for loot table evaluation, containing all relevant game state.
- Loot
Context Ref - Reference to loot context for number provider evaluation. This is a simplified view to avoid circular references.
- Loot
Pool - A pool of loot entries with roll counts.
- Loot
Table - A complete loot table definition.
- Loot
Table Registry - Registry for loot tables.
- Number
Provider Range - A range for number comparisons (used in
ValueCheck,TimeCheck,EntityScores). - Property
Check - A property check for block state conditions.
- Stew
Effect - A stew effect for suspicious stew.
- Weather
State - Weather state for
WeatherCheckcondition.
EnumsΒ§
- Attribute
Operation - Attribute modifier operation type.
- Bonus
Formula - Formula types for
apply_bonusfunction. - Copy
Data Op - Operation type for data copying.
- Copy
Source - Source for copying components.
- Enchanted
Chance - Enchanted chance calculation method.
- Enchantment
Options - Options for selecting enchantments - either a tag reference or explicit list.
- Firework
Shape - Firework explosion shape.
- Instrument
Options - Options for selecting an instrument from a registry tag or explicit list.
- List
Operation - Operation mode for list modifications (lore, book pages).
- Loot
Condition - A condition that must be met for a loot entry or pool to apply.
- Loot
Context Entity - Entity target for loot context lookups.
- Loot
Entry - A loot table entry that can generate items.
- Loot
Function - A function that modifies loot items.
- Loot
Type - The type of loot table, determining when/how itβs used.
- Name
Target - Target for
set_namefunction. - Number
Provider - A number provider that can be constant or random.
- Scoreboard
Target - Target for scoreboard number provider.
- Slot
Range - A range of slots for the Slots entry type.
- Tool
Predicate - Predicate for matching tools.