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 relative path from the behavior pack root, used as the unique key.
e.g. "loot_tables/entities/zombie.json".
A flat, deduplicated list of all item identifiers that can drop from this loot table.
All custom items (defined in this addon) that can drop from this loot table. Vanilla items are excluded since they are not loaded into the addon.
All blocks that reference this loot table.
All unified entities whose behavior definition references this loot table.
Represents a loot table file from the behavior pack's
loot_tables/directory.Access via
addon.lootTables.get(relativePath),entity.lootTables, orblock.lootTable.Example