-
Bug
-
Resolution: Invalid
-
None
-
24w45a
-
None
-
Windows 10
-
Unconfirmed
-
(Unassigned)
When creating an item model in the new format, one would expect the boolean property "minecraft:has_component" to function similarly to the format of the "execute if data" command.
However, while a "component" value such as "minecraft:stored_enchantments" works, a value such as "minecraft:stored_enchantments.levels" or "minecraft:stored_enchantments.levels.minecraft:aqua_affinity" results in a parsing error.
Note: Attempting to format as {"minecraft:stored_enchantments": "levels"} also gave a parsing error, with latest.log reporting that it only accepts a single string.
Steps to Reproduce:
1. Create a resource pack.
2. Create a .json file in assets/minecraft/items/ with the appropriate name and format.
3. Include a "minecraft:condition" type model with the "property" field set as "minecraft:has_component".
4. For the "component" field of this boolean property, use a component path such as "minecraft:stored_enchantments.levels.minecraft:aqua_affinity" instead of a component like "minecraft:stored_enchantments".
Observed Results:
The item will always render as a missing texture cube, and latest.log will report a parsing error in the item model.
Expected Results:
The item should render the model specified in "on_true" if it has the enchantment "Aqua Affinity" in its component data, and the model specified in "on_false" if it does not.
Parsing errors from latest.log:
[Worker-Main-3/ERROR]: Couldn't parse item model 'minecraft:enchanted_book' from pack 'file/Magically Unique': Unknown registry key in ResourceKey[minecraft:root / minecraft:data_component_type]: minecraft:stored_enchantments.levels
[Worker-Main-31/ERROR]: Couldn't parse item model 'minecraft:enchanted_book' from pack 'file/Magically Unique': Not a valid resource location: minecraft:stored_enchantments.levels.minecraft:aqua_affinity Non [a-z0-9/._-] character in path of location: minecraft:stored_enchantments.levels.minecraft:aqua_affinity