Short description:
{"translate": ["block.minecraft.", "stone"]}
should give out block.minecraft.stone ("Stone"), and
{"translate": ["enchantment.level.", {"score": {"objective": "enchlvl", "name": "@s"}}]}
should return enchantment.level. and the player's score in the scoreboard enchlvl. For example, if the player's score is 4, this tag should output enchantment.level.4 ("IV"), if the player's score is 5, then the output should be enchantment.level.5, and so on.
This will greatly simplify the conditions, for example, it will be possible to write
tellraw @s {"translate": ["enchantment.level.", {"score": {"objective": "enchlvl", "name": "@s"}}]}
instead
execute if score @s enchlvl matches 1 run tellraw @s {"translate": "enchantment.level.1"}
execute if score @s enchlvl matches 2 run tellraw @s {"translate": "enchantment.level.2"}
execute if score @s enchlvl matches 3 run tellraw @s {"translate": "enchantment.level.3"}
execute if score @s enchlvl matches 4 ...
especially if the number is in the range from 1 to 15000
Please sign in to leave a comment.
0 Comments