Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / LootConditionArgs

Interface: LootConditionArgs โ€‹

Defined in: core/values/schema/vanilla.generated.ts:580

Each vanilla loot condition's arguments, by id.

Properties โ€‹

all_of โ€‹

all_of: object

Defined in: core/values/schema/vanilla.generated.ts:582

minecraft:all_of.

terms โ€‹

readonly terms: readonly Predicate[]

Passes when all of these conditions pass.


any_of โ€‹

any_of: object

Defined in: core/values/schema/vanilla.generated.ts:587

minecraft:any_of.

terms โ€‹

readonly terms: readonly Predicate[]

Passes when any of these conditions pass.


block_state_property โ€‹

block_state_property: object

Defined in: core/values/schema/vanilla.generated.ts:592

minecraft:block_state_property (before 26.3.)

block โ€‹

readonly block: string

properties? โ€‹

readonly optional properties?: unknown


damage_source_properties โ€‹

damage_source_properties: object

Defined in: core/values/schema/vanilla.generated.ts:597

minecraft:damage_source_properties.

predicate โ€‹

readonly predicate: DamageSourceSpec


enchantment_active_check โ€‹

enchantment_active_check: object

Defined in: core/values/schema/vanilla.generated.ts:601

minecraft:enchantment_active_check.

active โ€‹

readonly active: boolean


entity_properties โ€‹

entity_properties: object

Defined in: core/values/schema/vanilla.generated.ts:605

minecraft:entity_properties.

entity โ€‹

readonly entity: EntityTarget

predicate โ€‹

readonly predicate: EntityPredicateSpec


entity_scores โ€‹

entity_scores: object

Defined in: core/values/schema/vanilla.generated.ts:610

minecraft:entity_scores.

entity โ€‹

readonly entity: EntityTarget

scores โ€‹

readonly scores: object

Index Signature โ€‹

[key: string]: IntRange


environment_attribute_check โ€‹

environment_attribute_check: object

Defined in: core/values/schema/vanilla.generated.ts:615

minecraft:environment_attribute_check (26.1+.)

attribute โ€‹

readonly attribute: string

value โ€‹

readonly value: unknown


float_value_check โ€‹

float_value_check: object

Defined in: core/values/schema/vanilla.generated.ts:620

minecraft:float_value_check (26.3+.)

test โ€‹

readonly test: FloatRange

Passes when value is within the test range.

value โ€‹

readonly value: FloatNumberProviderRef


int_value_check โ€‹

int_value_check: object

Defined in: core/values/schema/vanilla.generated.ts:626

minecraft:int_value_check (26.3+.)

test โ€‹

readonly test: IntRange

Passes when value is within the test range.

value โ€‹

readonly value: IntNumberProviderRef


inverted โ€‹

inverted: object

Defined in: core/values/schema/vanilla.generated.ts:632

minecraft:inverted.

term โ€‹

readonly term: Predicate


killed_by_player โ€‹

killed_by_player: object

Defined in: core/values/schema/vanilla.generated.ts:636

minecraft:killed_by_player.

inverse? โ€‹

readonly optional inverse?: boolean


location_check โ€‹

location_check: object

Defined in: core/values/schema/vanilla.generated.ts:640

minecraft:location_check.

offsetX? โ€‹

readonly optional offsetX?: number

offsetY? โ€‹

readonly optional offsetY?: number

offsetZ? โ€‹

readonly optional offsetZ?: number

predicate โ€‹

readonly predicate: LocationSpec


match_block โ€‹

match_block: object

Defined in: core/values/schema/vanilla.generated.ts:647

minecraft:match_block (26.3+.)

blocks? โ€‹

readonly optional blocks?: string | readonly string[]

components? โ€‹

readonly optional components?: DataComponentExactPredicate

Match exact data component values on the block entity. (1.21.5+.)

nbt? โ€‹

readonly optional nbt?: unknown

predicates? โ€‹

readonly optional predicates?: DataComponentPredicate

Test data component values on the block entity. (1.21.5+.)

state? โ€‹

readonly optional state?: BlockPredicateState

tag? โ€‹

readonly optional tag?: string

(before 1.20.5.)


match_tool โ€‹

match_tool: object

Defined in: core/values/schema/vanilla.generated.ts:659

minecraft:match_tool.

predicate โ€‹

readonly predicate: ItemLike


random_chance โ€‹

random_chance: object

Defined in: core/values/schema/vanilla.generated.ts:663

minecraft:random_chance.

chance โ€‹

readonly chance: FloatNumberProviderRef

Accepts a value between 0 & 1 (inclusive).


random_chance_with_enchanted_bonus โ€‹

random_chance_with_enchanted_bonus: object

Defined in: core/values/schema/vanilla.generated.ts:668

minecraft:random_chance_with_enchanted_bonus (1.21+.)

enchantedChance โ€‹

readonly enchantedChance: LevelBasedValueLevelBasedValue

enchantment โ€‹

readonly enchantment: string | Enchantment

unenchantedChance โ€‹

readonly unenchantedChance: number


random_chance_with_looting โ€‹

random_chance_with_looting: object

Defined in: core/values/schema/vanilla.generated.ts:674

minecraft:random_chance_with_looting (before 1.21.)

chance โ€‹

readonly chance: number

lootingMultiplier โ€‹

readonly lootingMultiplier: number

Looting adjustment to the base success rate. Formula is chance + (looting_level * looting_multiplier) .


reference โ€‹

reference: object

Defined in: core/values/schema/vanilla.generated.ts:680

minecraft:reference (before 26.3.)

name โ€‹

readonly name: string

A cyclic reference causes a parsing failure.


table_bonus โ€‹

table_bonus: object

Defined in: core/values/schema/vanilla.generated.ts:685

minecraft:table_bonus.

chances โ€‹

readonly chances: readonly number[]

Probabilities for each enchantment level

enchantment โ€‹

readonly enchantment: string | Enchantment


time_check โ€‹

time_check: object

Defined in: core/values/schema/vanilla.generated.ts:691

minecraft:time_check.

clock โ€‹

readonly clock: string | WorldClock

The world clock to check. (26.1+.)

period? โ€‹

readonly optional period?: number

Game tick supplied to value check gets modulo-divided by this. For example, if set to 24000, value operates on a time period of days.

value โ€‹

readonly value: IntRange

Check the current game tick.


value_check โ€‹

value_check: object

Defined in: core/values/schema/vanilla.generated.ts:700

minecraft:value_check (before 26.3.)

range โ€‹

readonly range: IntRange

Passes when value is within this range.

value โ€‹

readonly value: LegacyNumberProvider

Clamps to an integer.


weather_check โ€‹

weather_check: object

Defined in: core/values/schema/vanilla.generated.ts:707

minecraft:weather_check.

raining? โ€‹

readonly optional raining?: boolean

thundering? โ€‹

readonly optional thundering?: boolean

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.