How do you make hunger go down in minecraft but without monsters spawning?

I want to make a Hunger Games LAN world, but I keep getting killed by mobs. I want hunger to diminish, but to prevent monsters from spawning. Is there a command for that? If there is, what is it?

6

1 Answer

If you have cheats enabled, you can do the following:

  1. Make sure the difficulty is set to Easy or higher.
  2. Type in the command: /gamerule doMobSpawning false. (This is case sensitive!)

Now monsters will no longer spawn, but you will still get hungry. This works because, when you set doMobSpawning to false it prevents monsters from ever spawning, and when you set the difficulty to anything other than Peaceful you get hungry.

Monsters will still spawn using Spawn Eggs or from Mob Spawners (including those naturally generated in dungeons), but they will not naturally spawn.

Source: Minecraft Wiki

4

You Might Also Like