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 is the Mod Power Requirement? What is the Mod Power Requirement?

Posted On: August 2, 2023
Now I have completed the tutorial boss I have the chance to craft a mod for my weapon. Here is one of the options. This one has a 'Mod Power Requirement' of 600. What is this requirement an...[More]


How can I make a Custom Potion in Minecraft Bedrock Edition? How can I make a Custom Potion in Minecraft Bedrock Edition?

Posted On: January 24, 2023
Java Edition has a feature allowing one to make potions with any effect, duration and color. Can I do this in Bedrock Edition? Question from user Penguin at gaming.stackexchange.com. Answer: ...[More]


How does air intake work in Kerbal Space Program? How does air intake work in Kerbal Space Program?

Posted On: April 3, 2023
I've just started building planes and am confused about the way air intake works. For instance, the J-90 "Goliath" Turbofan Engine is specified to consume a whopping 132.272 Air/sec whil...[More]


Command to say player coords in chat? Command to say player coords in chat?

Posted On: January 28, 2023
Trying to get a command that tells a player's coords in chat. I have a working command: /data get entity @s Pos, but I assume I would need to combine this with /tellraw?Question from user Aceplante at...[More]


Does dying in Richter Mode end my run in Dead Cells? Does dying in Richter Mode end my run in Dead Cells?

Posted On: April 8, 2023
I unintentionally started Richter Mode by freeing Richter then later examining his cage. Now I'm playing as Richter in a different area without any of my items or upgrades. If I die as Richter ...[More]


Why is this Electrolyzer and Hydrogen Generator combo unsustainable? Why is this Electrolyzer and Hydrogen Generator combo unsustainable?

Posted On: April 13, 2024
I have this small Electrolyzer + Hydrogen Generator setup in my base:.The Electrolyzer says it generates 112 g/s of Hydrogen, while the Hydrogen Generator states it needs 100g/s of Hydrogen to functio...[More]


Consequences of poor performance early in the campaign Consequences of poor performance early in the campaign

Posted On: December 4, 2023
In vanilla DoW2's campaign, does wasting time before the Tyranids show up have any consequences? A friend and I have been playing vanilla DoW 2's coop campaign mode. However, we screwed up ...[More]


What parts of the ending may change in Zelda Tears of the Kingdom? What parts of the ending may change in Zelda Tears of the Kingdom?

Posted On: June 15, 2023
Just like in BotW, the ending is probably modular, lots of things may or may not be there depending if you did something or not. (Staying vague so if someone that hasn't finished the game opens th...[More]


Are my Assassins Creed experience levels bugged? Are my Assassins Creed experience levels bugged?

Posted On: July 8, 2023
I'm confused. In Assassins Creed: Revelations I have lots of assassins which I've sent off on missions, however their XP to next level is less than their current XP (i.e, XP of 13k, next level...[More]


Why do I have to hold down twice to activate this special attack in PokemonGo? Why do I have to hold down twice to activate this special attack in PokemonGo?

Posted On: July 20, 2023
This has been bothering me recently: when my special attack is ready, why do I have to 'hold down' twice to activate it? Yes, sometimes I only have to do it once but the majority of the time I...[More]