Topic category: Plugins and third-party tools
I want to preface this with I am currently exclusively using Mcreator version 2024.4 because I am currently exclusively making mods for Minecraft version 1.20.1. So if it is possible to make this plugin I would appreciate it if you made it for this version.
First off, Thanks for considering. Next, I would like to say if someone that works on the Mcreator team wants to implement this into the engine that is cool too.
As for the Plugin itself, I'll be honest I don't know if this is something you can make a plugin for but here we go.
The thing I want is to be able to re-order the global variable list, Something I constantly do when making mods is add variables and I can't think of every variable I will use when making a mod and it sucks having them so disorganized. A simple thing like in the Overlay element where you click a button to move them around would be fine enough, but bonus points for being able to drag them around to re-organize them. Also, not sure if this would be something that you would have to program specifically but also if/when you re-organized them, they would appear in that order when you're selecting them within procedure drop downs.
One final thing, if someone knows how to reorganize this list like via editing files please inform me please. I looked through some of the files and found the java file that it creates for them, but it looked to scary to mess with so I didn't lol.
Looks like the variables are stored in the .mcreator file in the root of the mod's directory.
moving them around here actually moved them in mcreator too.
You should close mcreator before modifying it
(and make a backup)
@friyes Thankyou! it actually works
For anyone else who stumbles upon this here is a short tutorial
Go to your mods root folder and find the file that is called: yourmodname.mcreator > right click and hit open with and choose a text editor, if you have a lot of stuff in your mod then ctrl+F is your friend just search for variable and then you can cut/paste them just make sure you follow the correct formatting and indentation, and make sure the last one doesn't have a comma after the "}". Save it and reopen Mcreator. Boom. Variable list is re-orangized.
I'm still open for someone making a plugin/small app that will make this process easier or the Mcreator team implementing it into the engine. For now this will work for me tho. Thanks again @friyes