#i want to create a custom scoreboard with money and lvl_mineur can i get help please

1 messages · Page 1 of 1 (latest)

inner crescent
#

i want to create a custom scoreboard with money and lvl_mineur can i get help please

karmic crow
random barn
#

@inner crescent use onScreenDisplay.ActionBar

inner crescent
random barn
# inner crescent how can i use thats
const money = world.scoreboard.getObjective("Money").getScore(player);
const lvlm = world.scoreboard.getObjective("lvl_mineur").getScore(player);

player.onScreenDisplay.setActionBar(`Money: ${money}\nLevel Miner: ${lvlm}`)
inner crescent
random barn
#

that was an example of how you'd do it, assuming you had player defined and world imported.

for it to always be on the screen, you'd need to put the onScreenDisplay part in an interval