ReadonlydataThe raw parsed JSON data of the asset file.
ReadonlydocstringsAll JSDoc-style comment blocks parsed from this asset's source file,
in document order. Empty array when no /** … */ blocks are present.
ReadonlyfileAbsolute path to the asset's file on disk. Empty string in browser mode.
ReadonlyidThe namespaced entity identifier this spawn rule applies to, e.g. "minecraft:zombie".
All biome tag values referenced in this spawn rule's minecraft:biome_filter
conditions. Used to match biomes — e.g. "monster", "savanna", "mesa".
Deduplicated.
The unified entity this spawn rule belongs to.
undefined if the entity is not present in the addon.
Represents a spawn rule file from the behavior pack's
spawn_rules/directory. Spawn rules define when and where an entity can naturally spawn in the world.Access via
entity.spawnRuleon a unified Entity.Example