1
How do I detect the distance/radius equal to a score in minecraft 1.13
I can not seem to find any search results related to this question. How do I detect the distance/radius equal to a score?
example:
/scoreboard objectives add Score dummy
/scoreboard players set FakePlayer Score 10
/execute as @a[distance=..Score]
or
/execute as @a[distance=..{FakePlayer Score}]
Is there any solution or workaround to this?
example:
/scoreboard objectives add Score dummy
/scoreboard players set FakePlayer Score 10
/execute as @a[distance=..Score]
or
/execute as @a[distance=..{FakePlayer Score}]
Is there any solution or workaround to this?
Create an account or sign in to comment.
1
1
Can't be done. The problem is that Minecraft doesn't know the concept of variables, the thing which you do have in regular programming (or scripting) languages.
The workaround would be to add commands which check for each value(s) of the score you need and apply the command you want to execute in a static way.
The workaround would be to add commands which check for each value(s) of the score you need and apply the command you want to execute in a static way.