Minecraft wiki entry for Spawn, associated text: In Java Edition these mobs still spawn if the /gamerule doMobSpawning command is set to false, because they spawn as part of structure generation. In Bedrock Edition nothing spawns if the /gamerule doMobSpawning command is set to false.