1

How do I detect the distance/radius equal to a score in minecraft 1.13

SwiftNinjaPro's Avatar SwiftNinjaPro10/27/18 2:45 pm
1 emeralds 185 1
10/28/2018 9:35 am
ShelLuser's Avatar ShelLuser
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?

Posted by SwiftNinjaPro's Avatar
SwiftNinjaPro
Level 42 : Master Engineer
10

Create an account or sign in to comment.

1

1
10/28/2018 9:35 am
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome