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.
Usage:This resource's original (outdated) description is below.
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!
- json()
- json("<recipient>", "<json text in json.sk notation>")
- Sends a json formatted message to the recipient (accepts @a)
- Alternative:
- json("<recipient>", "<text in json.sk-notation>", <OPTIONAL: color codes boolean>)
- By default, color codes will be converted. If the color codes boolean argument is set to false, json.sk won't convert color codes.
- jsonFormat()
- jsonFormat("<text in json.sk notation>")
- Returns a /tellraw formatted json from the input json.sk notation text.
- jsonColor()
- jsonColor("<text>")
- This function is used by the other json functions to reformat the color codes within the message.
- jsonSanitize()
- jsonSanitize("<text>")
- Returns json-safe text (cancels out all quotation marks)
- removeColor()
- removeColor("<text>")
- Returns text with all & color codes removed.
- Note: this function will not remove color codes that are already converted (not in &# format anymore).
All possible effect tags:
- ttp:
- Appends a hoverable tooltip
- cmd:
- Appends a clickable command
- If not slash is included at the start (/), players will chat a message instead.
- sgt:
- Appends a clickable suggestion
- May be any text (including commands)
- url:
- Appends a clickable url
- If no http:// or https:// is included, json.sk will include http:// automatically
- ins:
- Appends an "insertion", which will add text to a player's chat prompt if they shift click the message
- For more information about insertions, visit http://www.minecraftforum.net/forums/minecraft-discussion/redstone-discussion-and/351959#insertion
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
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
Code (Text):
command /jsonformattingtest:
trigger:
message jsonFormat("I'd love it if this had a hover effect!||ttp:&oOh look, it does!||sgt:/randomcommand")
trigger:
message jsonFormat("I'd love it if this had a hover effect!||ttp:&oOh look, it does!||sgt:/randomcommand")
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
send json of "Have a lovely day!" tooltip "&cClick here for some cake! <3" suggest "/i lied" to loop-player
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
Code (Text):
json("%player%", "Hello...|| ;)||ttp: ;D")
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.
![[IMG]](http://proxy.spigotmc.org/b860a0e9e5b46faad97343623bb6d6f6b017f4f5?url=http%3A%2F%2Fi.imgur.com%2FvHEshoy.png)