Posted June 5, 20169 yr 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? Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
June 5, 20169 yr Yes, you can do it with oredictionary http://www.minecraftforge.net/wiki/Common_Oredict_names is set as: workbench Creating Potatium Craft, please wait. For a better (and yet poor explanation of my WIP mod, go to: Potatium Craft Overview )
June 5, 20169 yr 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.
June 5, 20169 yr 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 http://p455w0rd.net/images/forumsignature.png[/img]
June 5, 20169 yr Author 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)); Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
June 5, 20169 yr 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.
June 5, 20169 yr Author OK thank you very much Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
June 5, 20169 yr 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.
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.