Is there a basic Tutorial for making a Custom Mod Element for my Java Plugin?

Started by SparkleArts on

Topic category: Plugins and third-party tools

Active 8 hours ago
Joined Feb 2018
Points:
1973

User statistics:

  • Modifications: 1
  • Forum topics: 161
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 784
Is there a basic Tutorial for making a Custom Mod Element for my Java Plugin?

I want to dive into Java Plugin Creation (Custom Mod Elements) but I need a basic Tutorial like what I need before I can everything(Software etc.), Which Classes I need to use etc.

 

Because I have great Ideas for my upcoming Plugin Forge Plus(I think the biggest Plugin that ever existed :P) but I need to know how I can create a Custom Mod Element.

Active 3 days ago
Joined Aug 2016
Points:
3300

User statistics:

  • Modifications: 9
  • Forum topics: 63
  • Wiki pages: 20
  • MCreator plugins: 11
  • Comments: 2932
Download the DemojavaPlugin…
Tue, 10/31/2023 - 20:28

Download the DemojavaPlugin repository (MCR's GH). Then, add a listener for the PreGeneratorsLoading event and register your mod element type there (ModElementTypeLoader#register). Once done, simply add the definition file + templates for the ME to at least one generator, so you can see the ME inside MCR (unsupported MEs are hidden).

Active 8 hours ago
Joined Feb 2018
Points:
1973

User statistics:

  • Modifications: 1
  • Forum topics: 161
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 784
What about the Mod Element…
Sun, 11/12/2023 - 14:57

What about the Mod Element Structure I mean how it is looking?

Is this determined inside the definition file?