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]

How do you get to these chests in Hogwarts Legacy? How do you get to these chests in Hogwarts Legacy?

Posted On: August 22, 2023
In the gatehouse of the High Keep you can see a loft and Revelio reveals some chests up there but I can’t figure out how to reach them. It looks like you should be able to climb this pile of cra...[More]


Do opponents Pokémons Power Points deplete in Pokemon Stadium? Do opponents Pokémons Power Points deplete in Pokemon Stadium?

Posted On: March 22, 2023
I know that in Gen 1 games, the opponent's Pokémon has infinite Power Points. Was this fixed for Pokémon Stadium 1? I tried to search on Google for an answer but couldn't find...[More]


Gear Slot Trauma in Hogwarts Legacy Gear Slot Trauma in Hogwarts Legacy

Posted On: April 11, 2023
I've been playing the story mode, and it seems that my Gear Slot is filled, as a result of which I am unable to open any chests or acquire anything. Can you please advise me what to do? It's r...[More]


If I can only buy games as gifts on Steam and not as keys, where do 3rd party resellers get theirs? If I can only buy games as gifts on Steam and not as keys, where do 3rd party resellers get theirs?

Posted On: October 16, 2023
3rd party game key resellers like Kinguin or G2A sell game keys right? Supposedly the key sellers are just other users. I as a user as well cannot seem to buy keys from Steam though? I can only buy th...[More]


Why would I change my realm layout in Genshin Impact? Why would I change my realm layout in Genshin Impact?

Posted On: October 15, 2023
I recently unlocked the Silken Courtyard realm layout. However I cannot see why I would change to a new layout. None of my furnishings go with me, so I would have to rebuild everything. I tried bef...[More]


What weapon talent tree combination provides the highest dps with the flail and shield? What weapon talent tree combination provides the highest dps with the flail and shield?

Posted On: October 14, 2023
New World has a new expansion, and with it, a new weapon. I've been having a lot of fun with it and am still playing around with combinations. With most of the other weapons in the game, I'...[More]


How can I easily revert a starter deck to its original state? How can I easily revert a starter deck to its original state?

Posted On: January 14, 2023
In Yu-Gi-Oh! Master Duel, after the tutorial, you are to choose between three starter decks: Power of Dragons (classic gameplay), Synchro of Unity, (synchro focused gameplay), Link Generator, (link fo...[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]


How to quit an online match? How to quit an online match?

Posted On: March 6, 2024
I'm trying to run for the Platinum trophy before the server closure, so I'll soon start to get game modes I don't need anymore, and I don't want to waste my time.Is there a way to leave an online matc...[More]


What's the most visually satisfying effect or ability? What's the most visually satisfying effect or ability?

Posted On: October 16, 2023
What abilities or effects are the most appealing visually for you? My top contenders divine smite and fireball. Smite especially when it's an unexpected smite on a crit. Not knowing it's co...[More]