Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stringified JSON text in components is not validated #549

Open
xa31er opened this issue Jun 24, 2024 · 1 comment
Open

Stringified JSON text in components is not validated #549

xa31er opened this issue Jun 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@xa31er
Copy link

xa31er commented Jun 24, 2024

When generating a new recipe like this:
{ "type": "minecraft:crafting_shaped", "category": "equipment", "group": "wands", "pattern": [ " X", " # ", "# " ], "key": { "X": { "item": "minecraft:diamond" }, "#": { "item": "minecraft:stick" } }, "result": { "id": "minecraft:carrot_on_a_stick", "count": 1, "components": { "minecraft:custom_model_data": 1, "minecraft:custom_name": "Diamond Wand" } } }
The output the generator gives (that text ^^^) doesn't work ingame.

The error is malformed JSON @ the "minecraft:custom_name":"Diamond Wand" line.

Thank you for the help.

@misode
Copy link
Owner

misode commented Aug 14, 2024

You need to quote the JSON text manually in the "custom_name" field

@misode misode changed the title Recipe generator error Stringified JSON text in components is not validated Aug 14, 2024
@misode misode added the enhancement New feature or request label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants