How To Make Custom Welcome Messages In Vanilla Minecraft?

[BACK]
How To Make Custom Welcome Messages In Vanilla Minecraft?
Posted On: February 3, 2023

I was wondering how to make your own custom welcome messages in Minecraft using command blocks. I want it to replace the regular welcome message to make it look more professional. I am really looking forward to releasing my server in a couple of days so I want to make a good first impression. Thank you!.


Question from user Eton at gaming.stackexchange.com.


Answer:

There is no way to alter the default welcome messages afaik. But you can add your own custom messages after that, using the title command or a custom tellraw message.


Returning player.


To set this up, you'll first need a objective to detect when a player has left the game (run once):.


# 1.12 and below.


/scoreboard objectives add hasLeft stat.leaveGame .


# 1.13 and above.


/scoreboard objectives add hasLeft minecraft.custom:minecraft.leave_game.


This will be on 1 as soon as they log back in. you can then use @a[score_hasLeft_min=1] (1.12 and below) / @a[scores={hasLeft=1..}] (1.13 and above) to target those players.


e.g.


# 1.12 and below.


/title @a[score_hasLeft_min=1] title ["",{"text":"Welcome back!"}].


/execute @a[score_hasLeft_min=1] ~ ~ ~ /tellraw @a ["",{"text":"Welcome back "},{"selector":"@a[score_hasLeft_min=1]"},{"text":" to the server!"}].


# 1.13 and above.


/title @a[scores={hasLeft=1..}] title ["",{"text":"Welcome back!"}].


/execute as @a[scores={hasLeft=1..}] run tellraw @a ["",{"text":"Welcome back "},{"selector":"@s"},{"text":" to the server!"}].


these commands will.


display "Welcome back!" as a title to the player that just logged in and.


display "Welcome back [player] to the server!" in chat, visible for everyone.


make sure to set the score to 0 after you displayed your messages to prevent the chat from being spammed:.


# 1.12 and below.


/scoreboard players set @a[score_hasLeft_min=1] hasLeft 0.


# 1.13 and above.


/scoreboard players set @a[scores={hasLeft=1..}] hasLeft 0.


First time joining player.


The Commands above will only provide a "welcome back" to players that came back for the second time. To target players that log in for the first time the easiest way would be something like this:.


# 1.12 and below.


/execute @a[tag=!firstJoin] ~ ~ ~ /tellraw @a ["",{"text":"A warm welcome to "},{"selector":"@a[tag=!firstJoin]"},{"text":" who joined for the first time!"}].


/scoreboard players tag @a[tag=!firstJoin] add firstJoin.


# 1.13 and above.


/execute as @a[tag=!firstJoin] run tellraw @a ["",{"text":"A warm welcome to "},{"selector":"@s"},{"text":" who joined for the first time!"}] .


/tag @a[tag=!firstJoin] add firstJoin.


Since players join for the first time, they won't have the firstJoin tag. you can execute the tellraw (or whatever) off of that, then add the tag to display the message only the very first time they join the server.


Answer from user Plagiatus at gaming.stackexchange.com.


[BACK]
How To Make Custom Welcome Messages In Vanilla Minecraft?
Posted On: February 3, 2023

I was wondering how to make your own custom welcome messages in Minecraft using command blocks. I want it to replace the regular welcome message to make it look more professional. I am really looking forward to releasing my server in a couple of days so I want to make a good first impression. Thank you!.


Question from user Eton at gaming.stackexchange.com.


Answer:

There is no way to alter the default welcome messages afaik. But you can add your own custom messages after that, using the title command or a custom tellraw message.


Returning player.


To set this up, you'll first need a objective to detect when a player has left the game (run once):.


# 1.12 and below.


/scoreboard objectives add hasLeft stat.leaveGame .


# 1.13 and above.


/scoreboard objectives add hasLeft minecraft.custom:minecraft.leave_game.


This will be on 1 as soon as they log back in. you can then use @a[score_hasLeft_min=1] (1.12 and below) / @a[scores={hasLeft=1..}] (1.13 and above) to target those players.


e.g.


# 1.12 and below.


/title @a[score_hasLeft_min=1] title ["",{"text":"Welcome back!"}].


/execute @a[score_hasLeft_min=1] ~ ~ ~ /tellraw @a ["",{"text":"Welcome back "},{"selector":"@a[score_hasLeft_min=1]"},{"text":" to the server!"}].


# 1.13 and above.


/title @a[scores={hasLeft=1..}] title ["",{"text":"Welcome back!"}].


