My Mob Error

Started by KurlozM928 on Fri, 05/18/2018 - 20:56

Topic category: Bugs and solutions

Last seen on 03:03, 25. Jun 2018
Joined Apr 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
My Mob Error
Fri, 05/18/2018 - 20:56

So, I've been trying to create a mob for my mod, through a custom model. I import my java file, (package: net.minecraft.src, class: ModelWoodimp) into the custom model importer. This model was made from tabula by the way; but moving on, I load in my model and the animation parts for my mob shows up. All 5 tabs are on "Don't animate" and whenever I try to edit one, it shows no other option than "Don't animate." I moved on anyway without the animation parts, and then tried exporting my mod. It shows that the Woodimp is an error, and I don't know how to solve it. I haven't edited any code, I just followed all steps for the mob. Please help!

Here is my error log from gradle:

C:\Pylo\MCreator179\forge\build\sources\main\java\mod\mcreator\mcreator_woodimp.java:166: error: class, interface, or enum expected
}
^
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.

 

Last seen on 10:39, 20. Apr 2020
Joined Jan 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You probably fixed this…
Mon, 07/16/2018 - 15:09

You probably fixed this error since it was 2 months ago but follow this:

  1. Recreate the steps to get the error
  2. Go to console tab
  3. Click on the long green text 'C:\Pylo\MCreator179\forge\build\sources\main\java\mod\mcreator\mcreator_woodimp.java:166:'
  4. Press edit without locking
  5. Scroll to the bottom if you already haven't
  6. Remove the last curly bracket

This would remove the error and it worked for me, but it might reveal more errors which I'm stuck with now. Hope this helped whoever reading this :D