[SOLVED] The new command system feels annoyingly bugged.

Started by RedWirePlatinum on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 08:56, 19. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] The new command system feels annoyingly bugged.
Sat, 08/20/2022 - 04:18 (edited)

So, I wanted to re-format my commands so anyone that uses my mod actually sees the available parameters instead of just <arguments>, but DAMN is it unnecessarily annoying to use.
Here are two primary examples I want to share:
Example 1:

Example 1
If I attempt to run a command with "damage" and a number amount, it for whatever reason runs the procedure in "set" instead. (this was before I made the number parameters the same name)
Example 2:
Example 2

If I attempt to run a command with "reset", I get an error because I didn't include a number value although I didn't even include it in this??

 

Also, there *were* procedures instead of empty blocks because I gave up trying to figure out how to get this to work. Maybe it's something I'm just not understanding about this, but jesus christ.

Edited by RedWirePlatinum on Sat, 08/20/2022 - 04:18
Last seen on 08:56, 19. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
.... And i messed up the…
Sat, 08/20/2022 - 03:24

.... And i messed up the pictures.
Example 1:
Example 1

Example 2:
Example 2

In order to use pre-defined…
Sat, 08/20/2022 - 04:04

In order to use pre-defined values (such as your set/reset/damage), you need to use the literal parameter. Currently, you are saying to Minecraft that you want 3 String arguments (named set/reset/damage) at the same place AND they have to be defined by the players, meaning Minecraft has to guess which argument the player actually wants, which is impossible and why you encounter an error.

 

To summarize, in your case, you need to use the literal argument, not the String argument.

Last seen on 08:56, 19. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh, in that case I'm just a…
Sat, 08/20/2022 - 04:13

oh, in that case I'm just a little dumb. Thank you so much!