Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FerranVGithub opened this issue Aug 12, 2024 · 1 comment
Open

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

FerranVGithub opened this issue Aug 12, 2024 · 1 comment

Comments

@FerranVGithub
Copy link

FerranVGithub commented Aug 12, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant