So i want to give the player a custom sword and have the chat privately tell them "You have received ..." Is there a way to do that with command blocks?
/say isnt quite what i'm looking for
sort of like in mcmmo when you level up and it tells you in chat
If you aren't too afraid of the scoreboard, this assumes the player has just completed a sort of custom achievement (not to be confused with actual achievements).
# Creates a score of how many mobs you've killed, used as a sort of achievement
So i want to give the player a custom sword and have the chat privately tell them "You have received ..." Is there a way to do that with command blocks?
/say isnt quite what i'm looking for
sort of like in mcmmo when you level up and it tells you in chat
Have you considered using the command /title?
https://www.digminecraft.com/game_commands/title_command.php
If you aren't too afraid of the scoreboard, this assumes the player has just completed a sort of custom achievement (not to be confused with actual achievements).
# Creates a score of how many mobs you've killed, used as a sort of achievement
/scoreboard objectives add mobKills stat.mobKills Mobs Killed
# The score tracking whether or not you've given a player a Power Sword
/scoreboard objectives add powerSword dummy
# Initialize all players' powerSword scores - required for the scoreboard to track this score for them
/scoreboard players set @a powerSword 0
# When you're ready to give player's who've killed enough mobs a Power Sword...
/give @a[score_mobKills_min=100,score_powerSword=0] diamond_sword
/scoreboard players set @a[score_mobKills_min=100,score_powerSword=0] powerSword 1
You could also do this using tags, replacing the powerSword score with a PowerSword tag.
/give @a[score_mobKills_min=100,tag=!PowerSword] diamond_sword
/scoreboard players tag @a[score_mobKills_min=100,tag=!PowerSword] add PowerSword