Terraria

Cheats & codes

Terraria Cheat Codes

Grouped by type and platform, each one labelled reported working or tested.

There are 42 cheat codes for Terraria across PC (Microsoft Windows). Each code below lists the exact button combination or console command, what it does, and whether using it disables achievements.

Verified

Console commands

35

Announce Message

Broadcasts an announcement/notice to every player on the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Ban Player

Banishes a player from the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Change Weather

Changes the weather on the dedicated server (e.g. rain, wind)

In the dedicated server console

PC Reported working
Did this work for you?

Clear Console

Clears the dedicated server console display

In the dedicated server console

PC Reported working
Did this work for you?

Difficulty Command

Changes the world difficulty setting on the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Full Screen Map Toggle

Toggles the full-screen map display on/off on the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Give Buff Potion by ID

Gives a player the buff potion for the listed buff ID (e.g. 26 = Well Fed)

In the dedicated server console

PC Reported working
Did this work for you?

Give Item to Player

Gives a specific item to a player on the dedicated server (item name is case-sensitive)

In the dedicated server console

PC Reported working
Did this work for you?

Help Command

Shows the list of available commands in the dedicated server console

In the dedicated server console

PC Reported working
Did this work for you?

Kick Player

Kicks a player off the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Mobile Difficulty

Manual difficulty setting meant for mobile servers

In the dedicated server console

PC Reported working
Did this work for you?

Print Command

Prints an informational message in the dedicated server console

In the dedicated server console

PC Reported working
Did this work for you?

Rain Command

Starts or stops rain on the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Save World

Saves the world on the dedicated server without stopping it

In the dedicated server console

PC Reported working
Did this work for you?

Save World and Stop Server

Saves the world on the dedicated server, then stops the server

In the dedicated server console

PC Reported working
Did this work for you?

Server: ban player

Bans a named player from the server

Type in the dedicated server console window

PC Reported working
Did this work for you?

Banned players cannot rejoin; banlist file configurable with -banlist

Server: help

Lists all available dedicated server console commands

Type into the dedicated server console window

PC Reported working
Did this work for you?

No forward-slash prefix needed

Server: kick player

Kicks a named player from the server

Type in the dedicated server console window

PC Reported working
Did this work for you?

Does not prevent rejoining; use ban for that

Server: password

Shows current server password, or changes it

Type in the dedicated server console window

PC Reported working
Did this work for you?

None

Server: playing

Shows list of currently connected players

Type in server console, or type /playing in-game chat

PC Reported working
Did this work for you?

Server console version needs no slash

Server: save / exit

save writes the world; exit saves and shuts down; exit-nosave shuts down without saving

Type in the dedicated server console window

PC Reported working
Did this work for you?

exit-nosave discards unsaved progress

Server: say

Sends a message to all players in yellow, prefixed with <server>

Type in the dedicated server console window

PC Reported working
Did this work for you?

No slash prefix needed

Server: time commands

Sets game time: dawn 4:30 AM, noon 12:00 PM, dusk 7:30 PM, midnight 12:00 AM

Type in the dedicated server console window

PC Reported working
Did this work for you?

None

Server: version

Prints the server's version number

Type in the dedicated server console window

PC Reported working
Did this work for you?

None

Set Home Point

Sets your current spot as a home point on the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Set Invasion Difficulty

Adjusts the difficulty of invasion events (server-side)

In the dedicated server console

PC Reported working
Did this work for you?

Set Time

Changes the in-game time on the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Show Deaths From Any Cause

Shows your total death count for any cause combined; Desktop/Console/Mobile feature added in 1.4.4

Tap H (or M on some platforms) to toggle the count on-screen

All platforms Reported working
Did this work for you?

Show Enemy Deaths

Shows enemy kill/death total; Desktop/Console/Mobile feature added in 1.4.4

Tap L (or M on some platforms) to toggle the count on-screen

All platforms Reported working
Did this work for you?

Show NPC Deaths

Shows total NPC deaths; Desktop/Console/Mobile feature added in 1.4.4

Tap K (or M on some platforms) to toggle the count on-screen

All platforms Reported working
Did this work for you?

Show Player-Caused Deaths

Shows deaths caused by other players; Desktop/Console/Mobile feature added in 1.4.4

Tap J (or M on some platforms) to toggle the count on-screen

All platforms Reported working
Did this work for you?

Spawn Boss

Spawns a boss where the player is standing, on the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Toggle God Mode

Toggles god mode on/off on the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Toggle Hardcore Mode

Switches the server's hardcore difficulty setting

In the dedicated server console

PC Reported working
Did this work for you?

Wind Command

Controls wind effects on the dedicated server

In the dedicated server console

PC Reported working
Did this work for you?

Unlockables

6

Journey Mode: Duplication Menu

Spawns a full stack of any item you have already researched

Journey Mode character only; open the Power Menu (rabbit icon) beside inventory

PC Reported working
Did this work for you?

Duped weapons/accessories never spawn with prefixes

Journey Mode: enemy spawn rate slider

Scales enemy spawns from 0x (none spawn) to 10x normal

Journey Mode character only; Personal Power Menu

PC Reported working
Did this work for you?

Setting 0x disables natural spawns, blocking event completion

Journey Mode: Godmode

Immunity to all damage and knockback, no breath loss underwater, no mana cost

Journey Mode character only; toggle from inventory Power Menu

PC Reported working
Did this work for you?

Journey Mode characters cannot be used in Classic/Expert/Master worlds

Journey Mode: increased placement range

Extends block placement/destruction range from 5 tiles to 18 tiles

Journey Mode character only; Personal Power Menu

PC Reported working
Did this work for you?

Enabled by default when starting Journey Mode

Journey Mode: time control

Freeze time, jump to dawn/noon/dusk/midnight, or speed time from 1x to 24x

Journey Mode character only; Time Menu in the Power Menu

PC Reported working
Did this work for you?

Freezing time does not stop enemies or NPCs from moving

Journey Mode: weather and infection control

Sliders for wind and rain (clear to monsoon); toggle Corruption/Crimson/Hallow spread on or off

Journey Mode character only; Power Menu

PC Reported working
Did this work for you?

Weather/enemy sliders in multiplayer affect enemies around you only

Tips

1

Journey Mode: research quantities

Sacrificing items unlocks them for duplication: weapons/accessories need 1, treasure bags 3, acorns 50, consumables/blocks 100

Drag items into the Research menu of a Journey Mode character

PC Reported working
Did this work for you?

Partial progress counts; research is tied to the character, not the world

A code stopped working after a patch? Tell us and we will retest it. Know one we are missing? Submit it here. What the tested badge means, and which codes carry it.

Tools for Terraria cheats

Quick answers

About Terraria cheats

How many cheats does Terraria have?
This page lists 42 for Terraria: 35 console commands, 6 unlockables and 1 tip.
How do you enter cheats in Terraria?
On PC: in the dedicated server console. On All: tap H (or M on some platforms) to toggle the count on-screen. A few codes use a different method, shown beside each one.
Do cheats disable achievements in Terraria?
None of the 42 codes here carries an achievement or trophy warning in our notes. That is not a guarantee, so keep a separate save if achievements matter to you.
Which platforms are these Terraria cheats for?
The codes on this page are listed for PC (38 codes). Where the game came out on other systems, the codes may differ there.
Are these Terraria cheats still working?
All 42 are marked "Reported working": each comes from a documented source, and none has been run by us yet. A code we test gets a dated "Tested" badge.