Jump to content

Recommended Posts

Posted

Is there a way to get a crafting recipe to call from the Ore Dictionary so that it will look for items that fit a specific item type? for example I have 4 items in my mod that are essentially the same thing but are needed for a crafting recipe that is shaped but not suppose to be spot specific e.g.

XY
BC

is exactly the same as

YC
XB

so instead of an individual line for each possible way to craft it, i want to have 1 line that will cover each possible way. it seems to me that the ore dictionary would do this but after toying around with it, i do not see how i can get it to actually do what i need it to do.

Posted

You could try making each of the individual crafting recipes. Like, you could tell it you want a shaped recipe this is like:

XY
CB

Then make another one that is:

YB
XC

And so on. I'm not sure that you can use the Ore Dictionary for it, because that basically lets you make an item the same as an item from any other mod (so like, a copper ingot from your mod could be used in Metallurgy). On the other hand, I'm still a noob myself and haven't used the Ore Dictionary at all myself, so I don't know.

Posted

You could try making each of the individual crafting recipes. Like, you could tell it you want a shaped recipe this is like:

XY
CB

Then make another one that is:

YB
XC

And so on. I'm not sure that you can use the Ore Dictionary for it, because that basically lets you make an item the same as an item from any other mod (so like, a copper ingot from your mod could be used in Metallurgy). On the other hand, I'm still a noob myself and haven't used the Ore Dictionary at all myself, so I don't know.

I have about 80 recipes because i did individual ones to start. Im want to try and remove 90% of them, but the more i think about i start to realize that by doing what i want to do you allow all 4 items to be the same which i dont want.

Make a shapeless recipe with the four items.

I want it to be shaped so it makes sence to what you are making.

 

 

Well i guess i either have yo make my own crafting manager or leave it be. Which since i already have them all made i guess i will leave it be. But i would still like to know if the stated question is possible.

Posted

Then you need to make a custom CraftingHandler to make check if four different items are in the crafting grid.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Well either way would do just the opposite of what I was hoping to accomplish, to decrease the number of lines in my code. Oh well, it was working before so i will keep it as it was. Thanks for the help.

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.