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]

Missing pushups in UFC Trainer Missing pushups in UFC Trainer

Posted On: March 27, 2023
I am about 3 days into my first 30-day challenge on UFC Trainer and have been getting frustrated that the game isn't picking up all of my push-ups. I can grind out 20 or so in the allotted...[More]


I'm in love with Sebastian in Hogwarts Legacy I'm in love with Sebastian in Hogwarts Legacy

Posted On: April 7, 2023
Please someone tell me I'm not the only one who has fallen in love with the Slytherin boy?. Throughout their early friendship, I felt like he kept flirting, totally discreet, but still flirting...[More]


What does Ominis mean when he says Imelda's quick and not just on a broom? What does Ominis mean when he says Imelda's quick and not just on a broom?

Posted On: July 19, 2023
he says it so cheeky as if it's an insult but the only insulting meaning for quick really only applies to guys and even then generally quick means witty and/or smart. am I misreading his voice or ...[More]


BG3 Community, things just got out hand BG3 Community, things just got out hand

Posted On: May 20, 2024
So the BG3 twitter is in the middle of a drama because you should not get the Astarion scars as a tattoo as it is considered disrespectful and/or downright racist towards the black community because t...[More]


Help? Dark urge question Help? Dark urge question

Posted On: November 13, 2023
So I've told everyone I'm not becoming Bhaals chosen, killed Orins grandfather/father and killed Orin and then did a long rest, got told by the butler that I would become a mindless killer eve...[More]


How to execute a specific item in minecraft How to execute a specific item in minecraft

Posted On: April 26, 2024
I want to make a command executing a tripwire hook when it is thrown in the ground you summon a lighting bolt but it seems you can't add NBT tags in an execute command so how to specify the item I wan...[More]


Best strategy to catch Snorlax on Pokemon Fire Red? Best strategy to catch Snorlax on Pokemon Fire Red?

Posted On: August 27, 2023
I have played Pokémon for many years but have always struggled catching Snorlax without cheats. What are the best strategies to approach catching both of them in Pokémon Fire Red? ...[More]


Will switching fishing rods break my chain in Holocure Save The Fans? Will switching fishing rods break my chain in Holocure Save The Fans?

Posted On: September 26, 2023
When fishing at the Holo House, you catch extra bonus fish if you successfully catch multiple fish in a row. If I switch to a different fishing rod by talking to Bloop, will it break my fishing chain?...[More]


How do I transfer wares for a mission in X4 Foundations? How do I transfer wares for a mission in X4 Foundations?

Posted On: September 1, 2023
How do I transfer wares to finish a mission? I'm docked at the correct ship, but transfer wares is disabled in the menu. I'm at the correct ship:. And I have the antimatter cells in m...[More]


Dwarf Fortress Tree-cutting quota: where to check? Dwarf Fortress Tree-cutting quota: where to check?

Posted On: April 27, 2023
My barony has been scolded by a Elf Diplomat:. You have disrespected the trees in this area, but this is what we have come to expect from your stunted kind. Further abuse cannot be tolerated. Let t...[More]