Error when block in mod?

Started by UnlimitedBacon3 on

Topic category: Troubleshooting, bugs, and solutions

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Error when block in mod?

I am making a mod, the items are fine but whenever I make a custom block it has recompile errors 

Gradle error log:

warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Pylo\MCreator171\forge\build\sources\main\java\mod\mcreator\ModName.java:40: error: cannot find symbol
    mcreator_kenobiBlock mcreator_1 = new mcreator_kenobiBlock();
    ^
  symbol:   class mcreator_kenobiBlock
  location: class ModName
C:\Pylo\MCreator171\forge\build\sources\main\java\mod\mcreator\ModName.java:40: error: cannot find symbol
    mcreator_kenobiBlock mcreator_1 = new mcreator_kenobiBlock();
                                          ^
  symbol:   class mcreator_kenobiBlock
  location: class ModName
Note: C:\Pylo\MCreator171\forge\build\sources\main\java\mod\mcreator\mcreator_kenobi.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
1 warning

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

 

 

Why can't it find the symbol?

And how do I fix this? Plz

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's not making the symbol
Sun, 01/29/2017 - 21:11

It's not making the symbol for a block or more than 1 item. Please help!