Jump to content

[1.19.2][Solved] Recipes that overwrite vanilla tools aren't loaded


Recommended Posts

Posted (edited)

Hello!

 

I'm trying to overwrite the vanilla recipes for the wooden tools. I have this "wooden_sword.json" inside "resources/data/minecraft/recipes", for example. When checking ingame the recipe hasn't changed. (wooden sword is still crafted with wood instead of the new dirt)

I'm also overwriting the recipe for bread the exact same way (created a file "resources/data/minecraft/recipes/bread.json") and for bread it works.

I also tried it with the stone tools and it also didn't work.

 

No errors or hints in the logs. I'm using Forge 43.1.1. If you need more information let me know.

Thanks in advance.

Edited by Boy132
Posted

It's not a good idea to replace vanilla recipes or other vanilla datapack data by default in mods.

What do you think happens when 2 different mods try to do this.

 

Anyway, make sure you specify a dependecy on the forge mod in your mods.toml and that it says it should be loaded AFTER it.

That way your mod will be placed above forge in the datapacks when creating new worlds.

Quote

[[dependencies.${mod_name}]]
    modId="forge"
    mandatory=true
    ordering="AFTER"
    versionRange="[${forge_version},)"
 

Where obviously you need to replace the $x bits with the real values.

  • Thanks 1

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted
9 minutes ago, warjort said:

Anyway, make sure you specify a dependecy on the forge mod in your mods.toml and that it says it should be loaded AFTER it.

That way your mod will be placed above forge in the datapacks when creating new worlds.

Where obviously you need to replace the $x bits with the real values.

Thank you! Changing the ordering did the trick.

  

9 minutes ago, warjort said:

It's not a good idea to replace vanilla recipes or other vanilla datapack data by default in mods.

What do you think happens when 2 different mods try to do this.

Don't worry. I'm going to use conditional recipes and config values later. The example above was basically just for testing.

  • Boy132 changed the title to [1.19.2][Solved] Recipes that overwrite vanilla tools aren't loaded

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.