Skip to main contentModule context
Source - BlockEntityRef
- A reference to a block entity for loot context.
- DamageSourceInfo
- Damage source information for loot context.
- EntityEquipmentRef
- Equipment references for an entity.
- 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.
- 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.
- NumberProviderRange
- A range for number comparisons (used in
ValueCheck, TimeCheck, EntityScores). - WeatherState
- Weather state for
WeatherCheck condition.
- LootContextEntity
- Entity target for loot context lookups.
- LootType
- The type of loot table, determining when/how it’s used.
- NumberProvider
- A number provider that can be constant or random.
- ScoreboardTarget
- Target for scoreboard number provider.
- math_round 🔒
java.lang.Math.round semantics for a float.- uniform_int 🔒
- Vanilla
Mth.nextInt(random, min, max) is inclusive and clamps to min
when min >= max.