How can I use tellraw when a person's score goes up or down?
//ads -- adsterra.com -- native banner
?>
I have a scoreboard objective, EMERALDS, that automatically changes based on the number of emeralds in a player's inventory.
When a person gains/loses a point I want to display a /tellraw to the player saying "Gained/Lost An Emerald". How can I do this?
Best Answer
I believe you could use the /testfor command like so:
/testfor @p[score_Emeralds=2,r=1000]
And you could testfor each score then connect the /testfor command to a comparator which would activate the /tellraw command.
Pictures about "How can I use tellraw when a person's score goes up or down?"



How do you use the Tellraw command?
How to Enter the CommandMinecraft Tellraw Command [1.19] Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Pixabay, Andrea Piacquadio, RF._.studio, Sebastiaan Stam
