CommandAliases icon indicating copy to clipboard operation
CommandAliases copied to clipboard

Commands with {}, [] and // in it, .json

Open FerranVGithub opened this issue 1 year ago • 1 comments

How would i format a command that has structure with those symbols

My current .json:

  "schemaVersion": 1,
  "commandMode": "COMMAND_CUSTOM",
  "command": "renew",
  "actions": [
      {
          "command": "tellraw @s {"text":"[Renew] Click here to go to the renew page of the server","color":"light_purple","clickEvent":{"action":"open_url","value":"https://mylinkgoeshere"},"hoverEvent":{"action":"show_text","contents":{"text":"https://mylinkgoeshere"}}}",
          "commandType": "CLIENT"
      }
  ]
}```

FerranVGithub avatar Aug 12 '24 19:08 FerranVGithub

And also, I've tried running a /function command with a datapack that will run the tellraw but then the server just crashes whenever the command is executed.

FerranVGithub avatar Aug 13 '24 08:08 FerranVGithub