nekpek Posted June 10, 2013 Posted June 10, 2013 So lately i've been working on a mod and everything was going fine till i had to compile it I thought adding the Vannila item manualy to the net.minecraftforge.oredict.OreDictionary.java would work (which it did if i ran mc from eclipse) but when i compile it and install the mod the ore dictionary does not work. So how would i add a Vanilla item (leather to be specific) to the ore Dictionary? Quote Naturalis - The easy way for nature.! Esquire - A helping hand for your adventure. Jimanju - The Random Disasters!
Draco18s Posted June 10, 2013 Posted June 10, 2013 Vanilla items should be in the dictionary by default. Quote 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.
nekpek Posted June 10, 2013 Author Posted June 10, 2013 Under what names Not even when i open up the Ore Dictionary file can i find anything about leather. the only thing i can find that is vanilla is logWood plankWood slabWood StairWood StickWood treeSapling treeLeaves oreGold oreIron oreDiamond oreRedstone oreEmerald No leather which is what i need. Quote Naturalis - The easy way for nature.! Esquire - A helping hand for your adventure. Jimanju - The Random Disasters!
Draco18s Posted June 10, 2013 Posted June 10, 2013 What I meant was: I thought all vanilla items went into the ore dictionary. Quote 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.
nekpek Posted June 10, 2013 Author Posted June 10, 2013 me too when i began this project So how would i add them if it was possible I know how to make it work if i may edit the forge files but then it wont load in the mods folder (the Ore Dictionary) how come? it's 2 line of code that i need to add in the forge Ore Dictionary. would there be another way to make my "leather" work as "leather" in the vanilla recipes and mod recipe's that require leather? or how would i make "my" forge Ore Dictionary file load? Quote Naturalis - The easy way for nature.! Esquire - A helping hand for your adventure. Jimanju - The Random Disasters!
Draco18s Posted June 10, 2013 Posted June 10, 2013 Don't know, the only thing I used the dictionary for was to listen for IDs of ore blocks so I could have my custom ore maps register the block as valuable. Quote 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.
nekpek Posted June 10, 2013 Author Posted June 10, 2013 hmh, okey thank you any ways Quote Naturalis - The easy way for nature.! Esquire - A helping hand for your adventure. Jimanju - The Random Disasters!
Zedicus Posted June 10, 2013 Posted June 10, 2013 Why can't you just use 'Item.leather', rather than adding it to the ore dictionary? Quote
nekpek Posted June 10, 2013 Author Posted June 10, 2013 Cause my mod is about adding a new item that you can use as leather it is Cork leather that is made out of cork from trees. Quote Naturalis - The easy way for nature.! Esquire - A helping hand for your adventure. Jimanju - The Random Disasters!
Zedicus Posted June 10, 2013 Posted June 10, 2013 Well then, I guess you could try: OreDictionary.registerOre("leather", new ItemStack(Item.leather)); Then add your cork leather under the same name and attempt to make leather armor or something? Quote
nekpek Posted June 10, 2013 Author Posted June 10, 2013 Well then, I guess you could try: OreDictionary.registerOre("leather", new ItemStack(Item.leather)); Then add your cork leather under the same name and attempt to make leather armor or something? I tried that very first, and it would work if it wasn't because you had to overwrite the vanilla recipes with the Ore Dictionary word for leather i have a solution here [sOLVED] I simple added the code itself inside the Ore Dictionary registerOre("itemLeather", Item.leather); under the other registerOre lines and then under replacements.put(new ItemStack(Item.stick), "stickWood"); i added replacements.put(new ItemStack(Item.leather), "itemLeather"); when compiling you will get two file in net\minecraftforge\oredict thouse should be added inside the minecraft.jar then you simple load you mod as normal and everything runs smoothly and when forge comes with an update for the leather you simple skip that step Quote Naturalis - The easy way for nature.! Esquire - A helping hand for your adventure. Jimanju - The Random Disasters!
Zedicus Posted June 10, 2013 Posted June 10, 2013 To save yourself from having to edit base classes, couldn't you just make your cork craft into vanilla leather? It might not be perfect but it prevents base edits. Quote
nekpek Posted June 10, 2013 Author Posted June 10, 2013 while the idea have struck it make no sense that cork leather would turn into normal leather. even tho Steve is extremely good in crafting stuff i don't think he is that good. besides it is only temporary till Forge adds the leather (and the rest of the vanilla items) into the ore dictionary. the edit i made to the Ore Dictionary doesn't effect any other mod, unless they too have edited the Ore Dictionary file. which i doubt as everyone refrain from editing base files. also how much fuss does it do?. i've tested it with alot of other mods (bc, IC) and none broke. Quote Naturalis - The easy way for nature.! Esquire - A helping hand for your adventure. Jimanju - The Random Disasters!
ObsequiousNewt Posted June 10, 2013 Posted June 10, 2013 while the idea have struck it make no sense that cork leather would turn into normal leather. even tho Steve is extremely good in crafting stuff i don't think he is that good. besides it is only temporary till Forge adds the leather (and the rest of the vanilla items) into the ore dictionary. the edit i made to the Ore Dictionary doesn't effect any other mod, unless they too have edited the Ore Dictionary file. which i doubt as everyone refrain from editing base files. also how much fuss does it do?. i've tested it with alot of other mods (bc, IC) and none broke. Eh, it's good practice not to make base edits if you can avoid it. Not that I would know anything about good practice... Quote BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
Recommended Posts
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.