Jump to content

[1.19.4] Custom specific recipe is overwritten by a more generic one


JimiIT92

Recommended Posts

I have a new type of chiseled bookshelf made out of spruce wood, and I want to craft it like regular chiseled bookshelf but with spruce planks and slabs instead. So I've created the crafting recipe like so
 

{
  "type": "minecraft:crafting_shaped",
  "category": "building",
  "key": {
    "#": {
      "item": "minecraft:spruce_planks"
    },
    "X": {
      "item": "minecraft:spruce_slab"
    }
  },
  "pattern": [
    "###",
    "XXX",
    "###"
  ],
  "result": {
    "item": "mineworld:spruce_chiseled_bookshelf"
  },
  "show_notification": true
}

hovewer when I try the crafting the regular chiseled bookshelf is crafted instead. Looking at the assemble method from the recipe the crafting is matching the recipe that takes the planks and slabs tags instead, thus the result.
Now, I don't want to completely override the recipe, as it is bad practice. The generic recipe should still work for mod compatibility, I just want to craft anotehr item when using some more specific planks and slabs. So how can I force the game to use this more specific recipe instead?

EDIT:
I should point out that in the mods.toml file the Forge dependecy ordering is set to AFTER, as pointed out in another similar thread

Edited by JimiIT92
Added info of the mods.toml file

Don't blame me if i always ask for your help. I just want to learn to be better :)

Link to comment
Share on other sites

48 minutes ago, JimiIT92 said:

So how can I force the game to use this more specific recipe instead?

You can't. It's whichever comes first in the stream order will be picked, which is almost always the vanilla datapack unless you happen to reorder the datapacks to detect your recipe first. Even then, I'm not sure whether that will fix the issue because of the asynchronous behavior of datapack loading.

48 minutes ago, JimiIT92 said:

I should point out that in the mods.toml file the Forge dependecy ordering is set to AFTER, as pointed out in another similar thread

This doesn't matter.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.