I was designing a feature for my server using function files and tried using "limit=3" to have it execute a command if there were 3 people with a certain scoreboard value near an armor stand.
Unfortunately, this still triggers with one or 2 people.
It would be awesome to have a "count" target selector to ease up the amount of code instead of macgyver-ing a wonky and complex system to pull the same thing off.
Example: @e[tag=tag,count=3]
Either that or allow the ".." notation to be used in the "limit" target selector.
you could always use the 'successCount' stat...? (I don't know exactly how function files work since my last command block work was in 1.9, but that's how we did it back then)
Thanks! I think it's under "/data success" or something like that. I haven't really had to use successCount before but it sounds like it could do the trick!
I was designing a feature for my server using function files and tried using "limit=3" to have it execute a command if there were 3 people with a certain scoreboard value near an armor stand.
Unfortunately, this still triggers with one or 2 people.
It would be awesome to have a "count" target selector to ease up the amount of code instead of macgyver-ing a wonky and complex system to pull the same thing off.
Example: @e[tag=tag,count=3]
Either that or allow the ".." notation to be used in the "limit" target selector.
Example: @e[scores={score=5},limit=3..]
you could always use the 'successCount' stat...? (I don't know exactly how function files work since my last command block work was in 1.9, but that's how we did it back then)
Creator of Metroid Cubed 3, a Metroid-themed mod! Become a donator today!
Thanks! I think it's under "/data success" or something like that. I haven't really had to use successCount before but it sounds like it could do the trick!