ORE DICTIONARY

Started by RaolTheBest on Fri, 11/25/2016 - 17:54

Topic category: Help with MCreator software

Last seen on 12:00, 25. Sep 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ORE DICTIONARY
Fri, 11/25/2016 - 17:54

Does someone know how to set ore dictionary?

Last seen on 10:15, 29. Mar 2017
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 20:59, 18. Dec 2016
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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);"

Last seen on 20:59, 18. Dec 2016
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 12:00, 25. Sep 2020
Joined Jun 2016
User points:

User statistics:

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

@#2 ok thanks

Last seen on 10:15, 29. Mar 2017
Joined Sep 2016
User points:

User statistics:

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

@#3

ok, thanks MrCreator! :)

Last seen on 00:42, 15. Nov 2017
Joined Nov 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 12:00, 25. Sep 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 09:56, 15. Aug 2020
Joined Jan 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

 

 

 

Last seen on 12:00, 25. Sep 2020
Joined Jun 2016
User points:

User statistics:

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

Thanks,  I'll try

Last seen on 12:00, 25. Sep 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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"

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:
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.

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:
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.

Last seen on 15:43, 5. May 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I have same problem xD…
Sat, 03/03/2018 - 10:48

I have same problem xD

Why MCreator deelopers can't add oredictionary line to block\item editors?(((

Last seen on 21:24, 5. Feb 2020
Joined May 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.