DST Commands
DST Commands
builder:GiveAllRecipes()
c_supergodmode ()
minimap = TheSim:FindFirstEntityWithTag("minimap")
TheWorld.minimap.MiniMap:ShowArea (0,0,0,10000)
c_skip(num)
TheWorld:PushEvent("ms_setseason", "summer")
TheWorld:PushEvent("ms_setseason", "winter")
Go Adventuring
c_goadventuring()
Gives a set of starting items to the player.
Scenario
c_doscenario(scenario)
Apply a scenario script to the selection and run it.
Temperature
c_settemperature(degrees)
Sets your temperature to a selected percentage. Note: Use fractional numbers 0.90 =
90%.
God Mode
c_godmode()
It won't drain Sanity, Hunger or Health when attacked anymore. You cannot change
your stats with commands while in godmode. If you are dead, revives you(Reviving
via c_godmode() doesn't put you in godmode once revived). To deactivate God Mode
use the command again.
Maintain All
c_maintainall(ThePlayer)
Similar to supergodmode, but constantly regenerates all stats. To cancel, enter
c_cancelmaintaintasks(ThePlayer).
Mob Invisibility
c_makeinvisible()
Prevents mobs from targeting the player in combat. Does not work in all
circumstances.
There's many other commands, but they're hard to use and not very useful.
Player commands
Note: Most of them will not work if you are a client and not an admin sending a
remote control ( switching to remote mode with Ctrl ) .
Action Prediction
ThePlayer:EnableMovementPrediction(enable)
Enabled by default, setting it to "false" will exchange rubberbanding for
choppiness, but is often helpful for combat. This only does anything if executed by
a client, hosts do not have prediction.
Creative Mode
c_freecrafting()
GetPlayer().components.builder:GiveAllRecipes()
You can craft everything. Enter command again to disable creative mode.
Maximum Health
ThePlayer.components.health:SetMaxHealth(value)
Change the Maximum Health of your character
Maximum Sanity
ThePlayer.components.sanity:SetMax(value)
Change the Maximum Sanity of your character
Maximum Hunger
ThePlayer.components.hunger:SetMax(value)
Change the Maximum Hunger of your character
Pause Hunger
ThePlayer.components.hunger:Pause(true)
Your character won't starve anymore.
Werebeaver Transformations
c_setbeaverness(percentage)
Turn Woodie into the Werebeaver. Set to 1 to transform to a Werebeaver. Set to 0 if
you want to transform back to Woodie.
Kill a player
AllPlayers[number]:PushEvent('death')
Kills the player.
Resurrect a player
AllPlayers[number]:PushEvent('respawnfromghost')
Resurrects the player.
Teleport to a player
c_goto(AllPlayers[number])
Teleports you to to the player corresponding to the player number from
c_listallplayers().
As of June 25th, 2016, a new set of commands are introduced to call players. You
can call a player by their player name instead of player number
UserToPlayer('PlayerName'). For example, to kill a player called 'PlayerA' with
player number 5, instead of doing:
AllPlayers[5]:PushEvent('death')
This requires you to first run c_listallplayers() and figure out player number.
UserToPlayer('PlayerA'):PushEvent('death')
World commands
Teleport to Prefab
c_gonext("prefab")
After pressing enter, it teleports you to the first numerical instance of the named
prefab. If multiple iterations of the prefab exist, a list of the entity numbers
will be displayed in the console log, and each subsequent execution of the same
command will transport the player from entity to entity in the order they were
generated in the world.
Delete All
for k,v in pairs(Ents) do if v.prefab == "prefab" then v:Remove() end end
After pressing enter, it deletes every instance of whatever item prefab is entered.
Useful for long-running servers with lots of clutter.
local function tp() if x <= size + step then if z <= size + step then z = z + step
else x = x + step; z = -size; end else return true end end;
Note: There are 30 time units per segment. To skip a whole day one can either use
LongUpdate(480) or use multiplicative values such as LongUpdate(X*16*30) or
LongUpdate(X*TUNING.TOTAL_DAY_TIME), with X=days to skip.
Speed up simulation
c_speedup()
Speed up the simulation of world. some events are determined by time past in game,
and hence can be triggered to happen earlier through this speed up. Skipping would
not bring forward those events.
TheSim:SetTimeScale(X)
Set the time scale of the simulation to a specific value X. The normal time scale
corresponds to the value 1. The value 0 pauses the game. Note that console can not
be used while game is paused preventing to remove pause.
Skip phase
TheWorld:PushEvent("ms_nextphase")
Skips the current phase.
Set segments
TheWorld:PushEvent("ms_setclocksegs", {day=x,dusk=y,night=z})
Sets amount of segments. Errors if x + y + z adds up to over 16. Note that this
will get reset the next day.
Example:
TheWorld:PushEvent("ms_setclocksegs", {day=14,dusk=1,night=1})
Very long day, very short dusk and night (one segment for dusk and one for night)
TheWorld:PushEvent("ms_setseasonclocksegs", {summer={day=14,dusk=1,night=1},
winter={day=13,dusk=1,night=2}})
Very long day, very short dusk and night (one segment for dusk and one for night),
with a slightly longer night in winter.
Start Summer
TheWorld:PushEvent("ms_setseason", "summer")
Start summer
Start Winter
TheWorld:PushEvent("ms_setseason", "winter")
Start winter
When the RoG DLC is added, the additional commands will likely be
TheWorld:PushEvent("ms_setseason", "spring") and TheWorld:PushEvent("ms_setseason",
"autumn")
Start Rain
TheWorld:PushEvent("ms_forceprecipitation")
Start rain.
Stop Rain
TheWorld:PushEvent("ms_forceprecipitation", false)
Stop rain. This also includes Frog Rain.
Do Lightning Strike
TheWorld:PushEvent("ms_sendlightningstrike", ConsoleWorldPosition())
Lightning strike on mouse cursor. Will hit lightning rod instead if there is one
near
Meteor Strike
c_spawn("shadowmeteor", 1)
Meteor strike on mouse cursor. Spawns different kind of rocks randomly.
Measure Distance
print(math.sqrt(ThePlayer:GetDistanceSqToInst(ConsoleWorldEntityUnderMouse())))
Prints the distance between player and object under mouse to the console log
(displayed with Ctrl + L by default).
Network/Server Commands
Kick/Ban a player
TheNet:Kick(userid)
TheNet:Ban(userid)
Note that this can be accomplished more easily through the scoreboard. The userid
can be obtained from the AllPlayers table. Once you've found the number of the
player you want to kick (as shown above in the Other Player Commands section), you
can use AllPlayers[#].userid.
Example:
c_listallplayers()
[1] (KU_aabbccdd) Player1 <wolfgang>
if Player2 is going to be banned from the server, console command can be written as
TheNet:Ban(AllPlayers[2].userid)
or
TheNet:Ban("KU_AABBCCDD")
TheNet:BanForTime("KU_aabbccdd", 120).
This will ban the player with specified KU id for 120 seconds. This command should
be entered to both servers if server has multi-level option (caves and overworld).
Connect to a server
c_connect("IP address", port, "password")
If connecting conventionally doesn't work, it is possible to connect directly to an
IP address. By default, the port is 10999. If there is no password, you can leave
that part out: c_connect("10.0.0.8", 10999)
Count the number of something in the entire world, and return the value to your
character
ThePlayer.components.talker:Say(tostring(c_countprefabs("prefab")))
Send the command using remote. This returns the total number of something in the
entire world, and returns the value as though your character is talking.
Spawn Wormhole
Sadly no one line command, follow steps instead.
Spawn wormhole 1 using this command: worm1 = c_spawn("wormhole")
Spawn wormhole 2 using this command: worm2 = c_spawn("wormhole")
Create connections forth: worm1.components.teleporter.targetTeleporter = worm2
And back: worm2.components.teleporter.targetTeleporter = worm1
DONE!
Spawn a Domesticated Beefalo
function spawn_beef(tendency) local beef = c_spawn("beefalo");
beef.components.hunger:DoDelta(400);
beef.components.domesticatable:DeltaTendency(tendency, 1); beef:SetTendency();
beef.components.domesticatable.domestication = 1;
beef.components.domesticatable:BecomeDomesticated(); end
To spawn a Domesticated Beefalo after inputting the above command enter:
spawn_beef("DEFAULT")
To spawn a Beefalo with other tendencies, replace "DEFAULT" with any of the
following: "RIDER", "ORNERY", "PUDGY"
c_find("flower").Transform:SetPosition(AllPlayers[1]:GetPosition():Get())
Alter player size
ThePlayer.Transform:SetScale(number,number,number)
Alter size of prefab under mouse
c_select().Transform:SetScale(number,number,number)
Alter player color/transparency
ThePlayer.AnimState:SetMultColour(number,number,number,number)
Alter color/transparency of prefab under mouse
c_select().AnimState:SetMultColour(number,number,number,number)
Makes prefab under mouse pick-up-able
This command does usually crash the game if mods are enabled
c_select():AddComponent("inventoryitem")
Picking up a player does cause the game to crash for the player being picked up