I have a scoreboard objective that holds a value (0-20).
I want to set this value to the attribute max health (or so?) of the player, i tried around with the attribute function but could not achieve to fetch the scoreboard value.
However you can use another programming language (like python) to generate for you values that correspond to the score.
execute as @a if score @s health_scoreboard matches 1 run attribute...
It wont be laggy at all as it is just checking for scoreboard scores before continuing. Scores are one of the most efficient and optimised things in minecarft
Hello,
I have a scoreboard objective that holds a value (0-20).
I want to set this value to the attribute max health (or so?) of the player, i tried around with the attribute function but could not achieve to fetch the scoreboard value.
is this possible?
No you cannot fetch scores -> attributes
However you can use another programming language (like python) to generate for you values that correspond to the score.
It wont be laggy at all as it is just checking for scoreboard scores before continuing. Scores are one of the most efficient and optimised things in minecarft
How could i implement python?
Literally run a for loop with the attribute and corresponding score as a variable.
Print everything including the variable in the format of the command i wrote above, and then copy the output over to the mcfunction
Or just copy and paste it many times