ORE DICTIONARY

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

Topic category: Help with MCreator's application

Last seen on 21:14, 19. Jan 2019
Joined Jun 2016
User points:

Statistics:

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

Statistics:

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

Statistics:

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

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 21:14, 19. Jan 2019
Joined Jun 2016
User points:

Statistics:

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

Statistics:

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

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 21:14, 19. Jan 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 15:23, 14. Dec 2018
Joined Jan 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 21:14, 19. Jan 2019
Joined Jun 2016
User points:

Statistics:

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

Thanks,  I'll try

Last seen on 21:14, 19. Jan 2019
Joined Jun 2016
User points:

Statistics:

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