Coins HUD above the hotbar
Shows each player their own coin balance above the hotbar at all times, using a scoreboard and titleraw.
You need
- 1 repeating command block
1Create the score
/scoreboard objectives add coins dummy CoinsCreates a score called coins that only commands can change.
/scoreboard players add @a coins 0Gives everyone a starting value so the HUD has something to show.
2Show it
One repeating block, Always Active.
/titleraw @a actionbar {"rawtext":[{"text":"§6Coins: §f"},{"score":{"name":"*","objective":"coins"}}]}Writes "Coins: <number>" on the action bar. The name * means the player who is reading it.
3Pay players
Use these wherever a player should earn or spend coins.
/scoreboard players add @p coins 10Gives the nearest player 10 coins.
/scoreboard players remove @p coins 5Takes 5 coins away.
/execute as @a[scores={coins=100..}] run say I have 100 coinsRuns a command only for players with 100 or more.
No command blocks? Use the function pack
This creation is included in the free 9Minecraft Command Creations behavior pack. Add the pack to your world, then type one command. It does the same thing as the command blocks above, driven by a tick function.
/function n9/coins_hud_actionbar_onTurns it on. All the setup commands from the steps above run for you.
/function n9/coins_hud_actionbar_offTurns it off again.
How it works
In rawtext, a score component with the name * is filled in separately for every player who receives the message, so one command shows each player their own number. The action bar fades after about two seconds, which is why the block repeats.
Make it your own
- Add more parts to the rawtext to show two scores, for example kills and deaths.
- Change §6 and §f to other color codes. The tellraw generator on this site builds the JSON for you.
Turn it off
/scoreboard objectives remove coinsDeletes the score and every balance stored in it.
Commands used
More command creations
Countdown timer on screenA seconds countdown shown to every player that ends with a big "Time is up" title. Built from one scoreboard and five command blocks.Advanced HUD · 9 commands · videoFlower trailFlowers grow wherever a tagged player walks on grass.Easy World · 3 commandsIce bridge under your feetWater turns to ice in a 3 by 3 square under the player, so tagged players can walk across lakes and oceans.Easy Gameplay · 3 commandsJump pads and speed padsStep on an emerald block to be launched into the air, or on a gold block for a burst of speed.Easy Gameplay · 4 commandsLow gravity roomInside a box-shaped room, players jump high and float down slowly, like on the Moon.Easy Gameplay · 3 commands
Particle halo above every playerA ring of glowing end rod sparks floats above the head of every player and follows them around.Easy Particles · 10 commands · videoMore from 9Minecraft
Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.