Array Idea + visual diagram of how it should be implemented

Started by Ali107 on

Topic category: Feature requests and ideas for MCreator

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Array Idea + visual diagram of how it should be implemented

I know this has been suggested to death, but I am gonna suggest Arrays.

 

This suggestion/feature request has a diagram of how it should be implemented.

 

Arrays will not be yet another local variable type.

Instead it's another dropdown option next to the variable type where you select if you want a normal variable or arrays. Anyway, the reason it's a dropdown instead of a checkbox to see if it's an array, is because it's a future proofing for when we want other kinds of variables kinds like dictionaries or any other kind in fact.

The design is similar to how Unreal Engine handles arrays, and is very intuitive. I used unreal engine as the platform where I first started learning programming related concepts.

diagram explaining the array

 

Arrays in MCreator could act like array list where you could append a variable at the end and remove anyone you specify.

 

This may need special procedure block in charge of setting at specific index for a specific type. Maybe it is gray to indicate that it works on any array, but if you attach your array variable to the index setter, it will take the color of what the array is holding.

 

I highly advice against having an array variable that just holds any kinds of variable type as mix and matching types is too loose, and may lead to issues with development and make procedures way less organized.

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OH YES! I would love that…
Sun, 04/19/2026 - 21:36

OH YES! I would love that. Maybe someone should make a better plugin for this... (the current one is kinda outdated and hard to use).