We lack Ore Dictionary examples

Started by Zergmazter on Thu, 01/18/2018 - 02:38

Topic category: Help with modding (Java Edition)

Last seen on 02:07, 12. Mar 2020
Joined Nov 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
We lack Ore Dictionary examples
Thu, 01/18/2018 - 02:38

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?

 

Last seen on 02:07, 12. Mar 2020
Joined Nov 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Oh yea 1.7.3/1.7.10
Thu, 01/18/2018 - 02:42

Oh yea 1.7.3/1.7.10

Last seen on 16:35, 13. Sep 2018
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It's this working? I'm…
Thu, 02/08/2018 - 14:51

It's this working? I'm trying it and I don't have any errors, but it isn't working.