custom commands do not work

Started by Daidondevid on Wed, 12/04/2019 - 19:32

Topic category: Bugs and solutions

Last seen on 08:25, 21. Dec 2019
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
custom commands do not work
Wed, 12/04/2019 - 19:32

 

for mysterious reasons the custom commands do not work, the video shows everything

https://youtu.be/NYJReLFiS6k

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You added a "/", which you…
Wed, 12/04/2019 - 21:12

You added a "/", which you shouldn't. It automatically does that for you.

If that hasn't fixed your issue, you can try:

1. Removing the spacebar in the text.

2. Using @p instead of player name (If you are referring to players.)

 

Last seen on 08:25, 21. Dec 2019
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
yes I know, even removing…
Wed, 12/04/2019 - 22:39

yes I know, even removing the / nothing changes. In any case with any command gives me error

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Did you try writing it as: …
Thu, 12/05/2019 - 09:34

Did you try writing it as: "chestfillmessagefalse" instead of "chestfillmessage false"?

Last seen on 20:51, 9. Aug 2020
Joined Jul 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If you haven't solved it yet…
Fri, 07/31/2020 - 16:08

If you haven't solved it yet, you have to have a procedure attached to the command that works in a similar way to this:

So first, the mod element should only have the first word of the command in the "Command Name" slot.  For example, just have "chestfillmessage".

Then, in the attached procedure, drag in the template for "Check command parameter" from the template library.  The basic index value will be 0.  In the equivalent text block, have the desired second word of the command.  For example, "false".

Inside the conditional's "do" portion, have the desired effect of the command.  If you want the command to be more than just two words long, have an identical conditional in this area instead, but increase the command parameter index by 1.  

While this method will allow the in-game command to work with spaces in it, any parameter that is typed after the original command will not autofill.  However, the command will still work.