Request for a Trigger Block to Add Imports in Custom Code Snippets

Started by dkrdjdi on

Topic category: Feature requests and ideas for MCreator

Joined May 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Request for a Trigger Block to Add Imports in Custom Code Snippets

Hello MCreator Development Team,

I would like to suggest the addition of a trigger block that allows users to include import statements in custom code snippets. Currently, we are unable to manually add import statements within the custom code snippets, and this limitation can be restrictive when working with certain external classes or libraries.

Having a trigger block that would allow us to specify imports directly in the custom code snippet editor would be extremely helpful for more advanced users who need to integrate specific Java packages into their projects.

 

Thank you.


This is how it's likely to work.
https://imgur.com/TxXI330