Taking Control of Project Zomboid B42: Console Commands & Debug Power
Project Zomboid B42: Console Commands Tool
Welcome to the Project Zomboid Build 42 Console Commands Tool. This interactive guide helps you find and use commands in single-player with debug mode enabled. Toggle between categories, search for specific commands, and get detailed information on how to use them in your game.
Click on any command from the list above to see detailed information about what it does and how to use it in-game.
How to Enable Debug Mode in Project Zomboid B42
- Close the game and set the launch option. Open Steam, find Project Zomboid in your library, right-click it and select Properties. In the General tab, find the Launch Options field and type
-debug
(including the dash). - Launch Project Zomboid. Start the game normally through Steam. You'll notice a new "Debug" button or icon on the main menu.
- Start a single-player game. Load into your world or start a new one. Once in-game, you should see a small green or bug-shaped icon at the top-left of the screen. This is the debug menu toggle.
- Use commands: Press T to open the chat box and type commands with a forward slash (e.g.,
/godmode "YourName"
).
Project Zomboidâs Build 42 (B42) brings a ton of new content and challenges. But sometimes you might just want to bend the rules â whether itâs testing the new features, setting up a custom scenario, or simply having a bit of fun after a serious run. In single-player, this is done through console commands and the debug mode, which give you near-godlike control over the game. This guide will show you how to enable and use these powers in B42, list every command available, explain what each one does, and share best practices (so you donât accidentally ruin your save or disable achievements). Weâll also walk through real-world examples â like spawning items, teleporting, going invincible, and even playing with time â so you can imagine how these cheats work in practice. By the end, youâll know exactly how to become the master of your Project Zomboid single-player world (responsibly, of course).
Note: Build 42 is currently an unstable (beta) release. That means some features (like traditional multiplayer hosting) are turned off for now. Donât worry â you can still use debug mode and console commands in single-player, but the way you access them is a bit different than in Build 41. Weâll cover those differences below.
Getting Started: Enabling Debug Mode and Console Access
Before you can use any cheat commands, you need to enable debug mode. Debug mode is essentially the gameâs built-in cheat/debugging interface, and itâs the key to using most console commands in single-player. In Build 42, since the usual multiplayer console is disabled, debug mode is your main gateway to console powers. Hereâs how to turn it on:
- Close the game and set the launch option. Open Steam, find Project Zomboid in your library, right-click it and select Properties. In the General tab, thereâs a text field for Launch Options. Type in
-debug
(including the dash) and close the properties. (If youâre using GOG or another platform, you can similarly add-debug
to the gameâs shortcut or launch parameters.) - Launch Project Zomboid. Start the game normally through Steam. Youâll notice that it loads a bit differently now. When you reach the main menu, youâll see a new âDebugâ button or icon. (It might appear in the middle of the main menu as a list of debug scenarios you can try, or as an icon on the side.)
- Start a single-player game. Load into your world or start a new one. Once in-game, you should see a small green or bug-shaped icon at the top-left of the screen (just under the mini-map). This is the debug menu toggle. Click it, and a debug panel will open on the left side of your screen, filled with various menus and options.
- Verify debug options are available. Youâll know youâre in debug mode if you can see extra UI elements and menus. For example, you might see your characterâs stats, a creative mode brush icon, or other diagnostic info on screen. You can also right-click anywhere in the world and see new debug context menu options (such as Cheats or Creative) that werenât there before. If you see these, congrats â you have debug mode on!
Using the Debug Menu
Once debug mode is enabled, a whole new interface is at your fingertips. The debug menu icon (top-left) expands into several sections and tools. Here are some things you can do via the debug UI:
- Cheat Menu: One part of the debug panel is a Cheats window (often represented by a star or flag icon). Here you can toggle cheats like God Mode, Ghost Mode, Infinite Carry Weight, etc. Simply checking a box can make you invincible or invisible to zombies, for example. This is much easier than typing a command, and itâs all in real-time.
- Spawn Items and Objects: The debug panel lets you spawn any item or object in the game. Thereâs usually an Item list or Item spawn tool â you can search for an item and spawn it directly into your inventory or on the ground. In B42âs debug mode, this is built-in: âyou will have a new debug panel on the left of your screen where you can do lots of stuff including spawn items,â as one player describes. No typing out item IDs necessary â just point and click.
- Teleport and Map Tools: Debug mode allows easy teleportation. For instance, you can open the full map and simply click on a location to teleport your character there. Alternatively, some debug context menus have a âTeleportâ option when you right-click the ground or map. This is extremely handy for moving around the world instantly.
- Stats and Moodles: The debug panel also shows live information about your character (health, hunger, etc.) and environment. Under a section often labeled âGeneral Debuggerâ or similar, you can see and even edit your characterâs stats. For example, you could set your hunger to 0 or cure an infection by fiddling with those values.
- Weather and Time: There are debug options to control the world state too. You can summon rain, change weather patterns, or toggle day/night cycle. Build 42âs debug mode includes new options related to its systems (for example, animal spawning and zone debugging for hunting). While there isnât a simple âfreeze timeâ button, you can manipulate time indirectly (more on that in the Time Control section).
- Debug Scenarios: On the main menu, that Debug button you saw allows you to start predefined scenarios. These are special test scenarios (e.g. starting in a house with zombies outside, or testing certain mechanics). Theyâre mainly for developers and testers, but you can try them out. Just double-click a scenario from the list and it will launch a game with those conditions (no need to type any commands).
In short, debug mode provides a graphical interface to do most of the things youâd otherwise do with console commands. Itâs very powerful for single-player because you donât need a server or admin rights â youâre effectively the developer of your own world.
Using the Console (Chat Commands)
What about traditional console commands (the kind you type, like in many games with a ~
console or chat)? Project Zomboid has a set of chat-based commands (prefixed with a /
) typically used in multiplayer servers by admins. In single-player, especially with B42âs disabled multiplayer, these commands are a little trickier to access, but they still exist.
Normally, on a server, youâd press T to open the chat box and type commands (like /help
or /teleport
). In single-player without any modifications, pressing T will open a chat prompt but since youâre alone, commands might not do much unless debug or admin mode is enabled. However, if you host a game (co-op) or run a dedicated server for yourself, you can use these commands by making your character an admin. In Build 41, players often used the Host option to create a local server where they automatically had admin rights, thus enabling all /commands
. In Build 42 unstable, direct hosting is disabled in the menu, so the straightforward way to use chat commands in single-player is to use debug mode or run a separate server instance.
That said, you can still use the chat console in debug mode. If you open the chat (T
by default) while in debug, you can type any of the commands (like /godmode
) and it will execute if possible. Keep in mind, in a pure single-player session some commands that reference other players or server settings might not do anything. But commands that affect your player or the world locally (like spawning items, god mode, etc.) will usually work on your single-player âserverâ (yes, your single-player game internally runs a server process for things like splitscreen). Essentially, you are the admin of your single-player world, just as you would be on a hosted server.
Summary of ways to input commands in single-player:
- Debug Mode GUI: Easiest method. Click menus and toggles â no typing required for most cheats.
- Chat Commands: Press T to open chat and type a command with a
/
prefix (e.g./additem
or/teleport
). This only works if your game has admin privileges. In single-player debug mode, you are by default an admin-equivalent, so many commands will execute. (If a command isnât working via chat, it may require a true server environment or has no effect solo.) - Lua Console (Advanced): By pressing F11 in debug mode, you can open the Lua debugging console (the gameâs code terminal). This allows you to execute Lua script commands directly. This is powerful (you can do anything the gameâs code can do, like
getPlayer():getInventory():AddItem("Base.Axe")
to spawn an axe, for example), but it requires familiarity with the gameâs API. For most players, the debug GUI or chat commands cover everything without needing to write code. Still, itâs worth noting that the F11 console is there â and B42 even improved it with better fonts and usability.
Now that we have debug mode enabled and know how to enter commands, letâs look at all the commands available in Build 42 and what they do. Feel free to follow along in-game â enabling debug mode gives you access to all these, so you can try them out as we go through the list.
Full List of Console Commands in Build 42
Project Zomboidâs console commands havenât changed a whole lot from Build 41 to 42, but itâs good to have an updated list. These commands are typically used in the multiplayer context, but in single-player (with debug mode on) you effectively act as the server admin, so you can use them too. We will list every command supported in B42, organized by category, along with a description of what it does. Keep in mind some commands (especially those dealing with other players or server management) are less relevant in single-player, but we include them for completeness.
How to read the tables: Commands are prefixed with a slash (/
) when used in chat. For example, to use the additem
command, youâd type /additem ...
in the chat console. If youâre using them via the server console (like an RCON tool or dedicated server terminal), you omit the slash and just type the command name directly. The âEffectâ describes what the command does. Some commands require parameters (like a playerâs username or an item ID). In usage examples, player names are in quotes if they have spaces; item IDs are usually in the format Module.ItemName
.
Gameplay and World Commands
These commands directly affect the game world or players. You can use them to spawn things, become invincible, trigger events, etc. They are the bread-and-butter cheats for influencing your single-player experience:
Command | Effect / Description | Example Usage (chat syntax) |
---|---|---|
/additem |
Gives an item to a player. You must specify the player (in single-player, thatâs you) and the itemâs ID. Module and item name format is used (e.g. Base.Axe for an axe). |
/additem "Survivor" Base.Axe â Spawns an axe in Survivorâs inventory. |
/addxp |
Gives XP to a player in a specific skill (perk). You provide the player name, the skill name, and amount of XP. This instantly advances that skillâs experience. | /addxp "Survivor" Woodwork=1000 â Grants 1000 XP in Woodwork to Survivor. |
/addvehicle |
Spawns a vehicle for a player. The vehicle will appear near the named player. You can specify the vehicle type ID if needed. | /addvehicle "Survivor" Base.Van â Attempts to spawn a Van next to Survivor. |
/alarm |
Triggers a house alarm at the adminâs position. If youâre inside a building, its alarm will start blaring (attracting zombies). | /alarm â Sounds a building alarm where you are (if in a building). |
/chopper |
Initiates the random helicopter event on a random player. (The helicopter event draws hordes). In single-player, itâll target you. | /chopper â Causes the helicopter meta-event to occur (very noisy!). |
/createhorde |
Spawns a zombie horde near a player. You can optionally specify the number of zombies. Use sparingly â a large number can overwhelm you (and your PC!). | /createhorde 50 â Spawns a horde of 50 zombies near you (the only player). |
/godmode |
Toggles god mode for a player. In god mode, you canât die â health stays full, injuries heal, etc. (In B42 debug, this is equivalent to toggling the God Mode cheat checkbox.) | /godmode "Survivor" â Makes Survivor invincible (no damage, no infection). |
/invisible |
Makes a player invisible to zombies. Zombies will no longer detect that player at all, effectively rendering you a ghost. (This is sometimes called Ghost Mode in the debug cheats UI.) | /invisible "Survivor" â Toggles invisibility for Survivor; zombies ignore them. |
/noclip |
Toggles no-clip for a player. No-clip mode lets the player pass through solid objects like walls or fences. Useful if youâre stuck or building freely. | /noclip "Survivor" â Allows Survivor to walk through walls and obstacles. |
/teleport |
Teleports one player to anotherâs location. You can teleport yourself to someone else, or teleport a specified player to a target player. In single-player, this is only useful with splitscreen or if you have other dummy players. | /teleport "Survivor" "Player2" â Moves Survivor to Player2âs position. |
/teleportto |
Teleport to specific x,y,z coordinates on the map. This lets you jump to any location if you know the cell coordinates. The Z level is the floor (0 = ground, 1 = second story, etc.). | /teleportto 11730,8800,0 â Teleports you to the cell at 11730x,8800y on ground level. |
/startrain |
Starts a rain storm on the server. Weather will immediately turn rainy. (Great for testing farming or just setting mood.) | /startrain â Begins rain. |
/stoprain |
Stops any ongoing rain. Clears up the weather. | /stoprain â Halts the rain. |
/settime |
Sets the world time to a specific hour and minute. (This command is available in the server console or RCON, but not as a chat command by default.) It allows you to change the in-game clock. | settime 9 30 â (Server console) Changes time to 9:30 AM. |
/weather |
[Not an actual base command] â For weather control, use the debug climate panel or mods. (Included here to note that there isnât a simple /weather command in vanilla PZ.) |
N/A |
/help |
Displays the help menu listing all available commands in-game. It will print a list of commands to the chat/console. | /help â Shows all commands (some might not be usable in SP if not applicable). |
/quit |
Saves the world and shuts down the server. In single-player, this will force a save and exit you to main menu. Use with caution â itâs like Alt+F4 with a save. | /quit â Immediately saves and quits the game world. |
/save |
Forces a world save without quitting. This commits the current state to disk, just like the periodic autosaves. | /save â Saves the game world state now. |
/showoptions |
Prints the list of current server settings and their values. Useful if you want to see what sandbox options are active (mostly relevant in MP). | /showoptions â Outputs current server options to chat/console. |
/changeoption |
Changes a server sandbox setting on the fly. Only certain options can be changed mid-game. Youâd specify the option name and new value. (In SP, sandbox options can also be adjusted via the debug Sandbox panel if available.) | /changeoption SleepAllowed=false â Just as an example (disables sleep if it were enabled). |
/reloadoptions |
Reloads the serverâs options from the INI file. In single-player, this might reapply sandbox settings. Usually not needed unless you edited files. | /reloadoptions â Refresh server settings from config (MP context primarily). |
/sendpulse |
Toggles sending server performance info to connected clients. (This is a technical command mostly for multiplayer performance debugging; itâs not useful in SP.) | /sendpulse â (Toggles performance telemetry output). |
/replay |
Record or play a replay of a playerâs actions. This is an admin tool to catch cheaters by recording them. It has sub-commands: -record , -play , -stop and a filename. Not typically useful in SP, but it exists. |
/replay "Survivor" -record test1 â Starts recording Survivorâs actions. |
/releasesafehouse |
Releases a safehouse that you own. Safehouses are a multiplayer feature (claiming a house). In SP thereâs no use for this command, as all houses are essentially yours. | /releasesafehouse â (Does nothing in SP, since safehouses arenât a concept there.) |
Table: Gameplay/World Console Commands in Project Zomboid B42 and their effects.
As you can see, thereâs a lot of power here â from summoning helicopters and alarms (to manipulate hordes) to magically giving yourself items and XP. Many of these functions are also accessible via the debug menu (for example, God Mode, Invisible (ghost), and NoClip can all be toggled in the in-game debug cheat interface with checkboxes). The table includes an example of how to use each command in the chat console. Remember: if youâre the only player, replace "Survivor"
(our example player name) with your characterâs actual name (you can see your name under the health panel or when you press Tab in debug mode). If a command doesnât seem to do anything in single-player (for instance, /players
when youâre alone will just list one player â you), thatâs expected.
Speaking of listing players and managing multiplayer features, Build 42 also supports commands for admin tasks like banning players, managing whitelists, etc. These donât have much use in a pure single-player game, but for completeness (and for those testing B42 via a dedicated server or splitscreen), weâll list them here.
Admin & Server Management Commands
The following commands are used to manage players and server settings/security. In single-player you wonât need these (since there are no other players to admin), but if you run a co-op or just want to know them, here they are:
Command | Effect / Description | Example Usage |
---|---|---|
/players |
Lists all connected players and their IDs. In single-player, this will just show your own character. | /players â Outputs the list of players (e.g. â1. Survivorâ). |
/adduser |
Adds a new user to the whitelist (allows them to join the server) with a given username and password. (Not relevant to SP.) | /adduser "NewPlayer" "password123" â Adds user NewPlayer with password. |
/addusertowhitelist |
Similar to adduser â if a user is currently connected with a password, this adds them to whitelist. | /addusertowhitelist "NewPlayer" â Whitelists NewPlayer (must be online). |
/removeuserfromwhitelist |
Removes a user from the whitelist (so they canât join without admin adding again). | /removeuserfromwhitelist "Troublemaker" â Removes Troublemaker from the whitelist. |
/addalltowhitelist |
Adds all currently connected players who have a password to the whitelist. (Basically batch-whitelists everyone online.) | /addalltowhitelist â Whitelists all connected players. |
/banuser |
Bans a user by username. They wonât be able to reconnect until unbanned. (Single-player: not applicable.) | /banuser "GrieferGuy" â Bans GrieferGuy from the server. |
/unbanuser |
Unbans a previously banned username. Allows them to join again. | /unbanuser "GrieferGuy" â Removes ban on GrieferGuy. |
/banid |
Bans a user by their Steam ID. A more permanent ban not tied to username. Useful if they could make new accounts. | /banid 76561198000000000 â Bans the Steam ID (example number). |
/unbanid |
Unbans a Steam ID that was banned. | /unbanid 76561198000000000 â Unbans that Steam ID. |
/kickuser |
Kicks a user from the server (they can immediately try to rejoin). Doesnât ban, just disconnects them. | /kickuser "AFKGuy" â Kicks AFKGuy from the game session. |
/grantadmin |
Grants a user admin privileges (makes them an admin). In a server, this elevates that player so they can use commands too. | /grantadmin "TrustedFriend" â Makes TrustedFriend an admin. |
/removeadmin |
Revokes a userâs admin status. They go back to normal player status. | /removeadmin "TrustedFriend" â Strips admin rights from TrustedFriend. |
/setaccesslevel |
Sets a userâs access level/permissions group. PZ has levels like admin, moderator, overseer, gm (game master), observer. This command assigns those roles. | /setaccesslevel "Player1" moderator â Makes Player1 a moderator. |
/servermsg |
Sets a server message and broadcasts it to all players. This message can show on connection or be forced out to chat. | /servermsg "Server will restart at midnight!" â Broadcasts the message to everyone. |
/voiceban |
Toggles banning a user from voice chat. You can specify true/false to ban or unban their voice. | /voiceban "NoisyKid" -true â Prevents NoisyKid from using voice chat. |
/changeoption |
(Also listed above) Changes a server setting. Often used for PvP, SafetySystem, etc. (Itâs listed in both categories because itâs a gameplay setting but also an admin action). | /changeoption PvP=true â Turn on PvP on the server. |
/reloadoptions |
(Also listed above) Reloads server settings from file. Typically used after editing server.ini. | /reloadoptions â Re-read server options file. |
Table: Administration and server management commands (mostly for multiplayer use).
Again, most of these âadminâ commands wonât be needed unless youâre running a multiplayer server or a co-op session. In Build 42 unstable, since multiplayer is disabled by default for testing purposes, you likely wonât use these at all right now. But itâs good to know they exist â especially if you plan to host a server when B42 becomes stable.
For single-player enthusiasts, the key takeaways from these lists are the gameplay commands: things like additem
, godmode
, teleport
, etc. Those will be your main tools for creative control and testing. In the next section, weâll dive into some practical examples of using these commands (and their debug menu equivalents) to alter your game. Weâll illustrate scenarios and use analogies so you can get a feel for how they work in a âreal-worldâ Zomboid context.
Before that, a quick note on syntax: Notice that player names in commands need quotes if they have spaces or special characters. If your characterâs name is two words (e.g. âJohn Doeâ), you must type /command "John Doe" âŠ
. If itâs one word (no spaces), quotes are optional but it doesnât hurt to include them. Item names are case-sensitive and require the module prefix (usually Base
for vanilla items). If youâre unsure of an itemâs exact ID, the debug item list can help you find it, or you can check the PZ wiki item list.
Now, letâs apply what weâve learned to actual gameplay situations.
Using Commands and Cheats: Examples and Scenarios
To make all this abstract information concrete, letâs walk through a few common use cases for console commands/debug mode. Imagine yourself in these situations â the descriptions will include analogies and comparisons to help you understand how these commands can be used effectively (and creatively) in your Project Zomboid B42 single-player experience.
Example 1: Spawning Items and Supplies (Loot Magic)
Scenario: Youâve barricaded yourself in a farmhouse in March Ridge. You desperately need a generator for power, but the nearest one is towns away and swarming with undead. Instead of risking life and limb on a supply run, you decide to poof one into existence.
Using the debug menu: Click the debug icon and find the Items List or Item Spawner. In debug mode, you can search for âGeneratorâ and spawn it. Itâs like having a creative mode inventory â the item materializes in front of you. No fuss, no travel, no fighting through hordes.
Using a console command: Open the chat (T
) and type a command to spawn the item. For example:
/additem "YourName" Base.Generator
This uses the /additem
command we saw earlier. Instantly, the generator appears in your inventory (or at your feet if itâs too heavy). It feels like an airdrop straight from the heavens â one moment you have nothing, the next moment you have the item you need. In terms of analogy, itâs like using a cheat code in The Sims to spawn objects out of thin air, or like calling in a supply drop in an action game.
Related uses: You can spawn any item: axes, guns, ammo, food, medicine, building materials â you name it. Want a shotgun and some shells to defend that farmhouse? /additem "YourName" Base.Shotgun
and Base.ShotgunShellsBox
(maybe a few times for multiple boxes) will arm you to the teeth. Feeling under the weather because you got scratched and might turn? Spawn some antibiotics or just cure the infection via debug menu (the health panel can remove injuries if you toggle it). Essentially, item spawn commands let you bypass looting entirely. In a normal game that might ruin the fun, but if your goal is testing or creating a custom scenario (say, you want to roleplay a military outpost with lots of guns), this is invaluable.
Analogy: Think of /additem
like a 3D printer in your backpack that can produce anything given the code. Instead of spending in-game days scavenging (which is the usual intended challenge of PZ), you press a button and itâs Christmas morning. Itâs the same as using Minecraftâs creative mode to grab blocks, or using a console command in Skyrim to give yourself items. Extremely handy, but use with care â spawning a truckload of stuff can remove the survival tension entirely. Many players use it after theyâve already beaten the challenge, or strictly for testing purposes.
One more neat trick: you can also give yourself experience points with /addxp
. Suppose you want to test the new crafting recipes in Build 42 (which include pottery, metalworking, brewing, etc.) but your characterâs skills are too low to unlock them. Instead of grinding for weeks in-game, just grant the XP. E.g. /addxp "YourName" MetalWelding=3000
might level up your Metalworking skill a few levels, unlocking those recipes instantly. Itâs like Matrix-style learning â downloading skills straight into your brain. One moment youâre a novice, the next youâre a master carpenter who can build stairs and crates with ease.
Example 2: Teleportation and Fast Travel (Blink Across the Map)
Scenario: Youâre in Riverside but you want to check out the newly expanded Louisville area that Build 42 updated. Normally, thatâs a long and perilous journey. But with console powers, you can be there in an eyeblink.
Using debug mode: Open the world map (debug mode often allows you to see the full map, even areas you havenât visited). Ctrl-click or simply right-click on a location and select a Teleport option (the exact method can vary, but generally debug has a teleport tool). Zap! â youâre now standing in downtown Louisville. Alternatively, use the Teleport cheat menu: it might let you choose from predefined points of interest or coordinates. Some debug UIs have a âTeleport to Worldâ window where you can input X,Y coordinates directly or pick from a list of known locations.
Using a console command: There are two approaches:
- Teleport by player: If you had a clone or another player, you could do
/teleport "YourName" "OtherName"
. In single-player thatâs not applicable unless you have a splitscreen buddy. So instead you use: - Teleport to coordinates: Letâs say you looked up the cell coordinates for Louisville. (Project Zomboid maps are divided into grids; the community map project can give you exact coordinates for a location). For example, Downtown Louisville might be around
13900, 2600
(just illustrative). Youâd type:
/teleportto 13900,2600,0
The game then places you at that X,Y on Z level 0 (ground level). Itâs almost like a sci-fi teleporter â dematerialize here, rematerialize there. One Reddit user described it as simply as âopen the map and click to teleportâ when using debug mode.
In-game effects: Everything around you will suddenly change. If you were indoors and safe and you teleport to a busy street, you might find zombies all around (so be careful!). Itâs wise to toggle god mode or invisibility before teleporting to an unknown hot zone, just so you donât get eaten the second you arrive. Think of it like using a cheat in an open-world game to move the player to a different zone â the world will load that area and you appear as if you just spawned there.
Analogy: Teleporting in PZ with commands is akin to fast-travel in games like Skyrim or Fallout, except even less restricted (you can go literally anywhere, not just discovered locations). Itâs also reminiscent of admin commands in Minecraft (like /tp
to coordinates). In a fun sense, itâs like Nightcrawlerâs bamf â vanish in a cloud of smoke in West Point, and instantaneously pop up in Muldraugh.
Players often use teleport for map exploration. For instance, mod developers or mappers might teleport around to inspect different areas quickly. As a single-player, you might use it once youâve âbeatenâ an area and just want to relocate your base without the tedious travel â totally up to you. The freedom is there.
One thing to note: if you teleport far, the game might have to load chunks it hasnât loaded before, which can cause a slight pause. In debug mode, you can actually see it load cells. But B42âs optimization is pretty good, so itâs usually seamless. Also, teleporting wonât magically bring your car with you or anything â itâs just your character. Any loot you carry stays on you (inventory comes along for the ride), but your base remains where it was. So itâs not replication, itâs true movement.
Example 3: God Mode and Invisibility (Become Unkillable)
Scenario: Youâre surrounded by a massive horde â 200 zombies closing in â because you set off a gunshot and an alarm in West Point. Normally, this is game over. But you really want to see how long you could last, or maybe you just want to stroll through the horde to see whatâs on the other side. Time to toggle God Mode and Ghost Mode.
Using debug mode: Open the cheat panel and check the box for God Mode. Instantly, your health is frozen at 100%. Any injuries you had are healed. Zombies claw and bite, but your character doesnât flinch. Itâs as if youâre covered in plot armor. Next, check Ghost Mode (or the Invisible checkbox). Now the zombies lose all interest in you. You are literally invisible to them; theyâll wander around confused, because from their AI perspective, you just vanished. You can walk among them as if youâre one of the undead or as if youâre not there at all.
Using console commands: Two commands come into play â /godmode
and /invisible
.
- Typing
/godmode "YourName"
toggles the invincibility on or off for you. A confirmation usually appears like âGod Mode ON for YourName.â - Typing
/invisible "YourName"
does the same for invisibility (making zombies ignore you).
These essentially do what the debug checkboxes do behind the scenes. One player recounted an example of using exactly these cheats to escape certain death: he paused the game, enabled debug, turned on god mode and a movement cheat, and safely walked out of a horde. Thatâs a textbook use of these commands â emergency lifesavers. Think of it like pulling up the console in DOOM and typing iddqd
(the classic god mode cheat) â bullets (or bites) simply donât affect you.
Game behavior: In God Mode, youâll notice your health panel shows full health and stays that way. If you were bitten or hurt, those status effects might clear (they usually do). Hunger, thirst, and fatigue might also freeze (since you canât die, the game often also halts those needs â or you can separately toggle needs off with other debug options like âInfinite Hungerâ etc.). Essentially, youâve removed the survival aspect temporarily â youâre playing in a sandbox where your character canât be killed. Invisible/Ghost Mode will make your character not register in the AIâs senses â zombies wonât chase or attack, even if you whack them (though attacking might âuncloakâ you depending on the mode; in base game /invisible
truly means completely ignored no matter what).
Analogy: God Mode is like Superman mode â bullets bounce off, zombies canât scratch you, youâre the indestructible man. Itâs the equivalent of turning on invulnerability in any game. Invisible (Ghost) mode is like wearing Harry Potterâs invisibility cloak in a zombie apocalypse â you move silently, unseen, among the horde. They might bump into you by physics, but they wonât ever latch on.
A combination of God Mode + Ghost Mode basically makes you a spectator with corporeal form: you can wander the world as an observer who canât be harmed. This is fantastic for exploring and filming cinematics or just satisfying curiosity (âwhatâs it look like in downtown if I spawn 500 zombies?â) without actually risking death.
Be mindful: if you leave these on and forget, you might spoil your saveâs challenge. Some players only use them in a backup copy of their world or turn them off immediately after use. (Also, using god mode flags your save as a âcheatâ save â more on that in precautions, but achievements get disabled once youâve gone godmode).
Additionally, thereâs NoClip (No Clipping) which we listed. That lets you phase through walls. It pairs well with invisibility if you truly want to move like a ghost. For example, if youâre stuck in a building surrounded by zombies, noclip + invisible is basically spectre mode: walk through the wall and keep going â none the wiser. When you reach a safe spot far away, you can turn them off and continue normal play.
Example 4: Controlling Time and Weather (Temporal Tampering)
Scenario: Itâs the dead of winter, and the days are short and nights incredibly long. Youâre bored waiting through a long night in-game, or perhaps you want to freeze time to build an elaborate base without a week passing. Time to mess with the clock.
Project Zomboid doesnât have a straightforward /time set day
style cheat like Minecraft does, but you have a few tools at your disposal:
- Sleep or fast-forward: The most basic âcheatâ â if you just want to get to morning, you can always sleep in a safe spot or press the fast-forward key (F4) to speed up time. This isnât a console command, but itâs worth mentioning. Debug mode, however, can remove some restrictions (for example, you can enable sleep at any time via sandbox settings or debug, or eliminate the need for sleep).
- Change day length or time: Using the
/settime
command via server console (if you have one running) you can actually set the exact time of day. For instance, on a dedicated serverâs console (not the in-game chat), typingsettime 7 0
will jump the world clock to 7:00 AM. In single-player debug, there isnât a direct UI for this, but you can simulate it: one way is by adjusting the Sandbox Options. In debug mode, you can open the Sandbox Options panel for your game (thereâs a debug utility that lets you edit sandbox settings mid-game). By drastically increasing the Day Length or toggling âPausedâ time, you might effectively alter how time flows. Another way is through Lua: e.g. in F11 console, callinggetGameTime():setTimeOfDay(7)
would set time to 7 AM (advanced, but it works). - Freeze time: As one player discovered, using a mod (Cheat Menu) they could stop the day/night cycle entirely. In pure vanilla debug mode, there isnât a one-click âfreeze timeâ â but you can achieve a similar effect: turn off the need for food, water, etc. (so your character doesnât suffer) and then just donât sleep. Time will pass, but you wonât feel it. If you want zombies not to move either, you could use invisibility so they ignore you. Itâs not truly pausing time, but it pauses consequences. The player using Cheat Menu: Rebirth reported they stopped the day/night (so time was frozen at a certain hour) and built their base with no temporal issues. They still had to deal with a few wandering zombies, but solved that with no-clip and ghost mode.
- Weather control: You canât directly type
/rain
(doesnât exist), but you have/startrain
and/stoprain
commands to play with rain cycles. Debug mode also has a Climate Control panel â you can alter temperature, force thunderstorms, etc. For example, if you want a blizzard in summer, you could trigger one via debug. If you want to clear the skies, use stop rain or even change climate settings to dry.
Analogy (Time): Controlling time in PZ is a bit like having Doctor Strangeâs Time Stone â not as simple as snapping your fingers, but with some ritual (commands), you can rewind or fast-forward or loop time. If you skip from night to morning, itâs like you just hit the fast-forward button on a VHS tape (old school!) â the world advances, the sun comes up, and you appear to have just âwaitedâ instantly. Freezing time is akin to the movie Click where Adam Sandler pauses everything â though in our case we often just freeze needs and threats, effectively pausing any challenge while you do your thing.
Analogy (Weather): Weather commands are like doing a rain dance or a sun dance at will. One chat command and suddenly the skies open up with a /startrain (like having Stormâs power from X-Men to summon weather). Or if itâs dreary and you want clear conditions, /stoprain
sends the clouds scurrying, like an admin decree to Mother Nature: âThatâs enough rain for now.â In debug, altering weather sliders can feel like youâre Zeus fiddling with the climate â you can change temperature, humidity, and see the effects (fog, storms, snow) happen in real-time.
Real use case: Letâs say you want to test how farming works over a season. You could freeze time at noon every day to give your crops maximum sunlight or you could accelerate growth by advancing days quickly. If you want to test new Build 42 farming balance, you might cheat the weather to always rain (so crops are always watered) using a combination of /startrain
and maybe locking the climate. These are things modders/testers do frequently. As a regular player, you might simply hate that it gets dark at 6 PM in winter â so you set it to 10 AM and just hold it there via a mod. Itâs your sandbox!
One caution: There isnât a command to revert time backwards (you can set time to an earlier hour on the same day using settime
, but you canât go to yesterday â well, not without editing save files). So itâs not true time travel, more like setting the clock. If you set time backward a few hours, weird things might happen (zombies you killed wonât respawn or anything, but some world state that depends on time might get confused). Itâs generally safer to only push time forward or freeze it.
Lastly, controlling the in-game calendar (like changing the current date or season) isnât exposed via chat command. Youâd have to use mods or edit the save file. Build 42 introduces seasons and animals that follow yearly cycles, so time matters for those. Debug mode has an âAnimal Debugâ and âSeasonâ tools where you can at least monitor these systems. Possibly, future updates or mods will allow direct season skipping. For now, you can always start a new game in a different month if you want a different season, or just tough it out or cheat needs if a season is harsh.
These examples should give you a sense of how powerful console commands and debug mode can be. Essentially, anything you find too slow, too difficult, or too random in the game can be adjusted: Loot is scarce? Spawn it. Got lost or bored of walking? Teleport. Made a mistake and got your favorite character killed? You can even revive them if you pause before death or back up your save â or at least go god mode at the last second to save them. Itâs all about how you want to play. Some people use these tools to create custom stories (like setting up a scenario where they have a fortified base and tons of supplies and just want to see how long they last against an onslaught). Others use it to learn the game mechanics (experiment with building, farming, hunting in B42 without the grind).
Now, a word of warning: with great power comes great responsibility (to your save game). Using debug and commands can have side effects. Letâs go over some best practices to use them safely.
Best Practices and Precautions for Using Console Commands
Before you go wild with your new godlike abilities, keep these tips in mind. They will help ensure you donât accidentally spoil your fun or break something in your game:
- Backup Your Save: If you care about a particular world or character, make a backup before using cheats. While most commands are safe (the game is quite robust), spawning huge hordes or items could cause performance issues or crashes, and using certain debug functions might mark your save file. By copying your save folder (
Zomboid/Saves/
directory) to a safe spot, you can always revert if something goes wrong or if you want to go back to an âunchangedâ world. - Understand Achievements Impact: Once you use cheats or debug, that save is typically flagged and achievements get disabled for it. If youâre an achievement hunter, do not use console commands on a save where you intend to earn them. For example, if you toggle debug mode on a world, the game flags it â meaning you wonât get Steam achievements from that world going forward. There are mods to allow achievements with debug, but vanilla blocks them as a safeguard. So decide: fun sandbox or achievement run. (Many players keep two separate saves for this reason.)
- Disable Mods When Using Debug (if possible): If you have a lot of mods, they can sometimes conflict with debug mode. For instance, some mods donât expect the game to run in debug and might throw errors or even crashes. One user found that debug mode âdoes not work with all mods yetâ â their game crashed on launch until they disabled certain mods. So if you encounter issues running with
-debug
, try turning off your mods. You can systematically find which mod is incompatible. On the flip side, there are mods made for aiding debugging/cheating (like Cheat Menu, NecroForge). Those generally play well with debug. Just be cautious and perhaps disable content-heavy mods if all you want is a quick cheat session. - Use Quotes for Names: We mentioned it before, but itâs worth emphasizing: when using commands that involve player names or item names with spaces, use quotes.
/teleport "John Doe"
is correct,/teleport John Doe
without quotes will confuse the parser (itâll think youâre trying to teleport âJohnâ to âDoeâ). The console often gives an error if you mess up syntax. If something isnât working, double-check the format or use/help
to see the usage. - Spawn and Kill in Moderation: If you use
/createhorde 1000
and spawn a thousand zombies, be prepared for a possible slide show or crash â or at least a lot of zombies you might not be able to ever fully clear. Similarly, spawning hundreds of items could clutter the map (and your save file) unnecessarily. Itâs best to experiment with moderate numbers first (do you really need 500 crates of ammo?). The game can handle a lot, but every system has a limit. Huge hordes also wonât despawn unless killed, so you could inadvertently flood an area with undead permanently. If you do overdo it, you can always use the Delete mode in debug (one of the tools in debug menu lets you delete zombies or items by clicking) â essentially a cheat âeraser.â - Remember to Turn Off Cheats: Itâs surprisingly easy to forget you left god mode on or that youâre invisible. Suddenly you might wonder âwhy is nothing attacking me and why am I not hungry anymore?â Realize that youâre still in uber-cheat mode. Before continuing a normal play session, double-check your debug settings. Turn off god, ghost, noclip, etc., to resume normal gameplay. Thereâs even a debug option âDisable All Cheatâ that you can use to quickly normalize things. This will ensure you get the intended survival experience when you want it. One common practice: only use cheats on a duplicate save or use them sparingly to recover from a glitch or unfair death, then immediately disable.
- Be Cautious Changing Server Settings: Commands like
/changeoption
can alter fundamental game settings. While useful (you could turn off erosion, change loot respawn, etc.), doing so mid-game might have odd results or might not retroactively remove effects. Use such commands sparingly and only if you know what youâre doing. (For example, turning off Zombie Infection mortality after youâre already bitten wonât cure you â youâd have to manually heal using debug or god mode.) - Combine Methods for Safety: If youâre doing something risky, combine cheats to mitigate issues. Teleporting into a dense city? Maybe toggle invisible for a minute until the game loads and you get your bearings. Spawning a horde to test your base defenses? Maybe keep god mode in your back pocket (or on) so if they overwhelm, you donât lose your character. Essentially, use the tools in tandem â theyâre meant to give you control.
- Document What You Change: If youâre doing a lot of custom tweaks (say youâre effectively building a scenario: giving yourself skills, spawning 10 survivors (if NPC mods), changing time to June, etc.), it might be wise to jot it down. This isnât required, but if later on something feels off, you have a record of âOh yeah, I did turn off nutrition and set day length to 2 hoursâ or such. It will help you remember whatâs not vanilla in that save.
- Explore the Debug Menus: The console commands listed are extensive, but the debug UI actually has even more granular control. Spend some time clicking through the debug panels. There are tools for teleport to Cursor, Heal player, Toggle Infection, Spawn vehicle (with UI to choose which), weather control, painting map tiles, etc. B42âs debug mode also includes new tools for the new features (like controlling animal spawns and behavior in the wildlife panel). These donât always correspond 1:1 with a simple slash command â theyâre more like developer tools. For example, thereâs a Brush Tool to paint loot zones or zombie zones on the map â definitely not something youâd have a console command for, but as a debug user you can do it. If youâre curious, check the official wikiâs debug mode page for a rundown of each debug option (once the B42 version is updated) or search the Indie Stone forums for a basic guide to debug mode.
- Use Mods for Quality of Life: While this guide focuses on built-in cheats, note that the community has made some great mods to make cheating easier. For example, Cheat Menu: Rebirth (updated for B42) provides an in-game menu (via right-click) with a tidy list of cheats you can toggle, without needing to open the clunkier full debug panel. Mods like NecroForge provide a dedicated item spawn interface thatâs often more user-friendly for spawning lots of gear. If you find the vanilla debug console cumbersome, consider these mods â they exist to streamline the process. (Of course, be careful with mods on an unstable build â ensure they are updated for B42 to avoid issues.)
- Have Fun, But Consider Consequences: Finally, just a philosophical tip: using console commands can diminish the sense of accomplishment or tension in the game. Itâs recommended to use them in a separate âtoyâ save or after youâve experienced things legitimately. That way, you preserve the gameâs intended excitement in one save, and satisfy your curiosity or desire for experimentation in another. If you suddenly give yourself a fully stocked base with every weapon, you might quickly feel thereâs no challenge â and that save might get boring. So maybe use cheats to deal with truly frustrating or bugged situations, or to experiment, rather than to remove all challenge (unless thatâs specifically what you want at the moment). Basically: know yourself â if having godlike power will ruin your enjoyment, use it sparingly.
By keeping these best practices in mind, youâll ensure that your foray into debug/console commands is smooth and doesnât inadvertently wreck your game experience. Many veteran players actually enjoy alternating between âserious survivalâ runs and âsandbox debugâ sessions to keep things fresh.
Summary & Key Takeaways
Using console commands and debug mode in Project Zomboid Build 42 gives you unparalleled control over your single-player game. Here are the key points to remember:
- Enabling Debug Mode: Add
-debug
to your launch options to activate debug mode. This is the gateway to all cheats in single-player. A bug icon will appear in-game to access the debug menu. - Debug vs Console: Debug mode provides a GUI for cheats (god mode, item spawn, etc.) and is ideal for single-player since B42âs normal multiplayer console is disabled. Console commands (the
/commands
) can still be used via the chat in debug mode, effectively letting you do things by text if you prefer or need to (especially for things like teleport to exact coords or batch operations). - Full Command List: B42 supports a wide range of commands â from
/additem
(spawn items) to/teleport
(move around),/godmode
(invincibility) to/startrain
(weather control). We listed all of them with descriptions in this guide for reference. These commands allow you to manipulate almost every aspect of gameplay: health, inventory, skills, time, weather, and more. - New B42 Features: Build 42 introduces animals, new crafting, etc. While there arenât specific new chat commands (e.g., no
/spawnanimal
in vanilla), the debug mode has new panels for these systems (Animal debug, etc.). Use debug to explore new features (like spawning or taming animals for testing). As B42 is updated, watch patch notes â new commands or debug options might be added as they refine the systems. - Practical Usage: You can spawn supplies to save time (like magically getting tools or materials), teleport anywhere to explore the map quickly, toggle god mode/invisibility to survive unwinnable encounters or just observe zombies safely, and even adjust time and weather to your liking (skip nights, force rain for your crops, etc.). Our examples illustrated these with analogies (e.g. invisibility = zombie invisibility cloak, teleport = fast travel, spawning = supply drop).
- Precautions: Cheats are fun, but remember to backup your save and note that using them will disable achievements for that save. Turn off cheats when done to return to normal play. Mods can help streamline cheating (but use B42-compatible ones). And donât be shy about using debugâs interface â many options are available that arenât obvious at first glance but are documented in community guides.
- B42 vs Previous Builds: The main difference in Build 42 is the lack of built-in co-op multiplayer during unstable testing, which means single-player must rely on debug mode for any console-like capabilities (unlike B41 where you could host a server and use commands normally). The commands themselves function the same as in Build 41. One improvement in B42 is a better Lua debug console and additional debug tools (for new content). Once B42 stabilizes and multiplayer is enabled, youâll be able to use these commands in hosted games just as before. Everything you learned here will carry forward.
As a final thought: Project Zomboid is all about storytelling and scenarios. By mastering console commands and debug mode, you essentially become the director of your own zombie apocalypse. You can set up any scenario you dream of: want to see if 5 survivors with shotguns can defend a mall against 1000 zombies? You can stage that. Want to roleplay as an immune character who can wander freely among zombies (a la Walking Dead guts trick, but permanent)? Turn on invisibility. The possibilities are endless.
Just remember, once youâve had your fun experimenting, consider diving back into the gritty survivor life at some point â itâs like playing in creative mode vs survival mode. Each has its own appeal. With this knowledge, you now have the freedom to switch between them at will. Happy surviving (or godding, or teleporting, or whatever you plan to do) in Knox Country!