Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

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
1  
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
1  
@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
5  
I dont feel this should be closed. –  Ender Apr 28 '13 at 16:00
1  
@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
show 1 more comment

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

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

protected by Community Jul 10 '13 at 20:09

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

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.