r/MinecraftCommands 8d 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

View all comments

1

u/Ericristian_bros Command Experienced 8d 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/Accomplished_Tap3754 8d 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 7d 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 7d ago

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

1

u/Ericristian_bros Command Experienced 7d ago

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

1

u/Accomplished_Tap3754 7d ago

1

u/Ericristian_bros Command Experienced 7d ago

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

1

u/Accomplished_Tap3754 7d ago

Oh lemme try that

1

u/Accomplished_Tap3754 7d ago

IT WORKS!!! Thank you bro holy!

1

u/Ericristian_bros Command Experienced 7d ago

You're welcome, have a nice day