#Detect if set amount of entities nearby

1 messages · Page 1 of 1 (latest)

glad galleon
#

Is there a way to detect if there is a set amount(8) entities in the nearby area? Not liek if there is one to eight, but if there is no more, no less?

spark hornetBOT
#
**Someone will come and help soon!**

💬 While you wait, take this time to provide more context and details. What are you trying to achieve overall - maybe there's an easier way to solve this problem

🙇 If it's been 30 minutes and you're still waiting for someone to help, hit the Summon Helpers button to call the official helpers here

✅ Once your question has been resolved (or you no longer need it), hit the Resolve Question button or run /resolve

patent nacelle
#

you can store an if entity

#

That returns the result

#

So execute store result score … if entity @a stored the player amount

#

And you can use that with any selector

coarse mantle
#

I would do this 👆

glad galleon