Jump to content

Modify a recipe from another mod


xaros74

Recommended Posts

Hi, i want to create an addon for Create who add cogwheel with all the vanilla wood texture. But the recipe for the cogwheel in create use the tag: minecraft.buttons  how can i  replace it to use instead just one item so i could use the same pattern for my cogwheel but with a different type of button ?

PS: i apologize if my english is bad i'm french 😅

Link to comment
Share on other sites

5 hours ago, diesieben07 said:

create a replacement JSON file in the place of the recipe in your mod

Note:

D7 here means to place the recipe json at the same relative directory as the other mod's file. So if the other mod's ID is "createcraft" then you'd place the recipe at /src/main/resources/data/createcraft/recipes not at /src/main/resources/data/yourmod/recipes

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

It doesn't work😭 i put the modified json in the same relative path (resources\data\create\recipes\crafting\kinetics) and i modifed the dependency i don't understand what's going wrong. Create build his recipes in the code maybe this is the problem?

Here is the dependency for the mod in my toml file.

 

[[dependencies.testmod]]
    modId="create"
    mandatory=true
    versionRange="[mc1.16.5_v0.3.2d,)"
    ordering="BEFORE"
    side="BOTH"

 

Link to comment
Share on other sites

Or more accurately, Create is overriding yours. It's a "who ever goes last wins" situation.

You should change that from "BEFORE" to "AFTER"

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Oh ok i was thinking that it says create load BEFORE my mod but it's the opposite😅 But it still doesn't work (I have rerun the gradlew gen). The recipe is shown as create:crafting/kinetics/cogwheel. I put my cogwheel.json in resources/data/create/recipes/crafting/kinetics. Is that correct?

Edited by xaros74
Link to comment
Share on other sites

That's the wrong location.

/resources/data/create/advancements/recipes/create.base/crafting/kinetics/cogwheel.json

https://github.com/Creators-of-Create/Create/blob/mc1.16/dev/src/generated/resources/data/create/advancements/recipes/create.base/crafting/kinetics/cogwheel.json

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

10 hours ago, Draco18s said:

/resources/data/create/advancements/recipes/create.base/crafting/kinetics/cogwheel.json

this is the location for the json to unlock the craft in the recipe book, not for the recipe itself. I try to put my recipe in this path it don't work

Link to comment
Share on other sites

15 hours ago, xaros74 said:

this is the location for the json to unlock the craft in the recipe book, not for the recipe itself. I try to put my recipe in this path it don't work

Oops, you were correct. I was having trouble finding the recipe and searched the entire repo.

It did have the correct path in it though.

Anyway, I see you got it.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.

×
×
  • Create New...

Important Information

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