Removes hostile mobs, except for mobs, which you need to beat the ender dragon.
Tested only in 1.21.11, should also work in all the other 1.21 versions and 26.1+