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 block identifier, e.g. "minecraft:dirt".
The display name for this block from the en_US language file.
Tries the tile.* key first (legacy), then block.*. Falls back to the identifier.
The loot table for this block, or undefined if none is referenced or found.
Sound events for this block from sounds.json.
The resolved texture for the default (*) face of this block, or undefined
if it cannot be resolved from terrain_texture.json or the texture file
is not present in the addon.
Represents a block definition file from the behavior pack's
blocks/directory.Access via
addon.blocks.get(id).Example