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.
ReadonlyfeatureThe full JSON root key identifying the feature type, e.g. "minecraft:tree_feature".
ReadonlyfileAbsolute path to the asset's file on disk. Empty string in browser mode.
ReadonlyidThe namespaced feature identifier, e.g. "tsu_nat:maple_tree".
All feature rules that place this feature.
Represents a world generation feature definition from the behavior pack's
features/directory.Feature files use various root keys (
minecraft:single_block_feature,minecraft:tree_feature, etc.) — all are parsed and exposed uniformly.Access via
addon.features.get(id)or throughfeatureRule.placesFeature.Example