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, e.g. "minecraft:zombie".
The display name for this entity from the en_US language file. Falls back to the identifier.
The unified entity view that contains this behavior definition.
All loot tables referenced in this entity's behavior definition.
The linked resource pack entity, or undefined if none exists.
Sound events for this entity from sounds.json.
The spawn rule for this entity, or undefined if none exists.
Represents a behavior pack entity definition file (
entities/directory). Contains server-side logic: components, events, loot tables, spawn rules.Access via
entity.behavioron a unified Entity.Example