• 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

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

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,260
Reaction score
356
I tried doing select mob with name -> if entity exists not but that doesn't work for some reason. the check always fails.
check Selection Size game value
If Variable [Game value(Selection Size)] is bigger > than 0
 
Solution

EvilsSouls

Forum adept
Overlord
Joined
Apr 16, 2021
Messages
208
Reaction score
18
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
Overlord
Joined
Jun 8, 2021
Messages
5
Reaction score
2
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