Inbuilt Return for Conditions in Overlays & GUIs

Started by Mecho on

Topic category: Feature requests and ideas for MCreator

Last seen on 00:06, 17. Oct 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Inbuilt Return for Conditions in Overlays & GUIs

In overlays and GUIs, if you want an object to show/hide or display text, return an entity or whatever, you have to make a procedure. This means that if you want to create an overlay that represents a variable, such as a new bar (e.g. a stamina meter, an animation or a countdown), you need tons of just simple procedures (such as if variable = 1 then return true).

Not only does this take a lot of time to make all the procedures, it also clogs up the procedure list, which (even since the introduction of searching for procedures) makes it rather confusing to find the procedure that you want.

What I pitch is this: For every object in an Overlay or GUI where it has a condition (such as text, Boolean or entity), you can also build the return value with access to all the blocks in the Logic, Math and Text section. This (while may not make the process faster) at least ensures that there aren't so many procedures clogging up the procedures list. Of course, you can still use procedure returns for more complex returns.

 

Examples