simpleJson.sk icon

simpleJson.sk -----

Simple way to send jSon to your players




[​IMG]
simpleJson.sk
simpleJson.sk is basically a skript that allows you to make minecraft json a way easier.

For example,
Code (Text):

/json Dezum Hello, did you have a good day ? [text:*&a[Of course!]*;tooltip:*&7You had a good day.*;action:command;value:*/give @p apple*] [text:*[Not really]*;tooltip:*&7You didn't have fun today...*;action:command;value:*/kick Dezum Come back with more fun :P*]
 
will result:


How to use it ?

To use it, you can either type command:
/json <Player> <JSON>
Permission: json.use

OR

Use the function:
sendJson([players], [json])

How to create a JSON ?

Let's take back our example:
Hello, did you have a good day ? [text:&a[Of course!];tooltip:*&7You had a good day.*;action:command;value:*/give @p apple*] [text:*[Not really]*;tooltip:*&7You didn't have fun today...*;action:command;value:*/kick player Come back with more fun :p*]

I took this example because it is complete.
Color meaning:

▀▀▀ Simple text - Text with no effect

▀▀▀ Specifier - text, tooltip, action and value
It is used to specify part of sub json.
text -> For the displayed text
tooltip -> For the text showed when mouse is over the text
action -> On click:

  • command - To run a command
    aliases: cmd, run, run cmd, run command, run_cmd or run_command

  • sugcmd - To suggest a command in player chat
    aliases: suggest command, suggest_command or suggest

  • open url - To open URL to player
    aliases: url
value -> The value of the action

▀▀▀ Value - The value for the action
(Ex: /give @a apple, https://google.com/...)


PLEASE NOTE: In values, I used * as quote. It is used to delimitate values but it is not necessary (except if value contains ;, [, ] or ")... otherwise, it is just clearer.

If you have any issues, please DONT'T report it into reviews, send me a message or open a discussion ;)

If you appreciate this skript, let me know rating this ressource 5 stars, I'd be thankful !

You're not allowed to sell/re-publish this skript. You can mosify it for personal reasons only.
AH4
Resource Information
Author:
----------
Total Downloads: 69
First Release: Aug 21, 2022
Last Update: Aug 21, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings