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 I skip the Opening Intro Videos without clicking? How do I skip the Opening Intro Videos without clicking?

Posted On: January 14, 2023
When you start Rocket League, there are 2 annoying videos that start every time you launch the game, you can skip them by clicking the mouse button, but I'd like to skip them all together. Is i...[More]


Do unclaimed weapons Zelda Tears Of The Kingdom change after every Blood Moon? Do unclaimed weapons Zelda Tears Of The Kingdom change after every Blood Moon?

Posted On: June 6, 2023
I have been trying to find a pristine Zora Spear from the Depths, but every 'Shadow Soldier' that I find carrying a spear beneath the Zora's Domain doesn't have it. I tried saving a...[More]


STUCK Lvl 39. 100% STUCK Lvl 39. 100%

Posted On: September 11, 2023
PLEASE HELP. I haven’t seen any recent posts on this issue so I’m am reaching out. . I have completed HL to 100%. And I mean 100%, on EVERYTHING. There is no room for any more XP - not ...[More]


Where is Anduin actually? Where is Anduin actually?

Posted On: July 29, 2023
I played Shadowlands a little bit at the end so I am not familiar with much that happend in that expansion. I am now leveling my second character in Dragonflight. I am at the Stormwind docks and sa...[More]


Minecraft(on MAC) has Hotbar Scrolling issue Minecraft(on MAC) has Hotbar Scrolling issue

Posted On: June 17, 2023
I have Minecraft installed on my new Mac but there is an issue with the scrolling in the Hotbar. I have to scroll multiple times just to move forward one slot. I used to play Minecraft on Windows but ...[More]


What is this item and what is it for? What is this item and what is it for?

Posted On: April 26, 2024
I've seen this item a number of times now, but I can't seem to pick it up.Is this an actual weapon or item? It looks like a circular saw of some sort. I can't seem to pick it up at all, but since I'v...[More]


How to catch Latios and Latias? How to catch Latios and Latias?

Posted On: September 20, 2023
I'm starting to play Pokemon Emerald! How can I catch or encounter Latios or Latias in the game? I want this Pokemon so bad! This is my childhood Pokemon because it can one shot Rayquaza! So cool!...[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]


How can I complete Desert Snakes in Forza Horizon 5? How can I complete Desert Snakes in Forza Horizon 5?

Posted On: April 3, 2023
I have been trying to complete the challenge in Forza Horizon 5 Rally Adventure, but although the timer starts when I leave Valle de Foráneos, I do not get a waypoint to follow. I have tried...[More]


What does a plus cells and gems icon on the Dead Cells world map mean? What does a plus cells and gems icon on the Dead Cells world map mean?

Posted On: April 18, 2023
During a run with 2 Boss Stem Cells enabled, I noticed something odd on the World Map screen. The box for the Ossuary biome had icons of cells, gems, and a plus sign over it. When I died and started a...[More]