#i want to create a custom scoreboard with money and lvl_mineur can i get help please
1 messages · Page 1 of 1 (latest)
This question is better for #1067869288859447416 if you are referring to the in-game scoreboard Quick answer: Look into the scoreboard command.
Otherwise, if you are referring to wanting to use a scoreboard-like system without the in-game scoreboard solution, see dynamic properties.
by custom scoreboard he means sidebar
@inner crescent use onScreenDisplay.ActionBar
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}`)
i paste im into my main.js ???
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