Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

MC 1.7.10 Recipe issues with other mods


winnetrie
 Share

Recommended Posts

There are mods that needs specific items and/or blocks from minecraft in their recipes.

For example buildcraft requires a crafting table in a recipe for a certain block. How would i do it that it accepts my crafting tables too? I know i can make recipes for all combinations, but when we need to do this for all mods, that would be too much work?

Can this be done using the oredictionary?

Link to comment
Share on other sites

This assumes that the other mod is using the OreDict version of the crafting table in their recipe.

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

I was just going to keep my mouth shut, but like Draco pointed out, that particular mod must support Ore Dictionary for it to work. If they don't, you should check if the mod in question has an API for such things. Most of the 'bigger' mods have API's for their recipe systems. While this may be tedious, it sometimes can be the only way (other than ASM/Reflection/etc) to incorporate your item as an ingredient using their recipe system. You mentioned BuildCraft. The recipe-specific portion of their API can be found at https://github.com/BuildCraft/BuildCraftAPI/tree/9cd0add7220d6356299754bed75e1a7dfe09f74a/api/buildcraft/api/recipes

Link to comment
Share on other sites

Just tested it with buildcraft and it seems not to work.

 

OreDictionary.registerOre("workbench", new ItemStack(TemBlocks.workbench_wood_oak));
    	OreDictionary.registerOre("workbench", new ItemStack(TemBlocks.workbench_wood_spruce));
    	OreDictionary.registerOre("workbench", new ItemStack(TemBlocks.workbench_wood_birch));
    	OreDictionary.registerOre("workbench", new ItemStack(TemBlocks.workbench_wood_jungle));
    	OreDictionary.registerOre("workbench", new ItemStack(TemBlocks.workbench_wood_acacia));
    	OreDictionary.registerOre("workbench", new ItemStack(TemBlocks.workbench_wood_darkoak));

Link to comment
Share on other sites

Option 1: Make a pull request (or open an issue) will BuildCraft to get it changed

Option 2: Use their API to recreate the 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

To sum up:

 

1) You may offer your new block / item as a generalized ingredient by registering with the "ore" dictionary.

 

2) You may write recipes for your new wonders using ore recipes that accept other mods' generalized ingredients.

 

3) You may add your own specific ore recipes to use generalized ingredients to make things you know about.

 

but...

 

You can't force your ingredients upon as yet unknown mods (at least not without some wicked post-init on-the-fly analysis and replacement of the game's recipes that could screw up everything in an installation you didn't foresee).

 

Good luck!

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

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
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.