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 item identifier, e.g. "minecraft:copper_spear".
The attachable definition for this item, or undefined if none exists.
Attachables define how the item looks when held or equipped.
The display name for this item from the en_US language file.
Falls back to the standard lang key "item.namespace:name.name" via the lang file,
which itself falls back to the identifier if the key is missing.
All blocks that drop this item via their loot table.
All unified entities that can drop this item via their loot tables.
All recipes in the addon whose result is this item.
The resolved display texture for this item, or undefined if it cannot be
resolved from the resource pack's item_texture.json or the texture file
is not present in the addon.
Represents an item definition file from the behavior pack's
items/directory.Access via
addon.items.get(id).Example