Mobs not spawning across all dimensions.

Details

Put your operating system (Windows 7, Windows XP, OSX) and Java version if you know it here

Confirmation Status:

Unconfirmed

Description

SUMMARY:
I was working with shulkers in the end, and I used a datapack to summon a shulker every time a enderman spawned inside a end-city, it worked for a while - and then I used commands to kill each mob separately. And now no mobs will spawn at all - across all the dimensions. (Overworld, Nether, The End).

I did this - and I even tried restarting my game multiple times.
/gamerule doMobSpawning True
/difficulty Hard (switching between Peaceful and Hard, consistently).

HOW TO RE-CREATE
1. Make a new world
2. Add this datapack to allow shulkers to respawn in the end city (DL)
3. Go to a endcity, and then remove all endstone around the end city, so only the endcity is there over the void (you can use commands to remove the endstone below the endcity).
4. Remove the endcity (easier if it's a small one) and then make some spawning layers using purpur blocks (important - also shown on one of the pictures below).
5. Endermen will spawn on it and some of them will turn into shulkers.
6. Setup commandblocks to kill each mob separately.
7. Now place a button on each commandblock you have setup to kill the mobs, and then hit it every time you see spawns, to constantly kill each mob (shulker and enderman).
8. Do this for a couple of minutes, and mobs will stop spawning randomly, across all dimensions. And will never spawn again.

I've managed to re-create this bug multiple times, following the steps above ^

(Before you say it's because I'm using this specific datapack and there is something wrong with it.. you are wrong - I have used this datapack for a while, even in 1.13+) and it worked flawless, and didn't interfer with general mob spawning at all.
I have even tried removing the datapack completely after the bug happens in the world, and it still doesn't spawn any mobs. Except for passive mobs - even at night on HARD difficulty and /gamerule doMobSpawning true - no spawns are happening.PICTURE