Math Utils 1.0.0 [Forge 1.19.2 / 1.19.4 / 1.20.1 / NeoForge 1.20.4]

Supported MCreator versions
2023.4
2024.1
Tags / plugin type
Procedures
Variables
Math Utils
Downloads:
1392
Upvotes: 20
About the plugin

This plugin adds utils for complex calculations.

 

Vector

Vector is a variable, which can have 3 numbers. The procedure "Create vector" allows you to create a vector from 3 numbers.

In order to get each of numbers, use the procedure "Get X/Y/Z of vector."

 

To do easy operations for vectors, these procedure are available.

The operations are done for each X/Y/Z component of numbers in vectors. For example, "(0, 1, 2) + (3, 4, 5)" is "(3, 5, 7)."

 

For mathematical calculations, the following procedures are available.

For X/Y/Z coordinates and yaw/pitch angles, these follow Minecraft's coordinate system.

 

Vector List

Vector List allows you to store vectors using arrays.

In order to manage vectors, Index numbers are required.

 

Vector Map

Vector Map allows you to store vectors using string keys.

 

Random Source

Random Source is required to get random numbers. Seeds allow you to get those with the same sequence of numbers.

 

Information:

This plugin supports Forge 1.19.2 / 1.19.4 / 1.20.1 / NeoForge 1.20.4

This plugin supports MCreator 2023.4 or above

License
MIT License

Plugin downloads
Math Utils 1.0.0 for MCreator 2023.4 - Forge 1.19.2 / 1.19.4 / 1.20.1 - MathUtils-1.0.0-2023.4-1.19.2-1.19.4-1.20.1.zipUploaded on: 05/28/2024 - 12:42   File size: 146.06 KB
Math Utils 1.0.0 for MCreator 2024.1 - Forge 1.19.2 / 1.19.4 / 1.20.1 / NeoForge 1.20.4 - MathUtils-1.0.0-2024.1-1.19.2-1.19.4-1.20.1-1.20.4.zipUploaded on: 05/28/2024 - 12:43   File size: 179.21 KB

Comments

I have been using this plugin for quite a while, and it's honestly the best one on here in my opinion. I don't even use the majority of the functions of the plugin like interpolation and dot products and all that. Just having the ability to save vectors as a variable and even a vector list, is quite a treat. I can see how other plugins may be considered better, like the Geckolib plugin, but the fact is that this plugin uses a much more necessary feature to the development of a mod that even newbies to the community can figure out. I am purposefully holding back on updating my MCreator until I know that this plugin works on 2024.1, or is updated to 2024.1.
If anyone knows that this plugin works on 2024.1, then it would be nice if you could let me know.
Thanks for making this!

I have no idea why this isn't in base MCreator, it's soo useful! A lot better than Arrays lol

The problem with this is that theres no tutorial of how to use it so i am kinda of confused

I have both this and Additions installed on 2023.2, but none of the generators are being recognized....
Anything specific I have to do to load this plugin?

Oh my god this is literally exactly what I need. I'm trying to make a "dodge" script and the forward/back keys work fine but the left/right dodges don't, since I have no idea how to convert look angles to euler angles and then rotate them.

I am having some trouble with that, I just need to rotate the look x & y values -90 but I can't put the rotate block into vx on the override motion vector, only Get (X,Y,Z) which pushes the player towards the X coordinates, not based upon look direction.

this looks interesting, but I think it is a missed opportunity to maybe be able to extract the location based data of blocks and entities.

This looks interesting, any examples on how to use it visually outside of vector formulas would probably be quite nice to have on the page!