-
Notifications
You must be signed in to change notification settings - Fork 0
Format
This mod reads splashes from a splashes.json
file instead of the splashes.txt
file.
The format is simple:
{
"is_you": true/false (defaults to false),
"normal_splahes": [
"Regular splashes",
"in a string array"
],
"conditional_splashes": [
{
"time": "<time regex>",
"chance": <chance (0-1)>,
"username": "<username regex>",
"minecraft_version": "<version regex>",
"splash": "<splash>
}
]
}
Here's an example:
{
"is_you": false,
"normal_splashes": [
"As seen on TV!",
"Awesome!",
"100% pure!",
"May contain nuts!"
],
"conditional_splashes": [
{
"time": "202.-..-.. ..:..:..",
"chance": 0.5,
"minecraft_version": "1\.1.",
"splash": "this splash only appears half the time, regardless of your username, if the year begins with \"202\" and you're playing in a mc version that starts with 1.1"
}
]
}
You can also use these percent codes in any splash:
%playerName
: The username of the current player.
%playername
: The username of the current player in lowercase.
%PLAYERNAME
: The username of the current player in uppercase.
%minecraftVersion
: The Minecraft version being used.
%s
: The seconds that have passed since 1970-01-01 00:00:00 GMT (unix time)
%C
: The first 2 digits of the current year.
%H
: The current hour.
%M
: The current minute.
%S
: The current second.
%T
: The current time in the HH:MM:SS
format.
%R
: The current time in the HH:MM
format.
%W
: The current week of the year.
%Y
: The current year.
%y
: The last 2 digits of the current year.
%m
: The current month (numeric).
%d
: The current day.
%F
: The current date in the YYYY-mm-dd
format.