ORE DICTIONARY

Started by RaolTheBest on

Topic category: Help with MCreator software

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5490
ORE DICTIONARY

Does someone know how to set ore dictionary?

Active 8 years ago
Joined Sep 2016
Points:
763

User statistics:

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

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

Active 8 years ago
Joined Aug 2016
Points:
716

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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);"

Active 8 years ago
Joined Aug 2016
Points:
716

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

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

@#2 ok thanks

Active 8 years ago
Joined Sep 2016
Points:
763

User statistics:

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

@#3

ok, thanks MrCreator! :)

Active 7 years ago
Joined Nov 2016
Points:
724

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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.

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5490
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

Active 1 year ago
Joined Jan 2018
Points:
786

User statistics:

  • Modifications: 4
  • Forum topics: 5
  • Wiki pages: 1
  • MCreator plugins: 0
  • Comments: 35
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.

 

 

 

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

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

Thanks,  I'll try

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5490
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"

Active 5 years ago
Joined Nov 2014
Points:
752

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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.

Active 5 years ago
Joined Nov 2014
Points:
752

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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.

Active 5 years ago
Joined May 2017
Points:
695

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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.

Active 5 years ago
Joined Jun 2018
Points:
693

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
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.