Started by
Ondre
on
Topic category: Help with MCreator software
Commands created using Text command preset have no arguments syntax highlighting and says [<arguments>] what ever you type in it.
Like on screenshot below:
And here is the normal way of argument syntax highlighting:
So there is any way to make it possible to add arguments highlighting?
Current commands don't have a real argument support. It is only a single argument where you cant get a word. This is why you see <argument>(it's the name Klemen gave it). It will be fixed with https://github.com/MCreator/MCreator/pull/929
Thank you for reply!
I we looked into command class, and already saw
That getting parsed to get arguments indexes // pretty crutchy implementation))))
So i decided to rewrite that code in to this:
Well i get a good result
I don't quite sure why there is 2 same .executes() in generated code, but in source references only one.
Then i decided to change function to highlight number after player name:
(int also not working)
Do you have any ideas what is wrong?