Get the files on 9Minecraft
Contents (3)
Conditions allow for precise targeting of mob modifications. You can nest conditions to create complex requirements.
| Condition | Description |
|---|---|
chance |
A decimal value (0.0 to 1.0) representing the probability of the function executing. |
biome |
Checks if the mob spawned in a specific biome ID or biome type. |
dimension |
Checks the dimension ID (e.g., 0 for Overworld, -1 for Nether). |
height |
Checks the Y-level of the mob's spawn location. |
light |
Checks the light level at the spawn location. |
moon |
Checks the current phase of the moon (0-7). |
difficulty |
Checks the world difficulty (Peaceful, Easy, Normal, Hard). |
player_nearby |
Checks if a player is within a specified radius of the spawn point. |
rng |
Generates a random number to compare against a range. |
spawn |
Checks if the mob is a natural spawn or from a spawner. |
Logical Operators
- all_of: Returns true only if every nested condition is met.
- any_of: Returns true if at least one nested condition is met.
- none_of: Returns true only if none of the nested conditions are met.












