[SOLVED] The new command system feels annoyingly bugged.

Started by RedWirePlatinum on

Topic category: Troubleshooting, bugs, and solutions

Active 1 day ago
Joined May 2022
Points:
792

User statistics:

  • Modifications: 1
  • Forum topics: 43
  • Wiki pages: 0
  • MCreator plugins: 2
  • Comments: 167
[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
Active 1 day ago
Joined May 2022
Points:
792

User statistics:

  • Modifications: 1
  • Forum topics: 43
  • Wiki pages: 0
  • MCreator plugins: 2
  • Comments: 167
.... 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

Active 1 week ago
Joined Aug 2016
Points:
3304

User statistics:

  • Modifications: 9
  • Forum topics: 63
  • Wiki pages: 20
  • MCreator plugins: 11
  • Comments: 2927
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.

Active 1 day ago
Joined May 2022
Points:
792

User statistics:

  • Modifications: 1
  • Forum topics: 43
  • Wiki pages: 0
  • MCreator plugins: 2
  • Comments: 167
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!