Jump to content

[1.12] Two small questions about the json recipes


Kander16

Recommended Posts

Hi,

 

I want to create a recipe where you can put this as input:

"  X"

" Y "

"Z  "

 

but also this pattern:

 

"X"

"Y"

"Z"

 

So can you put multiple patterns in one json file? I can't make the recipe work in these directions without two patterns. Otherwise I'll need two json files.

 

Another question:

 

If I have a shapeless recipe, and I need more than one item of the same, can I just put in the id of that item once and then say "I need 4 of this item" instead of putting the id of the item multiple times?

 

Thanks.

Edited by Kander16

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

Link to comment
Share on other sites

Hi Kander16, I can try to help clarify some things with the new 1.12 recipe formatting:

 

As far as I know of with the shaped crafting recipes go, you are only allowed to 1 shape per .json file, thus requiring 2 files assuming you still want those same configurations.

 

Also for the shapeless recipes and the id's of the materials used. I experienced this as well but I had to change it to if I had more than one of the same thing I had to repeat the entry instead of using the ["count: X]; however, because Forge 1.12 is still in the early works, it's possible this could or couldn't change.

 

And as for the last one, I can't help you there as I've never messed with the OreDictionary.WILDCARD_VALUE too much. But I hope the rest helped you somewhat!

  • Like 1
  • Thanks 1

Between being a Gamer, a Furry, and a Modder who one day wants to go into Game Dev., time is an absolute waste. ~SirBassington

Link to comment
Share on other sites

7 hours ago, Kander16 said:

What is the replacement for OreDictionary.WILDCARD_VALUE to get an item work in a recipe no matter what the damage is?

 

Use its value (32767) directly.

  • Thanks 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.