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]

Is the missable chest in the Mushroom Castle still in the remake? Is the missable chest in the Mushroom Castle still in the remake?

Posted On: November 26, 2023
In the original Super Mario RPG on SNES, there is a missable hidden treasure chest that could only be obtained by jumping on a Toad's head the first time you visit Mushroom Castle. Once you enter ...[More]


Cosmoen Evolution Cosmoen Evolution

Posted On: September 10, 2023
If I evolve a Cosmoen into a Solgaleo, is there a way to get Lunala? Because my goal is to complete the Pokedex, if I evolve my Cosmoen into Solgaleo, what are the ways to get a Lunala? Question fr...[More]


What does this checkmark mean in the course listing screen? What does this checkmark mean in the course listing screen?

Posted On: October 20, 2023
Started playing through the levels and trying to pick up everything I see along the way so I don't have to go back and revisit the levels. First course so far so good. First course complete....[More]


How do you hire a Hacker in Game Dev Story? How do you hire a Hacker in Game Dev Story?

Posted On: April 13, 2024
I'm on my second playthrough of Game Dev Story, choosing the Hire option at least twice per game year and varying between "Word of Mouth", "Magazine Ad", and "Online Ad" — never seen a Hacker availa...[More]


Can anyone explain how time works in this game? Can anyone explain how time works in this game?

Posted On: November 16, 2023
So I had an issue early on that's kinda ruined my experience. When I found the gith woman locked in the cage, I talked the tieflings into moving, but then I couldn't figure out how to target t...[More]


What is the maximum and minimum height of each breed of Minecraft tree? What is the maximum and minimum height of each breed of Minecraft tree?

Posted On: August 8, 2023
I am currently making a universal tree farm in Minecraft, and I need to know the maximum and minimum height of each breed of tree, except for Dark Oak, and the large variations of some trees. Even tho...[More]


How do you upload Pokemon from the Virtual Console versions of R - B - Y to the Pokemon Bank? How do you upload Pokemon from the Virtual Console versions of R - B - Y to the Pokemon Bank?

Posted On: February 13, 2023
I bought Pokemon Blue today from the VC but when I go into Pokemon Bank or Poketransporter I can't find an option to send Pokemon from my copy of Blue into the Bank. How do you upload them? Is ...[More]


How to get past the old man in Viridian City in Pokemon Leaf Green? How to get past the old man in Viridian City in Pokemon Leaf Green?

Posted On: March 20, 2024
It's been a while since I last played Pokémon Leaf green.I am playing it with my nephew and he asked me how to get to first Gym (Brock) to get the Boulder badge.Here is the problem:.An old man is lyi...[More]


What does the red line on the turbine tower mean? What does the red line on the turbine tower mean?

Posted On: March 6, 2024
Some missions in Splatoon 3 Side Order have a turbine tower you need to continually attack and fill with ink to make it move. There is a red line on the tower's container, similar to the line on an in...[More]


Is it possible to play Battlefront 2 with private servers? Is it possible to play Battlefront 2 with private servers?

Posted On: April 15, 2024
I recently purchased Star Wars: Battlefront 2 (2017, Celebration Edition), and I really enjoy playing online. However, I have encountered several hackers. Is there a way for me to setup a server I can...[More]