How to check for zombie siege?

Hi, how can I check if the cause for a spawned zombie is a zombie siege? Because I would like to cancel the spawning event in that case :confused:

You could try looking at the Cause of the SpawnEntityEvent to see if thereโ€™s any contextual information about why the zombie was spawned

I tested a bit around and all I could get was that the spawn type is WORLD_SPAWNER :confused: