Paper
Paper copied to clipboard
Warden spawned by shrieker uses DEFAULT SpawnReason
Expected behavior
with 80+ wardens in 1 spot no other mobs should be spawning
Observed/Actual behavior
no other mobs should be spawning
Steps/models to reproduce
get 80 wardens spawned look around mobs there is
Plugin and Datapack List

Paper version

Other
No response
try setting count-all-mobs-for-spawning to true in the config/paper-world-defaults.yml. this is likely WAI -- how did you spawn the wardens?
Should warden's spawn with the NATURAL reason?
@e-im
try setting
count-all-mobs-for-spawningtotruein theconfig/paper-world-defaults.yml. this is likely WAI -- how did you spawn the wardens?
ah that's what was going on was thinking this was a bug.
to your question did with shrieker and with command block both did the same. and after doing that thing in config both were working right
command block is working as intended shrieker is not. Currently, they just have the DEFAULT reason, not sure that NATURAL quite fits though either as they are somewhat player summoned, not from the natural spawner.
What I gave you is a workaround, there is still an issue here. Reopening
I think the solution is to change how the "natural" mobs are tracked. Just having a NATURAL spawn reason shouldn't be good enough. Instead, some other flag on "non-natural" mobs should be set, and only mobs without that flag should be counted.