There are many emergencies that could happen in this world, but one of the absolute worst would be a zombie apocalypse. It’s not likely to happen any time soon, but if it does you’ll want to be prepared by having two console commands ready. If you don’t, your chances of survival are going to be very slim. I’ll give a brief explanation of each command and how they can help you.
First, make sure that your server is running a map that has night enabled. By doing this it’ll give you a lot more time to prepare instead of an abrupt spawn in the middle of the night without any materials.
/gamerule doDaylightCycle false
The first command, /gamerule doDaylightcycle false, will stop the day from ending. This may or may not be something you want to do if there are other people on your server with you though. It will give you an unlimited amount of time to build before the zombies come out.
/time set 0
The second command, /time set 0, will set the time on your server directly to 12 am. This will allow you a full day’s worth of building materials and safety from being killed by any mobs that spawn during the day.
Knowledge (to be used as background information): If done correctly this will make it so that mobs won’t spawn during the day, but be out at night. It can also make it so that mobs don’t spawn ever if you want to create a safe haven from the world. To read more on how these commands work and what they do, click here .
TCL – Turns off all text rendering except from text with id “message” or “toplayer”. This is useful when the messages spam up the chat and make it impossible to play.
Noclip – Allows you to fly through walls and objects , can be used to get into places that are otherwise inaccessible.
No clip – Removes noclip effect. Mostly useful if somehow stuck inside a wall, or when doing something else with noclip.
God mode, unlimited ammo, no reloads – Become invincible for a limited time. Useful in combat and when reckless.
Kill [entity] – Kills one or specified amount of entities, such as mobs or player. Can be used to immediately get rid of a problem without the need for further interaction, e.g., killing all Endermen is an effective way to prevent them from carrying away your hard-earned blocks.
Fly – Lets you fly around the map at will. Useful in combat, when outside your house and you need a quick escape from a horde of zombies, etc.
Clear – Removes all entities within a large radius of the player, although this can lag servers. Use with care.
Random teleport – Teleports you to a random location on the map every time it’s used. Useful for escape from hordes of zombies and when lost in general.
Zombiegen 0/1 – Spawns zombies on or off the map , useful for making a custom map with a lot of zombies or less.
Zombiegen radius – Controls how many zombies spawn in a given area. If you set the radius to a high number, it could be useful for a zombie apocalypse.
Zombiegen interval – Controls how often zombies spawn in given area. Use lower numbers when making an epic zombie battle map, and higher numbers for less laggy experience or a time of day that spawns zombies more frequently.
How to survive 2 console commands?
If done correctly this will make it so that mobs won’t spawn during the day, but be out at night. It can also make it so that mobs don’t spawn ever if you want to create a safe haven from the world.