Arqade is a question and answer site for passionate videogamers on all platforms. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Welcome to the ArQAde. Your question is difficult to understand, could you please edit in some details and grammar? Do you mean you want a monster free world (as in creative mode) but still be hungry (as in survival mode)? – Zommuter Apr 28 '13 at 14:24
@Zommuter Player being in Creative mode has no impact on world, monsters still do spawn. You probably meant Peaceful difficulty. – Orc JMR Apr 28 '13 at 15:43
@OrcJMR I was thinking about the godmode-ish behaviour of creative, but you're right, peaceful describes it better – Zommuter Apr 28 '13 at 15:44
I dont feel this should be closed. – Ender Apr 28 '13 at 16:00
@Ender It probably won't be since the edit. It wasn't even closeable before though, just badly written—some people must still be abusing close-votes as super-downvotes. – SevenSidedDie Apr 28 '13 at 16:23

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

share|improve this answer
why dose it say no such gamerule noMobspawn? – user51637 Jul 10 '13 at 19:56
@aba It's doMobSpawning with a 'd'. – badp Jul 10 '13 at 20:09
It's also case sensitive. – SevenSidedDie Jul 11 '13 at 2:10

protected by Community Jul 10 '13 at 20:09

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.