How to override vanilla recipe to include modded items

Started by Trinity on

Topic category: Help with MCreator software

Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to override vanilla recipe to include modded items

I always input the recipe registry name right with the namespace too, but it just never works and i can only craft the item with the vanilla recipe.

I'm on mcreator version 2023.4 and the minecraft version is 1.19.4.

Last seen on 02:33, 27. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I had some similar issues in…
Thu, 02/08/2024 - 15:08

I had some similar issues in the 1.19.4 generator- the problem is that for certain recipe overrides, (I'm not sure how or why), they wind up getting put in the wrong folder when added. (For the override to work, it needs to both have the correct name, and have the same file structure as the vanilla recipe.) If you open your mod's workspace folder, and go to src/resources/data/recipes, you should be able to find the misplaced recipe files and manually move them to the correct location. 

Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It seems like its in the…
Thu, 02/08/2024 - 17:13

It seems like its in the right folder yet it still doesn't work

Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Thu, 02/08/2024 - 17:21

Last seen on 02:33, 27. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Weird, that does look…
Fri, 02/09/2024 - 11:46

Weird, that does look correct. The only other thing I can think of is that it might still need to be in the 'equipment' recipe book category, but otherwise I'm not totally sure. Yes, though, the registry name and file location are both correct. 

It could also be worth locking the mod element and double checking the generated code. This is what the vanilla shield recipe looks like, for comparison:

{
  "type": "minecraft:crafting_shaped",
  "category": "equipment",
  "key": {
    "W": {
      "tag": "minecraft:planks"
    },
    "o": {
      "item": "minecraft:iron_ingot"
    }
  },
  "pattern": [
    "WoW",
    "WWW",
    " W "
  ],
  "result": {
    "item": "minecraft:shield"
  },
  "show_notification": true
}
Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is how it looks and how…
Fri, 02/09/2024 - 17:59

This is how it looks and how the code looks

Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
{ "type": "minecraft…
Fri, 02/09/2024 - 17:59
{
  "type": "minecraft:crafting_shaped",
  "category": "equipment",
  "pattern": [
    "aba",
    "aaa",
    " a "
  ],
  "key": {
    "a": {
      "tag": "minecraft:planks"
    },
    "b": {
      "item": "modding:iron_plate"
    }
  },
  "result": {
    "item": "minecraft:shield",
    "count": 1
  }
}
Last seen on 02:33, 27. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure what to tell…
Fri, 02/09/2024 - 23:54

I'm not sure what to tell you, that all looks correct. You could try reloading the gradle project, (sometimes helps with weird problems like that), but I'm not sure it'd help. You could also try copy-pasting the vanilla code into your recipe element and tweaking that, but again, not sure there's an issue there. I've been able to use modded ingredients in vanilla recipe overrides before, so that's pretty strange. The only other thing I could possibly think of is that the loading order is for some reason overriding your recipe instead of the vanilla one, but that would likely be causing bigger problems.

It might be worth updating to a later version? I had less problems with this working in the 1.20.1 generator. But yeah, sorry I couldn't be of more help.

Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I guess ill try changing…
Sat, 02/10/2024 - 10:12

I guess ill try changing versions and see if it works

Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nope, still doesnt work, i…
Sat, 02/10/2024 - 10:42

nope, still doesnt work, i also tried it with other item recipes too and neither those work

Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i changed the workspace and…
Sat, 02/10/2024 - 14:55

i changed the workspace and it now suddenly works

Last seen on 02:33, 27. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh MCreator. It's a love…
Sat, 02/10/2024 - 15:23

Oh MCreator. It's a love hate relationship at times. One of my workspaces got corrupted awhile back and I had to basically rebuild the thing from scratch, but on the plus side, a bunch of my recipe overrides inexplicably worked. For the most part though, things don't randomly stop working without explanation! Just, uh, sometimes. Glad to hear it's working!

Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks regardless for your…
Sat, 02/10/2024 - 18:31

Thanks regardless for your ideas and helping me

Last seen on 04:25, 27. Apr 2024
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey, I'm having kinda the…
Wed, 03/06/2024 - 13:05

Hey, I'm having kinda the same issue. The override recipes works ok for me. But other people downloading my mod are reporting that the recipe isn't working. Do you guys have any advice?

Last seen on 09:09, 27. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
seeing this late but maybe…
Tue, 03/12/2024 - 08:25

seeing this late but maybe try what i tried aswell, changing the workspace

its a pretty awful option for a mod thats already published but idk if theres any work-arounds