How can I make it so that in MCPE my hunger goes down but mobs don't spawn

Solution 1:

Use the command

/gamerule doMobSpawning false

Mobs shouldn't spawn naturally but you will still have the mobs already spawned.