About this mod
A simple BepInEx / HarmonyX plugin to enable use of the console.
- Requirements
- Permissions and credits
- Changelogs
- Donations
This was developed using BepInEx v5.4.23.2 x64.
All code used in my mods is located on GitHub, publicly accessible, here!
This works by patching the game to believe you are in debug mode and using the Unity editor.
Along with this, I removed the arbitrary requirement of entering "EnableCheats" in the console as it seemed redundant.
This means you'll see that command in the list but it won't do anything.
- Install BepInEx, follow their install guide.
- Place the ConsoleEnable.dll in the BepInEx/plugins directory.
- Launch the game, load a save, then use the backquote (`) key to open the console.*
- Type help for a list of commands.
* If this fails, the default keybind from the developer is CTRL + F1 (as of version 1.0.3)
Some of my favorite commands:
- godmode - Makes the player invulnerable as well as lets you destroy resources in one hit.
- killspiders - Kills spiders that spawn in caves.
- givemoney # - Gives you money, whatever amount.
- settime # - Adjusts time to whatever you set. Warning: some events are triggered by time / day, so be cautious here.
There are a bunch of commands available. I will list them here with their documented usage (as generated by ChatGPT), but I have not tested the vast majority. Comment your testing, if you desire, and I'll update this.
I cannot and will not guarantee the accuracy of this list!
- help
- Usage: `help`
- Description: Displays a list of all available commands.
- Example: `help`
- explore
- Usage: `explore`
- Description: Gives the player 100 units of various exploration-related items such as different types of wood, stone, metal bars, and other resources.
- Example: `explore`
- freestuff
- Usage: `freestuff`
- Description: Provides the player with 100 units of assorted items including stones, woods, ores, and crafting materials.
- Example: `freestuff`
- alchemy
- Usage: `alchemy`
- Description: Grants the player 50 units of special mushrooms used in alchemy.
- Example: `alchemy`
- begin
- Usage: `begin`
- Description: Gives the player starter items, such as the "StoneMachete".
- Example: `begin`
- tools
- Usage: `tools`
- Description: Provides the player with basic tin tools, including an axe, pickaxe, hoe, watering can, fishing rod, bug net, and whip.
- Example: `tools`
- coppertools
- Usage: `coppertools`
- Description: Gives the player copper-tier tools.
- Example: `coppertools`
- irontools
- Usage: `irontools`
- Description: Provides the player with iron-tier tools.
- Example: `irontools`
- moonstonetools
- Usage: `moonstonetools`
- Description: Gives the player moonstone-tier tools.
- Example: `moonstonetools`
- volcanictools
- Usage: `volcanictools`
- Description: Provides the player with volcanic-tier tools.
- Example: `volcanictools`
- giveitem or gi
- Usage: `giveitem <ItemName> <Amount>`
- Description: Gives the player a specified amount of the specified item.
- Example: `giveitem CopperBar 50`
- Item Names: English Localized (other languages could be added, view my GitHub)
- ti
- Usage: `ti <ItemName> <Amount>`
- Description: Removes a specified amount of the specified item from the player's inventory.
- Example: `ti CopperBar 10`
- giveallitems
- Usage: `giveallitems`
- Description: Provides the player with the maximum stack of all items, excluding blueprints.
- Example: `giveallitems`
- givemoney or gm
- Usage: `givemoney <Amount>`
- Description: Adds the specified amount of money to the player's balance.
- Example: `givemoney 1000`
- endday
- Usage: `endday` or `endday <seconds>`
- Description: Ends the current in-game day immediately or after the specified number of seconds.
- Example: `endday` or `endday 10`
- unlockblueprint
- Usage: `unlockblueprint <BlueprintName>`
- Description: Unlocks the specified blueprint for the player.
- Example: `unlockblueprint WoodenFence`
- unlockrecipe
- Usage: `unlockrecipe <RecipeName>`
- Description: Unlocks the specified recipe for the player.
- Example: `unlockrecipe HealthPotion`
- unlockall
- Usage: `unlockall`
- Description: Unlocks all blueprints and recipes for the player.
- Example: `unlockall`
- unlockalldrawings
- Usage: `unlockalldrawings`
- Description: Unlocks all blueprint drawings for the player.
- Example: `unlockalldrawings`
- unlockallrecipes
- Usage: `unlockallrecipes`
- Description: Unlocks all recipes for the player.
- Example: `unlockallrecipes`
- unlockallshops
- Usage: `unlockallshops`
- Description: Unlocks all shop items for the player.
- Example: `unlockallshops`
- lockrecipe
- Usage: `lockrecipe <RecipeName>`
- Description: Locks the specified recipe, removing it from the player's unlocked recipes.
- Example: `lockrecipe HealthPotion`
- freeblueprints
- Usage: `freeblueprints`
- Description: Unlocks a predefined set of blueprints for the player.
- Example: `freeblueprints`
- settime
- Usage: `settime <hours>` or `settime <hh:mm:ss>`
- Description: Sets the in-game time to the specified hour or time.
- Example: `settime 14` or `settime 08:30:00`
- givetokens
- Usage: `givetokens <TokenTypeName> <Amount>`
- Description: Gives the player the specified amount of tokens of the specified type.
- Example: `givetokens GoldToken 5`
- startminigame
- Usage: `startminigame <MinigameName>`
- Description: Starts the specified minigame.
- Example: `startminigame FishingChallenge`
- growforest
- Usage: `growforest`
- Description: Regenerates the forest by spawning trees and other flora.
- Example: `growforest`
- growgrass
- Usage: `growgrass`
- Description: Regenerates grass in the current level.
- Example: `growgrass`
- cleargrass
- Usage: `cleargrass <CuttingRange>`
- Description: Clears grass within the specified range around the player.
- Example: `cleargrass 10`
- flipinstances
- Usage: `flipinstances <Range>`
- Description: Flips instances of objects (e.g., tiles) within the specified range around the player.
- Example: `flipinstances 5`
- getlightamount
- Usage: `getlightamount`
- Description: Displays the current light amount at the player's location.
- Example: `getlightamount`
- rebakenavmesh
- Usage: `rebakenavmesh`
- Description: Rebuilds the navigation mesh for the current level.
- Example: `rebakenavmesh`
- listunlockedrecipes
- Usage: `listunlockedrecipes`
- Description: Lists all recipes currently unlocked by the player.
- Example: `listunlockedrecipes`
- clear
- Usage: `clear`
- Description: Clears the console log.
- Example: `clear`
- setrtpc
- Usage: `setrtpc <name> <value>`
- Description: Sets the value of the specified Real-Time Parameter Control (RTPC) in the audio system.
- Example: `setrtpc MusicVolume 0.5`
- setglobalstate
- Usage: `setglobalstate <key> <value>`
- Description: Sets a global game state variable to the specified value.
- Example: `setglobalstate WeatherState 2`
- getglobalstate
- Usage: `getglobalstate <key>`
- Description: Retrieves and displays the value of the specified global game state variable.
- Example: `getglobalstate WeatherState`
- setplayerstate
- Usage: `setplayerstate <key> <value>`
- Description: Sets a player-specific state variable to the specified value.
- Example: `setplayerstate Health 100`
- getplayerstate
- Usage: `getplayerstate <key>`
- Description: Retrieves and displays the value of the specified player state variable.
- Example: `getplayerstate Health`
- xpbomb
- Usage: `xpbomb` or `xpbomb <amount>`
- Description: Spawns experience orbs of all types at the player's location. Optional `amount` specifies the XP value.
- Example: `xpbomb` or `xpbomb 200`
- dropxp
- Usage: `dropxp <Amount>`
- Description: Drops XP orbs of all types with the specified amount at the player's location.
- Example: `dropxp 150`
- givexp
- Usage: `givexp <amount>`
- Description: Gives the player the specified amount of experience points.
- Example: `givexp 500`
- resetcaves
- Usage: `resetcaves`
- Description: Resets all caves in the game.
- Example: `resetcaves`
- resetcave
- Usage: `resetcave`
- Description: Resets the cave in the current level.
- Example: `resetcave`
- startdanger
- Usage: `startdanger`
- Description: Triggers a danger event in the dungeon.
- Example: `startdanger`
- setsimulationspeed
- Usage: `setsimulationspeed <speedModifier>`
- Description: Sets the simulation speed (game time scale) to the specified value. Default is 1.0.
- Example: `setsimulationspeed 2.0`
- setgamespeed
- Usage: `setgamespeed <gameSecondsPerSecond>`
- Description: Sets the rate at which in-game time passes. Default is 60.
- Example: `setgamespeed 120`
- freeseeds
- Usage: `freeseeds`
- Description: Gives the player 100 units of all seed items.
- Example: `freeseeds`
- growcrops
- Usage: `growcrops <radius>`
- Description: Instantly grows all crops within the specified radius around the player.
- Example: `growcrops 15`
- spawnasloot
- Usage: `spawnasloot <ItemName>`
- Description: Spawns the specified item as loot at the player's location.
- Example: `spawnasloot GoldCoin`
- moneyasloot
- Usage: `moneyasloot <Amount>`
- Description: Spawns the specified amount of money as loot at the player's location.
- Example: `moneyasloot 500`
- teleport
- Usage: `teleport <locationName>` or `teleport <x> <y> <z>`
- Description: Teleports the player to the specified location or coordinates.
- Example: `teleport TownSquare` or `teleport 100 50 200`
- Level Listing: Here
- startcutscene
- Usage: `startcutscene <CutsceneName>`
- Description: Starts the specified cutscene at the player's current position.
- Example: `startcutscene IntroductionScene`
- godmode
- Usage: `godmode`
- Description: Enables god mode for the player, making them invincible.
- Example: `godmode`
- disablegodmode
- Usage: `disablegodmode`
- Description: Disables god mode for the player.
- Example: `disablegodmode`
- addtally
- Usage: `addtally <TallyKey> <Amount>`
- Description: Adds the specified amount to the given tally key.
- Example: `addtally EnemiesDefeated 10`
- fillinventory
- Usage: `fillinventory <ItemName>`
- Description: Fills the player's inventory with the specified item until no more space is available.
- Example: `fillinventory HealingPotion`
- clearinventory
- Usage: `clearinventory`
- Description: Clears all items from the player's inventory.
- Example: `clearinventory`
- startquest
- Usage: `startquest <QuestID>`
- Description: Activates the specified quest globally.
- Example: `startquest FindTheArtifact`
- startquestlocal
- Usage: `startquestlocal <QuestID>`
- Description: Activates the specified quest for the local player.
- Example: `startquestlocal FindTheArtifact`
- startallquestslocal
- Usage: `startallquestslocal`
- Description: Activates all available quests for the local player.
- Example: `startallquestslocal`
- forcecompletetask
- Usage: `forcecompletetask`
- Description: Forces completion of the next active quest task globally.
- Example: `forcecompletetask`
- forcecompletetasklocal
- Usage: `forcecompletetasklocal`
- Description: Forces completion of the next active quest task for the local player.
- Example: `forcecompletetasklocal`
- forceskiptoendofquest
- Usage: `forceskiptoendofquest`
- Description: Skips to the final task of the active quest for the local player.
- Example: `forceskiptoendofquest`
- forcecompletetrackedtask
- Usage: `forcecompletetrackedtask`
- Description: Forces completion of the tracked quest's current task for the local player.
- Example: `forcecompletetrackedtask`
- forceallcompletetasklocal
- Usage: `forceallcompletetasklocal`
- Description: Forces completion of all active quest tasks for the local player.
- Example: `forceallcompletetasklocal`
- givealllumas
- Usage: `givealllumas`
- Description: Gives the player all Luma eggs.
- Example: `givealllumas`
- upgradetool
- Usage: `upgradetool`
- Description: Upgrades the currently selected tool.
- Example: `upgradetool`
- ascendtool
- Usage: `ascendtool`
- Description: Increases the experience of the currently selected tool by 10.
- Example: `ascendtool`
- setday
- Usage: `setday <dayNumber>`
- Description: Sets the in-game day to the specified day number.
- Example: `setday 5`
- hide
- Usage: `hide`
- Description: Hides the root layer UI.
- Example: `hide`
- show
- Usage: `show`
- Description: Shows the root layer UI.
- Example: `show`
- hidegameui
- Usage: `hidegameui`
- Description: Hides the game layer UI.
- Example: `hidegameui`
- showgameui
- Usage: `showgameui`
- Description: Shows the game layer UI.
- Example: `showgameui`
- hideworldui
- Usage: `hideworldui`
- Description: Hides the world layer UI.
- Example: `hideworldui`
- showworldui
- Usage: `showworldui`
- Description: Shows the world layer UI.
- Example: `showworldui`
- showwindow
- Usage: `showwindow <WindowId>`
- Description: Opens the specified UI window.
- Example: `showwindow Inventory`
- hidewindow
- Usage: `hidewindow <WindowId>`
- Description: Closes the specified UI window.
- Example: `hidewindow Inventory`
- coords
- Usage: `coords`
- Description: Displays the player's current coordinates in the game world.
- Example: `coords`
- next
- Usage: `next`
- Description: Moves the player to the next temple room if applicable.
- Example: `next`
- ignorecost
- Usage: `ignorecost`
- Description: Enables the cheat to ignore resource costs for actions.
- Example: `ignorecost`
- spider
- Usage: `spider`
- Description: Spawns a spider in the cave for the local player.
- Example: `spider`
- setprof
- Usage: `setprof <ProfessionName>`
- Description: Adds the specified profession to the player.
- Example: `setprof Alchemist`
- allprofs
- Usage: `allprofs`
- Description: Adds all professions to the player.
- Example: `allprofs`
- chestcheat
- Usage: `chestcheat`
- Description: Activates a cheat related to treasure chests.
- Example: `chestcheat`
- resetchests
- Usage: `resetchests`
- Description: Resets all treasure chests to an unopened state.
- Example: `resetchests`
- setcraftingspeed
- Usage: `setcraftingspeed <craftingSpeed>`
- Description: Sets the crafting speed to the specified value. Default is 1.
- Example: `setcraftingspeed 2`
- setcropspeed
- Usage: `setcropspeed <cropGrowthSpeed>`
- Description: Sets the crop growth speed to the specified value. Default is 1.
- Example: `setcropspeed 1.5`
- spawnspider
- Usage: `spawnspider`
- Description: Spawns a spider at the player's location after a 2-second delay.
- Example: `spawnspider`
- spawnbee
- Usage: `spawnbee`
- Description: Spawns a bee at the player's current location.
- Example: `spawnbee`
- killspiders
- Usage: `killspiders`
- Description: Removes all spiders from the game world.
- Example: `killspiders`
- killbear
- Usage: `killbear`
- Description: Removes the first bear found in the game world.
- Example: `killbear`
- spawnghost
- Usage: `spawnghost`
- Description: Spawns a ghost for the local player.
- Example: `spawnghost`
- spawnblueprint
- Usage: `spawnblueprint <BlueprintName>`
- Description: Begins placement of the specified blueprint if the player has it unlocked.
- Example: `spawnblueprint WoodenHouse`
- unstuck
- Usage: `unstuck`
- Description: Executes the player's unstuck logic to free them from obstacles.
- Example: `unstuck`
- teleporttotile
- Usage: `teleporttotile <x> <y>`
- Description: Teleports the player to the specified tile coordinates.
- Example: `teleporttotile 100 200`
- bait
- Usage: `bait`
- Description: Gives the player 999 units of all bait items.
- Example: `bait`
- printwindowstate
- Usage: `printwindowstate`
- Description: Prints the current UI window state to the console.
- Example: `printwindowstate`
- enablewindowlog
- Usage: `enablewindowlog`
- Description: Enables logging of UI window events.
- Example: `enablewindowlog`
- disablewindowlog
- Usage: `disablewindowlog`
- Description: Disables logging of UI window events.
- Example: `disablewindowlog`
- nuke
- Usage: `nuke`
- Description: Removes all objects from the current level, effectively clearing it.
- Example: `nuke`
- loadlevel
- Usage: `loadlevel <levelName>`
- Description: Additively loads the specified level into the game.
- Example: `loadlevel DungeonLevel1`