-
Notifications
You must be signed in to change notification settings - Fork 12
Tips
AlexIIL edited this page Jan 29, 2023
·
4 revisions
Tips, for 1.12.2:
- All tips must be stored in the
config/customloadingscreen_tips.txt
file, which is created automatically in 1.5.5 and later versions. - Each line contains a tip. Empty lines, and lines starting with a comment (
#
) are ignored. - Tips can be fetched with the tip related functions
It is generally recommend to use the randomness functions (along with time
) to ensure you get the tips in a random order each launch. For example:
{
"constants": {
"tip_interval": 8.0,
"tip_seed": "generate_seed()",
},
"variables": {
"tip_text": "(has_tips() & tip_interval > 0) ? tip(random_int(tip_seed, floor(time / tip_interval), tip_count())) : ''"
}
}
and then use the variable "tip_text" in text renders.