Appearance
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 โ
readonlyterms: readonlyPredicate[]
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 โ
readonlyterms: readonlyPredicate[]
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 โ
readonlyblock:string
properties? โ
readonlyoptionalproperties?:unknown
damage_source_properties โ
damage_source_properties:
object
Defined in: core/values/schema/vanilla.generated.ts:597
minecraft:damage_source_properties.
predicate โ
readonlypredicate:DamageSourceSpec
enchantment_active_check โ
enchantment_active_check:
object
Defined in: core/values/schema/vanilla.generated.ts:601
minecraft:enchantment_active_check.
active โ
readonlyactive:boolean
entity_properties โ
entity_properties:
object
Defined in: core/values/schema/vanilla.generated.ts:605
minecraft:entity_properties.
entity โ
readonlyentity:EntityTarget
predicate โ
readonlypredicate:EntityPredicateSpec
entity_scores โ
entity_scores:
object
Defined in: core/values/schema/vanilla.generated.ts:610
minecraft:entity_scores.
entity โ
readonlyentity:EntityTarget
scores โ
readonlyscores: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 โ
readonlyattribute:string
value โ
readonlyvalue:unknown
float_value_check โ
float_value_check:
object
Defined in: core/values/schema/vanilla.generated.ts:620
minecraft:float_value_check (26.3+.)
test โ
readonlytest:FloatRange
Passes when value is within the test range.
value โ
readonlyvalue:FloatNumberProviderRef
int_value_check โ
int_value_check:
object
Defined in: core/values/schema/vanilla.generated.ts:626
minecraft:int_value_check (26.3+.)
test โ
readonlytest:IntRange
Passes when value is within the test range.
value โ
readonlyvalue:IntNumberProviderRef
inverted โ
inverted:
object
Defined in: core/values/schema/vanilla.generated.ts:632
minecraft:inverted.
term โ
readonlyterm:Predicate
killed_by_player โ
killed_by_player:
object
Defined in: core/values/schema/vanilla.generated.ts:636
minecraft:killed_by_player.
inverse? โ
readonlyoptionalinverse?:boolean
location_check โ
location_check:
object
Defined in: core/values/schema/vanilla.generated.ts:640
minecraft:location_check.
offsetX? โ
readonlyoptionaloffsetX?:number
offsetY? โ
readonlyoptionaloffsetY?:number
offsetZ? โ
readonlyoptionaloffsetZ?:number
predicate โ
readonlypredicate:LocationSpec
match_block โ
match_block:
object
Defined in: core/values/schema/vanilla.generated.ts:647
minecraft:match_block (26.3+.)
blocks? โ
readonlyoptionalblocks?:string| readonlystring[]
components? โ
readonlyoptionalcomponents?:DataComponentExactPredicate
Match exact data component values on the block entity. (1.21.5+.)
nbt? โ
readonlyoptionalnbt?:unknown
predicates? โ
readonlyoptionalpredicates?:DataComponentPredicate
Test data component values on the block entity. (1.21.5+.)
state? โ
readonlyoptionalstate?:BlockPredicateState
tag? โ
readonlyoptionaltag?:string
(before 1.20.5.)
match_tool โ
match_tool:
object
Defined in: core/values/schema/vanilla.generated.ts:659
minecraft:match_tool.
predicate โ
readonlypredicate:ItemLike
random_chance โ
random_chance:
object
Defined in: core/values/schema/vanilla.generated.ts:663
minecraft:random_chance.
chance โ
readonlychance: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 โ
readonlyenchantedChance:LevelBasedValueLevelBasedValue
enchantment โ
readonlyenchantment:string|Enchantment
unenchantedChance โ
readonlyunenchantedChance: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 โ
readonlychance:number
lootingMultiplier โ
readonlylootingMultiplier: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 โ
readonlyname: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 โ
readonlychances: readonlynumber[]
Probabilities for each enchantment level
enchantment โ
readonlyenchantment:string|Enchantment
time_check โ
time_check:
object
Defined in: core/values/schema/vanilla.generated.ts:691
minecraft:time_check.
clock โ
readonlyclock:string|WorldClock
The world clock to check. (26.1+.)
period? โ
readonlyoptionalperiod?: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 โ
readonlyvalue: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 โ
readonlyrange:IntRange
Passes when value is within this range.
value โ
readonlyvalue:LegacyNumberProvider
Clamps to an integer.
weather_check โ
weather_check:
object
Defined in: core/values/schema/vanilla.generated.ts:707
minecraft:weather_check.
raining? โ
readonlyoptionalraining?:boolean
thundering? โ
readonlyoptionalthundering?:boolean