HomeJavaMods[Abandoned] json.sk
[Abandoned] json.sk
This script is no longer maintained and is considered deprecated. Use Skript's own builtin JSON text (found here: https://skriptlang.github.io/Skript/text.html).

This resource's original (outdated) description is below.

This script is intended for use with the Skript plugin (version 2.2)
[​IMG]
[​IMG]
[​IMG]
[​IMG] __ [​IMG]

[​IMG]
Usage:

If you don't know how to use Skript 2.2's functions, please view this tutorial.
Make sure this script loads before all other scripts in order to access its functions!


[​IMG]

All possible effect tags:



[​IMG]


Examples:

Code (Text):
command /jsontest:
    trigger:
        json("%player%", "&7&oHello, this is a &bsample json&7.||ttp:&bI'm a tooltip for the first cluster.|| There's no tag, so I've started a new cluster.||cmd:/ping||ttp:&6&o&lCLICK&f for /ping")
#           |_________|  ||___________________________________|  |________________________________________||||_____________________________________________|  |_______|  |_________________________||
#            recipient   |            Average Text                                Tooltip                  ||                 Average Text                   Run Command           Tooltip          |
#                        |_________________________________________________________________________________||_______________________________________________________________________________________|
#                                                       JSON Cluster #1                                                                           JSON Cluster #2
 
Results:
[​IMG]
[​IMG]

Code (Text):
command /jsonformattingtest:
    trigger:
        message jsonFormat("I'd love it if this had a hover effect!||ttp:&oOh look, it does!||sgt:/randomcommand")
Results:
[​IMG]



[​IMG]


Json.sk compared to SkQuery Syntax:

Example 1:

SkQuery: (broken on spigot 1.8.3+)
Code (Text):
loop all players:
    send json of "Have a lovely day!" tooltip "&cClick here for some cake! <3" suggest "/i lied" to loop-player
json.sk: (works with Skript 2.2)
Code (Text):
json("@a", "Have a lovely day!||ttp:&cClick here for some cake! <3||sgt:/i lied")

Example 2:
SkQuery: (broken on spigot 1.8.3+)
Code (Text):
send json of "Hello..." then " ;)" tooltip " ;D" to player
json.sk: (works with Skript 2.2)
Code (Text):
json("%player%", "Hello...|| ;)||ttp: ;D")
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

[Abandoned] json.sk is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10. Downloaded 18,563 times (via Spigot). Download it and open it directly in the game.

Explore more