MCreator Plugin Builder - Plugin development made easy

Started by NerdyPuzzle on

Topic category: Plugins and third-party tools

Last seen on 04:54, 6. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MCreator Plugin Builder - Plugin development made easy
Thu, 05/02/2024 - 07:22 (edited)

MCreator Plugin Builder is a program that allows the user to easily create MCreator plugins, only requiring you to know how to code in Java. This concept has been attempted before, but none have so far been as simple to use as this, nor offering as many features.


Disclaimer

This project is not official. It is not affiliated with the respective owners and maintainers of MCreator and Pylo.


Features

MCreator Plugin Builder includes support for various options. Here is a summary of most of its capabilities:

 

Procedure blocks


Procedure mutators

Global triggers


Blockly categories


Datalists


Translations


APIs


Model animations


Mod elements


Git integration


Variable types


Overriding generator templates


Testing in MCreator



These are all of Plugin Builder's capabilities at this time. 

An example plugin project can be cloned using the link https://github.com/NerdyPuzzle/Example-plugin-project.git

The latest version of Plugin Builder can be found here


Changelog

Release 1.8
-Added the option to make new variable types

Release 1.7
-Fixed deleting global triggers or procedures crashing the program
-Fixed global trigger custom dependencies always being lowercase named

Release 1.6
-Fixed a bug that caused procedure template code to replace the code of other procedures
-Procedures can now be coded manually too like global triggers

Release 1.5
-Fixed global triggers not exporting code properly
-Global triggers can now have new custom dependencies
-Improved the procedure template text editor

Release 1.4
-Global triggers and procedures now support the damage source variable
-Global triggers and procedures now save as json in plugin builder projects
-Refactored old hardcoded systems in preparation of new plugin builder features

Release 1.3
-Fixed color selectors generating color codes incorrectly in some cases
-Fixed procedure blocks not working when using statements in some cases
-Fixed the copy code button providing incorrect code for statements
-Fixed procedure blocks not working with custom categories in some cases
-Fixed mod elements not generating java code
-Added the logic, math and text procedure categories
-Mod elements no longer require a manual installation of java 17 to compile

Release 1.2
-You can now make procedure block mutators
-Blockly categories can now be subcategories of other categories
-NeoForge generator is now supported
-Added the missing 2023.4 procedure block categories to procedures
-Fixed some issues with the procedure block gui

Release 1.1
-Some minor UI improvements
-Vanilla templates from the MCreator generator plugins can now be overriden

Release 1.0
-UI theme redesign (minecraft launcher inspired)

Beta 4.3
-Fixed client-side global triggers causing minecraft to not load

Beta 4.2
-Fixed mod elements with spaces in their names not compiling
-Added the option to select base types for mod elements
-Added the option to use procedure selectors in mod elements

Beta 4.1
-Fixed some issues that caused crashes

Beta 4.0
-New mod elements can now be made with plugin builder
(Requires java 17 or newer to be installed in order to compile the java files)

Beta 3.0
-Fixed a small bug in procedure json generation
-Global triggers can now be coded fully manually
-Procedure block field inputs can now include default text

Beta 2.1
-Fixed a bug where procedure block code would generate incorrectly
-Procedure block number inputs can now have floats as default values

Beta 2.0
-Fixed a bug that generated extra unused code
-Added support for java model animation templates

Beta 1.0
-Official release
Edited by NerdyPuzzle on Thu, 05/02/2024 - 07:22
Last seen on 04:54, 6. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No clue how to do that,…
Thu, 04/11/2024 - 20:00

No clue how to do that, sorry.

Last seen on 01:54, 6. May 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey, Why is it considered a…
Sat, 04/13/2024 - 12:07

Hey,

Why is it considered a virus (Trojan horse) ?

Last seen on 06:02, 5. May 2024
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Évistix466 I recovered my…
Tue, 04/16/2024 - 04:02

@Évistix466 I recovered my PC which had been broken for 2 weeks, so the video will be released this weekend.

 

Last seen on 21:24, 5. May 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i've been testing my plugin…
Mon, 04/22/2024 - 21:33

i've been testing my plugin Alpha Apis Trying to fix this error I'm getting and I was wondering if it has something to do with one of the apis or an issue with the plugin builder?

C:\Users\####\MCreatorWorkspaces\alpha_apis_4\src\main\java\net\mcreator\alphaapis\AlphaApis4Mod.java:26: error: cannot find symbol 
@Mod("alpha_apis_4") 
^ 
  symbol: class Mod 
C:\Users\####\MCreatorWorkspaces\alpha_apis_4\src\main\java\net\mcreator\alphaapis\AlphaApis4Mod.java:31: error: cannot find symbol 
    public AlphaApis4Mod(IEventBus modEventBus) { 
                         ^ 
  symbol:   class IEventBus 
  location: class AlphaApis4Mod 
2 errors 
> Task :compileJava FAILED 
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 --info option to get more log output. 
> Run with --scan to get full insights. 
BUILD FAILED in 1m 39s
Last seen on 06:02, 5. May 2024
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
THG, your plugin is not…
Wed, 04/24/2024 - 04:41

THG, your plugin is not compatible with MCreator version 2024.1

You should add the "supportedversions" in your plugin.json between "minversion" and "info", example:

  "minversion": 202100199999,

 "supportedversions": [

   202400115713,

   202400115821

 ],

 "info": 

I tested Craft Tweaker, it works, you have to test them one by one.

Last seen on 09:22, 4. May 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have no idea how you…
Wed, 04/24/2024 - 12:39

I have no idea how you manage to ping me xD

No probleme Doo89, i was a bit confused but i joined your discord and saw that news.

Hope your pc is alright now and no stress, do it when you can 

Have a good day mate ;)

Last seen on 21:24, 5. May 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Doo89 That did not work,…
Wed, 04/24/2024 - 20:04

Doo89 That did not work, this is what my plugin.json look like:

{
  "id": "alphaapis",
  "weight": 30,
  "minversion": 0,
  "supportedversions": [
    202400115713,
    202400115821,
    2024001
  ]
,
  "info": {
    "name": "Alpha APIs",
    "version": "1.2.0",
    "description": "A plugin that adds lots of APIs to MCreator!",
    "author": "TwigYT",
    "credits": "Made with MCreator plugin builder by NerdyPuzzle"
  }
}
Last seen on 06:02, 5. May 2024
Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If it works to detect your…
Thu, 04/25/2024 - 04:19

If it works to detect your plugin in version 2024.1

I tested the first 5 together and I have mixin problems.
You must add in the gradle configuration of your API:

        minecraft {
           runs {
               client {
                   property 'mixin.env.remapRefMap', 'true'
                   property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
               }
           
                server {
                   property 'mixin.env.remapRefMap', 'true'
                   property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
               }
                data {
                   property 'mixin.env.remapRefMap', 'true'
                   property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
               }
           }
       }
 

Last seen on 21:24, 5. May 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, I've seen this before in…
Thu, 04/25/2024 - 12:47

Ok, I've seen this before in LYIVX's API's

Last seen on 21:24, 5. May 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Doo89 I'm not getting the…
Thu, 04/25/2024 - 18:47

Doo89 I'm not getting the same error. But I'm now getting this new error:

FAILURE: Build failed with an exception. 
* Where: 
Script 'C:\Users\####\MCreatorWorkspaces\alpha_apis_4\mcreator.gradle' line: 1 
* What went wrong: 
A problem occurred evaluating script. 
> No signature of method: mcreator_bbb6zaj8lktvmzqixocs9thua.minecraft() is applicable for argument types: (mcreator_bbb6zaj8lktvmzqixocs9thua$_run_closure1) values: [mcreator_bbb6zaj8lktvmzqixocs9thua$_run_closure1@6ca92b2f]

This is what my mcreator.gradle looks like:

minecraft {
           runs {
               client {
                   property 'mixin.env.remapRefMap', 'true'
                   property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
               }
           
                server {
                   property 'mixin.env.remapRefMap', 'true'
                   property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
               }
                data {
                   property 'mixin.env.remapRefMap', 'true'
                   property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
               }
           }
       }

repositories {
    maven { url "https://maven.blamejared.com" }
}

dependencies {
    compileOnly "com.blamejared.crafttweaker:CraftTweaker-neoforge-1.20.4:17.0.9"
	// Plugin Note: CraftTweaker versions can be found here: https://maven.blamejared.com/com/blamejared/crafttweaker/
}


Last seen on 04:54, 6. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mixin refmaps dont exist in…
Thu, 04/25/2024 - 20:24

Mixin refmaps dont exist in neoforge, get rid of the minecraft configurations.

Last seen on 21:24, 5. May 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hay NerdyPuzzle, I did what…
Fri, 04/26/2024 - 00:20

Hay NerdyPuzzle, I did what you said. But now I'm getting this error. Being the creator of the plugin builder would you have any idea what is happening and how to fix it?

> Task :compileJava 
C:\Users\####\MCreatorWorkspaces\alpha_apis_4\src\main\java\net\mcreator\alphaapis\AlphaApis4Mod.java:26: error: cannot find symbol 
@Mod("alpha_apis_4") 
^ 
  symbol: class Mod 
C:\Users\####\MCreatorWorkspaces\alpha_apis_4\src\main\java\net\mcreator\alphaapis\AlphaApis4Mod.java:31: error: cannot find symbol 
    public AlphaApis4Mod(IEventBus modEventBus) { 
                         ^ 
  symbol:   class IEventBus 
  location: class AlphaApis4Mod 
2 errors 
> Task :compileJava FAILED
Last seen on 04:54, 6. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Your gradle caches got…
Fri, 04/26/2024 - 04:57

Your gradle caches got corrupted, this is not related to any plugins.