Skip to content

[Version 4.0] Conditions

Insane96 edited this page Jan 24, 2023 · 2 revisions

Conditions that can be used in both the mob's properties and modifiable values.

Conditions

That's a list of all the keys available for the Condition object, all the values are optional.

  • spawner_behaviour: apply properties based off if the mob is spawned / not spawned from a Spawner:
    "none": properties will apply to any mob. If spawner_behaviour is omitted, this is the default value
    "spawner_only": properties will apply only to mobs spawned from spawners
    "natural_only": properties will apply only to mobs NOT spawned from spawners
  • structure_behaviour: apply properties based off if the mob is spawned / not spawned from a Structure (like Mansions):
    "none": properties will apply to any mob. If structure_behaviour is omitted, this is the default value
    "structure_only": properties will apply only to mobs spawned from structures
    "natural_only": properties will apply only to mobs NOT spawned from structures
  • is_baby: true/false if the properties should apply only to baby / adult mobs. If omitted will apply to any mob
  • nbt: a string containing the raw mob NBT
  • world: World Whitelist Object
  • advancements_done: a list of Advancement objects.
  • game_stages_unlocked: a list of Game Stages objects.

Example

TBD

Clone this wiki locally