/execute as @a[scores={hasLeft=1..}] run tellraw @a ["",{"text":"Welcome back "},{"selector":"@s"},{"text":" to the server!"}].


these commands will.


display "Welcome back!" as a title to the player that just logged in and.


display "Welcome back [player] to the server!" in chat, visible for everyone.


make sure to set the score to 0 after you displayed your messages to prevent the chat from being spammed:.


# 1.12 and below.


/scoreboard players set @a[score_hasLeft_min=1] hasLeft 0.


# 1.13 and above.


/scoreboard players set @a[scores={hasLeft=1..}] hasLeft 0.


First time joining player.


The Commands above will only provide a "welcome back" to players that came back for the second time. To target players that log in for the first time the easiest way would be something like this:.


# 1.12 and below.


/execute @a[tag=!firstJoin] ~ ~ ~ /tellraw @a ["",{"text":"A warm welcome to "},{"selector":"@a[tag=!firstJoin]"},{"text":" who joined for the first time!"}].


/scoreboard players tag @a[tag=!firstJoin] add firstJoin.


# 1.13 and above.


/execute as @a[tag=!firstJoin] run tellraw @a ["",{"text":"A warm welcome to "},{"selector":"@s"},{"text":" who joined for the first time!"}] .


/tag @a[tag=!firstJoin] add firstJoin.


Since players join for the first time, they won't have the firstJoin tag. you can execute the tellraw (or whatever) off of that, then add the tag to display the message only the very first time they join the server.


Answer from user Plagiatus at gaming.stackexchange.com.


[BACK]

What are these green and orange dots on the Soviet Installation map? What are these green and orange dots on the Soviet Installation map?

Posted On: August 22, 2023
I am playing Rise of the Tomb Raider on PC. When I press the TAB key, I get the map, and I see (red arrow highlighted) green/orange dots and dotted lines. What do they mean? How can these be use...[More]


How do I check how much weapons have been strengthened by Material Grind? How do I check how much weapons have been strengthened by Material Grind?

Posted On: December 2, 2023
Kaela Kovalskia's Material Grind skill states:. Targets have a x% chance to drop an Ore Deposit, which may be destroyed with Hammer Swing to drop Ore. Gaining 10 of a type of Ore will strengthe...[More]


How did GeorgeNotFound use water on leaves without waterlogging it? How did GeorgeNotFound use water on leaves without waterlogging it?

Posted On: January 15, 2023
You know, placing water on leaves will make them waterlogged. But how GeorgeNotFound placed water on a tree in Minecraft death swap video without waterlogging it? Is it possible? If yes, how? I'...[More]


How does a heavy build work? How does a heavy build work?

Posted On: April 10, 2024
The first time I started the game I picked Wretch. I knew nothing about the game. I quickly started collecting the heaviest equipment available, thinking it must be best. I started grinding the Godric...[More]


How can I reach Whimsyshire, the secret level in Diablo III? How can I reach Whimsyshire, the secret level in Diablo III?

Posted On: April 24, 2014
There's information that there's a secret level in Diablo III, similar to Diablo II's "Secret Cow Level". How can I reach that secret area in Diablo III? Question from user...[More]


Should I turn in sebastion in Hogwarts Legacy? Should I turn in sebastion in Hogwarts Legacy?

Posted On: March 16, 2023
I already learned Avada Kedavra so there's no point for me to keep him around just wondering if there are any underlining consequences to doing so, plus he does say whatever happens he's glad ...[More]


In Star Wars Jedi Which song that Cal listens to on Bracca? In Star Wars Jedi Which song that Cal listens to on Bracca?

Posted On: May 7, 2023
When you start a new game, Cal is listening to a song that,  at least to me, sounds extremely like The Hu. However, I fail to recognize the specific song, and it is not part of the regular s...[More]


How do I activate Sidons water bubble ability in TotK? How do I activate Sidons water bubble ability in TotK?

Posted On: May 17, 2023
I'm currently exploring the Water Temple, where I can reach the water wheels. Now, every guide I've seen so far tells me I need to use the water bubble ability on the water wheels, but none of...[More]


How to you build a moving ship in Minecraft? How to you build a moving ship in Minecraft?

Posted On: June 2, 2023
I've recently become interested in minecraft redstone, and one of my biggest pet peeves is that there is no easy way to move across water apart from using a small boat that is not very practical o...[More]


How to create a free items server in Terraria? How to create a free items server in Terraria?

Posted On: March 7, 2024
I mean like those servers that have chests full of items that never become empty.I am not a game programmer but I think it shouldn't be that hard and I can try it myself.I think they use the TShock se...[More]