Programmatically Adding Custom Global Triggers in Java - Seeking Workaround

Started by Azzier on

Topic category: Feature requests and ideas for MCreator

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Programmatically Adding Custom Global Triggers in Java - Seeking Workaround
Tue, 06/20/2023 - 13:21 (edited)

Hello,

I'm curious if it's possible to programmatically add a custom global trigger in Java code without relying on JSON or FTL files as it is normally done. I've discovered a method to add a new trigger, making it selectable in procedures, and I can also inform generator that it's supported. However, I haven't been able to find a way to specify the code that should be generated without using the "triggername.java.ftl" file.

I know that MCreator haven't been designed with this capability in mind, but I'm hopeful that there might be a workaround or something I can attempt :>

Edited by Azzier on Tue, 06/20/2023 - 13:21
The only way to do this is…
Tue, 06/20/2023 - 15:13

The only way to do this is by modifying MCreator's source code directly. However, this is completely and utterly pointless.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Dammit, and the whole…
Tue, 06/20/2023 - 16:48

Dammit, and the whole elaborate plan went to hell :>