Closed Owehttamy closed 3 weeks ago
Generators that allow you to specify item components only demand a string value when using the custom_name and item_name components; there isn't any ability to clarify whether or not the value is a string, translation value, or keybind.
custom_name
item_name
Head to the 1.21 generator
"type": "minecraft:crafting_shapeless", "category": "misc", "group": "lgbt_banners", "ingredients": [ { "tag": "minecraft:banners" }, { "item": "minecraft:red_mushroom" } ], "result": { "id": "minecraft:white_banner", "count": 1, "components": { "minecraft:banner_patterns": [ { "pattern": "lgbt:aromantic", "color": "white" } ], "minecraft:rarity": "uncommon", "minecraft:item_name": "lgbt.flag.aromantic.white" } } }
Those components expect a stringified text component, so you would need:
"minecraft:item_name": "{\"translate\":\"lgbt.flag.aromantic.white\"}"
Generators that allow you to specify item components only demand a string value when using the
custom_name
anditem_name
components; there isn't any ability to clarify whether or not the value is a string, translation value, or keybind.Example:
Head to the 1.21 generator