FlashyReese / CommandAliases

Alternate short commands for complex commands
MIT License
25 stars 6 forks source link

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

Open FerranVGithub opened 1 month ago

FerranVGithub commented 1 month ago

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 commented 1 month ago

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.