Topic category: Help with Minecraft modding (Java Edition)
Surprisingly I haven't been able to find a cohesive explanation of how to specifically use the ore dictionary for mcreator. I've spent the last four days surfing google, and these forums in search of an answer. I've found bits of information here and there (including the forge forum), and have been writing it all down in a notepad.
I know very basic coding (that's an overstatement) and the main problem I often find is that the tutorials I find are for actual code'em yourself mods. As a beginner while I see similarities in the mcreator code and eclipse code made by yourself, in the end IT IS different. I am trying to learn from tutorials aimed at people using eclipse, but when I go into mcreator's code even the slightest difference (even in arrangement) derails my train of thought, and I no longer know what I'm supposed to do.
Some of my notes include:
Ore Dictionary:
import net.minecraftforge.oredict.OreDictionary
Go to the code tab -> TestEnvironmentMod.java -> search for "public void load(FMLInitializationEvent event) {" type in "OreDictionary.registerOre("the oredict name, example oreCopper", classofyourore);"
Code -> testEnviromentMod -> type "OreDictionary.registerOre(Name_Of_The_Item_Or_Ore_You_Want_to_register, "something like ingotCopper or oreCopper");"
OreDicionary.registerOre("plankWood", mcreator_jacarandaPlanks.block); } }.
I'm trying to add planks to ore:plankWood. To my understanding so far this would be achieved by going to the TestEnvironmentMod.java and:
- public void load(FMLInitializationEvent event) {
OreDictionary.registerOre(''plankWood'', mcreator_myPlanks.block); } }
THEN going to the imports up top and adding:
import net.minecraftforge.oredict.OreDictionary.
Preview of my code:
import net.minecraftforge.oredict.OreDictionary
- public void load(FMLInitializationEvent event) {
OreDictionary.registerOre(''plankWood'', mcreator_myPlanks.block); }
}
Yes?
Oh yea 1.7.3/1.7.10
It's this working? I'm trying it and I don't have any errors, but it isn't working.