StarScript+Commands using {}
Describe the bug
Steps to reproduce
- Open up the Meteor Client Menu
- Open Macros
- Create new Macro
- In messages use any command that has brackets in it
- The Meteor Client Confuses the brackets for a starscript opening and I am not able to run the tellraw command
Meteor Version
meteor-client-0.5.7-2086
Minecraft Version
1.20.6
Operating System
Windows
Before submitting a bug report
-
[X] This bug wasn't already reported (I have searched bug reports on GitHub).
-
[X] This is a valid bug (I am able to reproduce this on the latest dev build).
You can write it like this:
.say /tellraw @a {"{"}"text":"Player"{"}"}
This formats to:
.say /tellraw @a {"text":"Player"}
As of the newer starscript versions included in meteor, strings are no longer ended when a different quote mark from the one used to open it is found. That means something like this is now possible:
/tellraw @a {'{"text":"Player"}'}
You can also escape characters in strings with a backslash, so this is also valid:
/tellraw @a {"{\"text\":\"Player\"}"}
Finally, the say command evaluates it's argument as a starscript expression, so using it in a macro will mean that message ends up getting compiled for starscript twice. It also prints commands to the chat instead of actually running them. Don't use it in this situation.