• Hey! Register here to create your account, engage with the community, and talk about what is new!

How do I detect if a specific mob exists?

Fghj240

Member
Joined
Jun 5, 2021
Messages
43
I tried doing select mob with name -> if entity exists not but that doesn't work for some reason. the check always fails.
 

EvilsSouls

Well-known member
Overlord
Joined
Apr 16, 2021
Messages
153
check Selection Size game value
If Variable [Game value(Selection Size)] is bigger > than 0
Yes, or select object: By condition: If entity is mob = <mob you want>
and than start proccess, and change the chest parameter to: For each in selection
 

EarInfection

New member
Joined
Jun 8, 2021
Messages
4
Yes, or select object: By condition: If entity is mob = <mob you want>
and than start proccess, and change the chest parameter to: For each in selection
Furthermore, make sure to set a local variable to 0, then the selection size. Doing things based on the selection size game value gets a bit weird when the selection size is 0 (it just straight up doesn't work for some reason, but doing the method above alleviates that problem.)
 
Top Bottom