I was working on a large Minecraft survival map. To achieve the perfect setting, I wanted to make it impossible for hostile mobs to spawn but still allow players to become hungry and have non-hostile mobs spawn.
I was wondering if there was a way to make players hungry in peaceful mode or simply prevent hostile mobs from spawning using commands.