[1.10.22] Custom loading texts/topics

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

[1.10.22] Custom loading texts/topics

#1

Post by Lobby »

image.png
image.png (212.77 KiB) Viewed 2076 times
The short messages that are shown on loading screen are called topics. Verison 1.10.22 lets you add your own topics into the game by defining a plugin of type topic. That plugin's text will then be shown if the topic gets displayed by the game.

It's as simple as that :json

Code: Select all    Reset

[ { "id": "$topic_custom_unique_id", "type": "topic", "text":"Some custom text", // Text to show "weight": 10, // 1 by default "color": {"r": 255,"g": 0,"b": 0} // Color, yellow by default } ]
JSON checker
Check
The optional weight attribute can be used to specify the likelyhood of that topic to be shown relative to other topics. The default value is 1. A value of 2 would make it two times more likely for the topic to be shown.

The optional color attribute can be used specify a custom color for you topic. By default the game will use yellow to draw the topic.
 ! Message from: Lobby
Be careful to use a reasonable weight, otherwise your plugins may not get approval.
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 415
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [1.10.22] Custom loading texts/topics

#2

Post by Yakka »

Finally my suggestions was granted :')
But is there a way to make this only shown on specific date of the IRL year?
User avatar
The26
Inhabitant of a Megacity
Reactions:
Posts: 181
Joined: 23 May 2018, 22:18
Location: Lithuania
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [1.10.22] Custom loading texts/topics

#3

Post by The26 »

Is using a weight lower than 1, e.g. 0.2 possible?
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 727
Joined: 17 Jul 2017, 16:16
Location: Philippines
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: [1.10.22] Custom loading texts/topics

#4

Post by Hadestia »

How about an attribute on how often it would display? Around 0.2 would be enough as a max value

Also how about with lua?
User avatar
LightBlue
TheoTown Veteran in Pension
Reactions:
Posts: 946
Joined: 13 Feb 2022, 12:34
Location: Earth
Plugins: Showcase Store
Version: Beta
Contact:

Platform

Re: [1.10.22] Custom loading texts/topics

#5

Post by LightBlue »

what if i change it to "never gonna give you up"?
User avatar
cesareborgia94
Reactions:

Re: [1.10.22] Custom loading texts/topics

#6

Post by cesareborgia94 »

Will be going to do this next time when my laptop is fixed.
Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”