Chat & Formspec Formatting

User avatar
octacian
Member
 
Posts: 408
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian

Chat & Formspec Formatting

by octacian » Mon Jul 04, 2016 05:10

I've got several questions about manipulated colour and server messages displayed via the chat through mods, as well as formspec text.

Can/how can I make chat messages bold or use colours? I'd really like this for my mod (servertools) which implements a chat filter for which I'd like more obvious warnings.

The server sends some messages to the chat by default (such as Kicked ...), how can I replace these with my own custom messages? I always would like to change the server welcome message. If needed I can find both of these by looking at other mods, but if someone knows off hand that would probably be quicker.

Is there a formspec element that allows showing plain text rather than textareas and such? I can use a table, and it might even work better, but I'd like to know anyway for future reference.

How can I update the same formspec to contain new data?
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 

KCoombes
Member
 
Posts: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

Re: Chat & Formspec Formatting

by KCoombes » Mon Jul 04, 2016 12:16

endev15 wrote:-snip-
I always would like to change the server welcome message.
-snip-


from minetest.config.example;

# Message of the day displayed to players connecting.
# type: string
# motd =
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron