ORE DICTIONARY

Started by RaolTheBest on

Topic category: Help with MCreator software

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ORE DICTIONARY

Does someone know how to set ore dictionary?

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nope, i have been wondering
Fri, 11/25/2016 - 22:51

Nope, i have been wondering the same question for weeks now, :T

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Go to the code tab ->
Sat, 11/26/2016 - 16:52

Go to the code tab -> TestEnvironmentMod.java -> search for "public void load(FMLInitializationEvent event) {" type in "OreDictionary.registerOre("the oredict name, example oreCopper", classofyourore);"

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you still dont know, just
Sat, 11/26/2016 - 16:54

If you still dont know, just look at the source code of forge

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Go to the code tab ->
Sat, 11/26/2016 - 19:54

@#2 ok thanks

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:If you still dont know, just
Mon, 11/28/2016 - 11:08

@#3

ok, thanks MrCreator! :)

Joined Nov 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you don'tmind me asking,
Thu, 01/26/2017 - 17:40

If you don'tmind me asking, what exactly did you type in and where - what does it look like? Im just making sure im typing it down correctly; novice coder here.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have tried to put…
Tue, 01/09/2018 - 21:19

I have tried to put OreDictionary.registerOre(oreLead) under that public load line but it makes recompilation fail

Yes answer after a year XD

Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You also need to add this…
Wed, 01/10/2018 - 16:22

You also need to add this line to the top of the code, with the other "imports":

import net.minecraftforge.oredict.OreDictionary

 

If that doesn't work post the recompilation error and I'll have a look-ie-do.

 

 

 

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks,  I'll try
Wed, 01/10/2018 - 17:50

Thanks,  I'll try

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The recompilation error:…
Thu, 01/11/2018 - 19:33

The recompilation error:

C:\Pylo\MCreator176_3\forge\build\sources\main\java\mod\mcreator\mcreator_leadOre.java:50: error: cannot find symbol
     OreDictionary.registerOre("oreLead", classofyourore);
                                          ^
  symbol:   variable classofyourore
  location: class mcreator_leadOre
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Yes, I don't know what to write in "classofyourore"

Joined Nov 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm no coder but I think …
Tue, 01/23/2018 - 03:29

I'm no coder but I think "classofyourore" is the thing that goes like this:

public class mcreator_TheNameOfYourOreWithoutCaps  { after all the import stuff.

Lets say your ore is named Raol Lead, then your line should be OreDictionary.registerOre("oreLead", mcreator_raolLead); or something along those lines. I'm no coder so I might have made mistakes. I don't know if you need the ''mcreator'' or not. Try with and without and see what works.

Joined Nov 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm on the same boat It's…
Tue, 01/23/2018 - 03:33

I'm on the same boat It's trial and error for me till it works lol.

Joined May 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the list of mod elements,…
Sat, 09/22/2018 - 23:37

In the list of mod elements, the name of the item that you want to reference exactly the way it is written would be classofyourore, so if I had a mod element called Super_Dirt, in the list of mod elements it would just display SuperDirt and that is what you would put in. For the part that says "oredict name" you can actually put anything you find appropriate.

Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've tried the OreDictionary…
Fri, 09/28/2018 - 23:24

I've tried the OreDictionary registering as seen above, and it didn't cause a recompilation error, but it doesn't work ingame.

Might as well keep trying.