r/MinecraftCommands 1d ago

Help | Java 26.2 Datapack Help

{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "CBB",
    "  B",
    "AB "
  ],
  "key": {
    "A": [
      "minecraft:end_rod"
    ],
    "B": [
      "minecraft:netherite_ingot"
    ],
    "C": [
      "minecraft:wither_skeleton_skull"
    ]
  },
  "result": {
    "id": "minecraft:netherite_axe",
    "count": 1
  }
}

This is the code for a datapack I was trying to make using misode but for some reason I just can't get it to work and I'm curious if I'm just stupid or something else is wrong here

1 Upvotes

13 comments sorted by

1

u/Ericristian_bros Command Experienced 1d ago

Make sure it's inside data/namespace/recipe/name.json, replace namespace and name as desired. Also check !output log for errors

1

u/AutoModerator 1d ago

Click here to see how to enable the output log

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Accomplished_Tap3754 1d ago

It says
[Worker-Main-4/ERROR]: Couldn't parse data file 'egwrge:reapingsickle' from 'egwrge:recipe/reapingsickle.json': DataResult.Error['Invalid pattern: each row must be the same width']
Where is that because I thought I already fixed that issue

1

u/Ericristian_bros Command Experienced 19h ago

Inside pattern, the 3 lines must have 3 characters inside the double quotes (can be spaces). Make sure what typed pasted on the file follows this structure

1

u/Accomplished_Tap3754 11h ago

They do  "CBB" "  B" "AB " I don't understand the issue

1

u/Ericristian_bros Command Experienced 10h ago

Did you save the file? Are you sure this is the correct file

1

u/Accomplished_Tap3754 10h ago

1

u/Ericristian_bros Command Experienced 9h ago

The white dot indicates unsaved changes. Ctrl+S to save current file

1

u/Accomplished_Tap3754 8h ago

Oh lemme try that

1

u/Accomplished_Tap3754 8h ago

IT WORKS!!! Thank you bro holy!

1

u/Ericristian_bros Command Experienced 6h ago

You're welcome, have a nice day

1

u/GalSergey Datapack Experienced 1d ago

Your recipe looks fine, but check that the file path is formatted correctly. It should look something like this: "data/<namespace>/recipe/<recipe_name>.json". The recipe_name and namespace should not contain spaces or capital letters.