[OUTDATED TUTORIAL] How to correctly install Animations+ (If you are getting an error!)

Started by NerdyPuzzle on Tue, 10/04/2022 - 19:13

Topic category: User side tutorials

Last seen on 11:13, 3. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[OUTDATED TUTORIAL] How to correctly install Animations+ (If you are getting an error!)
Wed, 10/05/2022 - 20:50 (edited)

Well, if you are here, that means you have installed Animations+ incorrectly and you are getting an error. Don't worry, you're not to blame.

 

Usually, plugins are installed by clicking the load plugin option in the Manage Plugins section of Mcreator preferences. 

In our case, we don't want to load the plugin there.

dont do this

If you have already installed the plugin, make sure to delete it, as we will be placing it in a different location.

delete this

Now that you have deleted the incorrectly installed plugin, what's next?

 

Well, you will need to head over to your desktop, where the MCreator.exe shortcut is located. Once you've found it, right click it, and select Open file location as show below:

location

Now, you need to make sure that the exe you have opened leads to the correct version of MCreator. If it does not, you will need to find the folder for the exe of MCreator 2022.1+

 

You should now be seeing another plugin folder. This is the correct location the plugin requires to work. Place the plugin there:

correct folder

 

Great, you should now have solved the error! Enjoy your new animations :)

Edited by NerdyPuzzle on Wed, 10/05/2022 - 20:50
Last seen on 11:10, 3. Dec 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I am still getting issues. I…
Tue, 10/04/2022 - 20:19

I am still getting issues. I deleted the installed plugin and put it in the plugins folder in my mcreator.exe directory but it is still producing errors.

Last seen on 11:13, 3. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is it the directory that has…
Tue, 10/04/2022 - 20:23

Is it the directory that has the version you use? Can you also share the error?

Last seen on 11:10, 3. Dec 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes the directory is same…
Tue, 10/04/2022 - 20:28

Yes the directory is same version(2022.2). 

This is the error:

--------------------------------------------------------

C:\Users\45435354\MCreatorWorkspaces\modeltestworkspace\src\main\java\net\mcreator\modeltestworkspace\client\model\Modelbird.java:93: error: cannot find symbol 
      this.rightwing.xRot = (EndMath.sin(ageInTicks * 0.6F) * 0.6F); 
                             ^ 
  symbol:   variable EndMath 
  location: class Modelbird<T> 
  where T is a type-variable: 
    T extends Entity declared in class Modelbird 
C:\Users\45435354\MCreatorWorkspaces\modeltestworkspace\src\main\java\net\mcreator\modeltestworkspace\client\model\Modelbird.java:94: error: cannot find symbol 
      this.leftwing.xRot = (EndMath.sin(ageInTicks * 0.6F + 3) * 0.6F); 
                             ^ 
  symbol:   variable EndMath 
  location: class Modelbird<T> 
  where T is a type-variable: 
    T extends Entity declared in class Modelbird 
2 errors

-----------------------------------------------------------------------------------------------------------------------------------------

 

 

 

Last seen on 11:10, 3. Dec 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This is the directory where…
Tue, 10/04/2022 - 20:29

This is the directory where I put the plugin [C:\Program Files\Pylo\MCreator\plugins]

Last seen on 11:13, 3. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well I have no idea why this…
Tue, 10/04/2022 - 20:38

Well I have no idea why this happens for you. But there is a manual solution to this.

 

Open your workspace folder, and inside the folder where you find the first .Java file, make a new file and name it EndMath.txt

Then, male a custom element variable and copy the package that will generate, paste it inside the text file and delete the custom element.

 

Then paste the code below under the package:

 

import net.minecraft.util.Mth;

import java.util.Random;

public class EndMath extends Mth {

    public static boolean inRange(int value, int min, int max) {
        return value >= min && value <= max;
    }

    public static boolean inRange(float value, float min, float max) {
        return value >= min && value <= max;
    }

    public static boolean inRange(double value, double min, double max) {
        return value >= min && value <= max;
    }

    public static boolean inAverage(int value, int average, int range) {
        return value >= average - range && value <= average + range;
    }
}

 

Rename the EndMath.txt to EndMath.java

Last seen on 11:13, 3. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I mean a custom element in…
Tue, 10/04/2022 - 20:38

I mean a custom element in mcreator, not a variable.

Last seen on 11:13, 3. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Also, you need to name the…
Tue, 10/04/2022 - 20:39

Also, you need to name the custom element EndMath too to get the correct package name

Last seen on 11:13, 3. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Actually, you need to make…
Tue, 10/04/2022 - 20:43

Actually, you need to make the file in the same folder that the custom EndMath element you make generates.

Last seen on 11:10, 3. Dec 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The custom element seemed to…
Tue, 10/04/2022 - 20:44

The custom element seemed to have fixed it. It's not producing errors when using the animations

Last seen on 11:13, 3. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yeah, make sure you actually…
Tue, 10/04/2022 - 20:44

Yeah, make sure you actually make the element like I told you by copying the stuff in a text file, not mcreator's custom element, since the exported mod won't load with it.

Last seen on 11:10, 3. Dec 2022
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Alright I'll be sure to do…
Tue, 10/04/2022 - 20:46

Alright I'll be sure to do that

Last seen on 11:13, 3. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Also, just gonna leave this…
Tue, 10/04/2022 - 20:48

Also, just gonna leave this here for future reference:

If you encounter the same issue in 1.16, you will need to do the same method except the code will be this instead:

 

import net.minecraft.util.math.MathHelper;

import java.util.Random;

public class EndMath extends MathHelper {

    public static boolean inRange(int value, int min, int max) {
        return value >= min && value <= max;
    }

    public static boolean inRange(float value, float min, float max) {
        return value >= min && value <= max;
    }

    public static boolean inRange(double value, double min, double max) {
        return value >= min && value <= max;
    }

    public static boolean inAverage(int value, int average, int range) {
        return value >= average - range && value <= average + range;
    }
}

Not sure why this plugin…
Wed, 10/05/2022 - 16:11

Not sure why this plugin requires this, but usually plugins should not be installed in the core plugins folder. Just a heads-up

Last seen on 11:13, 3. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't know, but it…
Wed, 10/05/2022 - 16:20

I don't know, but it replaces the generator.yaml in which I add the template for the EndMath element, so that's probably what's causing it.