meteor-client icon indicating copy to clipboard operation
meteor-client copied to clipboard

StarScript+Commands using {}

Open JustaGithubGuy opened this issue 1 year ago • 1 comments

Describe the bug

image image image

Steps to reproduce

  1. Open up the Meteor Client Menu
  2. Open Macros
  3. Create new Macro
  4. In messages use any command that has brackets in it
  5. 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).

JustaGithubGuy avatar Jun 03 '24 22:06 JustaGithubGuy

You can write it like this:

.say /tellraw @a {"{"}"text":"Player"{"}"}

This formats to:

.say /tellraw @a {"text":"Player"}

panpanpro888 avatar Jun 18 '24 13:06 panpanpro888

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.

Wide-Cat avatar Aug 31 '25 12:08 Wide-Cat