Help my mob broke

Started by nilek20 on

Topic category: Help with modding (Java Edition)

Last seen on 19:07, 23. Apr 2024
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help my mob broke

i added a custom mob to my mod and it worked perfectly fine. When i went to add a second custom mob i had to rename the java model file because it named it Modelcustom_model.java when i imported it into mcreator and it wanted to name the new model the same thing. after it was renamed the entity failed to compile no mater what i did. i even deleted it and remade it again but it still failed to compile. below is the console log. if anyone knows what is wrong and can help me fix it i would appreciate the help.

Executing
    Gradle task: build

Build
    info: MCreator 2020.5.47520, forge-1.15.2, 64-bit, 16299 MB, Windows 10,
    JVM 1.8.0_265, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk

>
    Configure project :

New
    Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1

>
    Task :compileJava FAILED

C:\Users\kelin\MCreatorWorkspaces\bits_and_bobs_and_weaponry\src\main\java\net\mcreator\bitsandbobsandweaponry\entity\DisplacerBeastEntity.java:83:
    error: cannot find symbol
 
            return new MobRenderer(renderManager, new DisplacerBeast(), 0.5f) {

 
                                                      ^

 
     symbol:   class DisplacerBeast

 
     location: class DisplacerBeastEntity

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. Run with --scan to get full
    insights.

*
    Get more help at https://help.gradle.org

Deprecated
    Gradle features were used in this build, making it incompatible with
    Gradle 5.0.

Use
    '--warning-mode all' to show the individual deprecation warnings.

See
    https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…

BUILD
    FAILED in 3s

1
    actionable task: 1 executed

BUILD
    FAILED

Task
    completed in 7917 milliseconds

Last seen on 19:07, 23. Apr 2024
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So i found the problem and…
Fri, 12/18/2020 - 08:42

So i found the problem and am posting the solution in case anyone else comes across the same issue.

when you go into the file explorer and rename the Modelcustom_model file, you will also have to edit the file and change the name of the file in two places of the code. its fairly self explanatory, you just change the code that says Modelcustome_model to match what you named the file.