Will there be "switch cases"?

Started by ShAdOw112 on

Topic category: Feature requests and ideas for MCreator

Active 2 years ago
Joined Mar 2017
Points:
783

User statistics:

  • Modifications: 1
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
Will there be "switch cases"?

So, after making some personal mods I've found out the same problem - too many 'if -> elif -> else" for the same things causes unexpected bugs and headache. That's why I'd have wanted to have "Switch -> case -> default" structure, which could at least solve 'repeating' problems. I know I can replace "if else" by direct coding, but that would be too unpredictable and inconvinient, because I'm used to make mods without keyboard-coding.

Is there any hope we will get "switch-cases" in the following updates?

Active 1 month ago
Joined Mar 2018
Points:
784

User statistics:

  • Modifications: 0
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 48
The situation is similar…
Sat, 06/29/2024 - 10:07

The situation is similar with arrays, although there is a plugin from Goldorion (link) on them. As long as these basic functions are not available, the mods from MCreator will not be as optimized as they could be.

Active 1 minute ago
Joined Jan 2023
Points:
392

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 48
I wish switches will be
Sat, 06/29/2024 - 10:11

I wish switches will be