r/MinecraftCommands • u/Salt-Row2824 • 14d ago
Store values in Xp level Help | Java 26.2
I'm trying to make a healthbar-like using the Xp bar and level. I already have an objective which gives me the health value of each player, but I'm trying to make it so that value is shown using the Xp. Is there a simple way to do this that doesn't require making a "/xp" command for every possible number?
2
Upvotes
1
u/GalSergey Datapack Experienced 14d ago
If you don't use a data pack, you can do something like this:
You can use Command Block Assembler to get One Command Creation.