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 trading table identifier — the filename without extension, e.g. "armorer_trades".
ReadonlytiersThe ordered list of trade tiers. Players unlock higher tiers by completing trades.
Represents a villager trading table from the behavior pack's
trading/directory. Trading tables define the tiers of trades available for a villager profession.Access via
addon.trading.get(id).Example