Commands
From StarMade Wiki
This article is a work-in-progress. Edits are welcome, however please keep in mind that they may be overwritten or removed if they are not in line with the intention of the article. |
All commands are executed by typing a forward slash / in the chat window, followed by the command.
To use the auto-complete feature, type a slash / and press TAB to list all commands that are available to you. Pressing TAB after you have typed part a command will list all available commands that start with what you have written. If there is only one option available, the command will then auto-complete for you. Note that if variables are a necessary component of the command, those variables will still need to be typed before the command will execute.
Contents
Console Commands
Command | Sample | Parameters | Description |
---|---|---|---|
give | /give schema Power 100 | PlayerName(String), ElementName(String), Count(Integer) | Gives player elements by name. |
giveid | /giveid Schema 2 100 | PlayerName(String), ElementName(String), Count(Integer) | Gives player elements by ID. |
give_credits | /give_credits Schema 10000 | PlayerName(String), Count(Integer) | Gives player credits. |
give_all_items | /give_all_items Schema 100 | PlayerName(String), Count(Integer) | Adds every item for a player. |
give_category_items | /give_category_items Schema 20 100 | PlayerName(string), Count(Integer), Terrain/Ship/Station(String) | Adds all items from a category for a player. |
save | /save myNewShip | CatalogName(String) | Saves the currently entered/selected object in the catalog. |
list_ships | /list_ships | - | Lists the current ship catalog. |
load | /load mySavedShip myIngameShip | CatalogName(String), ShipName(String) | Loads the object and places it in the nearest available spot. |
set_spawn | /set_spawn | - | Sets the spawnpoint for this player to the current position. |
jump | /jump | - | Jump to an object in the line of sight if possible. |
daytime | /daytime 12 | TimeInHours(Integer) | Sets the time of day in hours. |
search | /search myLostShipName | Ship/StationName(String) | Displays the sector of a ship/station by that name. |
teleport_self_home | /teleport_self_home | - | Teleports the currently controlled entity to the players spawnpoint. |
start_ship_AI | /start_ship_ai-1 | FactionID(Integer) | Will make current ship into an AI for a faction. |
stop_ship_AI | /stop_ship_ai | - | Stops current ship from acting like an AI. |
shop_restock | /shop_restock | - | Restocks the selected shop with items. |
spawn_item | /spawn_item Power 100 | BlockName(String), Count(Integer) | Spawn an item in front of you. |
change_sector | /change_sector 2 2 2 | X(Integer), Y(Integer), Z(Integer) | Teleports the current player to another sector. |
destroy_entity | /destroy_entity | - | Destroys the selected entity. |
destroy_entity_dock | /destroy_entity_dock | - | Destroys the selected entity and all docked children entities. |
spawn_mobs | /spawn_mobs mySavedShip -1 3 | CatalogName(String), FactionID(Integer), Count(Integer) | Spawn AI from catalog with factionID in random places around you. |
spawn_mobs_line | /spawn_mobs_line mySavedShip -1 3 | CatalogName(String), FactionID(Integer), Count(Integer) | Spawn AI from catalog with factionID at the point you are looking at. |
initiate_wave | /initiate_wave 5 20 -1 | Level(Integer), Seconds(Integer), FactionID(Integer) | Initiates an enemy wave. |
Crew Commands
Command | Sample | Parameters | Description |
---|---|---|---|
creature_animation_start | /creature_animation_start TALK_SALUTE loop/dont_loop 1 true/false | Animation(string), LoopMode(string), Speed(Float), FullBody(Boolean) | forces an animation for a creature |
creature_animation_stop | /creature_animation_stop | - | stops the forced animation |
creature_enter_gravity | /creature_enter_gravity | - | debug for gravity on AI creature. Forces entity into another entities gravity. |
creature_goto | /creature_goto | - | order selected to go to. creature will walk/float to spot the player is looking at. |
creature_idle | /creature_idle | - | makes the select one idle. |
creature_rename | /creature_rename ACreature | Name(String) | Renames the selected creature or AI character |
creature_roam | /creature_roam | - | makes the select one roam in a small space |
creature_script | /creature_script MyScript.lua | Script(String) | sets the creature to a script in /data/scripts/ |
creature_sit | /creature_sit | - | order selected to sit down. Player must be looking at the block they wish the creature to sit on. |
creature_stand_up | /creature_stand_up | - | order selected to stand up from sitting |
Administrator Commands
Command | Sample | Parameters | Description |
---|---|---|---|
server_message_broadcast | /server_message_broadcast info "Hello server!" | info, error(String), Message(String, in quotes) | Broadcasts a popup message with the given level of severity to all online players. |
server_message_to | /server_message_to info Schema "Hello Schema!" | info, error(String), PlayerName(String), Message(String, in quotes) | Sends a popup message with the given level of severity to the named player. |
kick | /kick Schema | PlayerName(String) | Kicks this player from the server. |
kill_character | /kill_character Schema | PlayerName(String) | Kills the entity with that name. |
last_changed | /last_changed | - | Shows the unique ID of the players that spawned and/or last modified the selected structure. |
ban_name | /ban_name Schema | PlayerName(String) | Bans this player name from the server. |
ban_ip | /ban_ip 133.713.371.337 | PlayerIP(String) | Bans this player IP from the server. |
list_banned_name | /list_banned_name | - | Lists all banned player names. |
list_banned_ip | /list_banned_ip | - | Lists all banned player IP's. |
unban_name | /unban_name Schema | PlayerName(String) | Unbans this player name on the server. |
unban_ip | /unban_ip 133.713.371.337 | PlayerIP(String) | Unbans this player IP on the server. |
teleport_to | /teleport_to Schema 0.0 1.0 3.5 | PlayerName(String), X(Float), Y(Float), Z(Float) | Teleports the currently controlled entity. |
teleport_self_to | /teleport_self_to 0.0 1.0 3.5 | X(Float), Y(Float), Z(Float) | Teleports the currently controlled entity. |
change_sector_for | /change_sector_for Schema 2 3 4 | Player(Integer), X(Integer), Y(Integer), Z(Integer) | Teleports any player to another sector. |
tp_to | /tp_to Schema | PlayerName(String) | Warp to player's position. |
tp | /tp Schema | PlayerName(String) | Warp a player to your position. |
add_admin | /add_admin Schema | PlayerName(String) | Gives admin rights to this player. |
list_admins | /list_admins | - | Lists all players with admin rights. |
remove_admin | /remove_admin Schema | PlayerName(String) | Removes admin rights from this player. |
force_save | /force_save | - | The server will save all data to disk. |
shutdown | /shutdown 120 | TimeToShutdown(Integer) | Shuts down the server after specified time (negative values will stop any ongoing countdown). |
god_mode | /god_mode schema true | PlayerName(String), Enabled(Boolean) | Enables/disables god mode for a player, making them invincible. |
invisibility_mode | /invisiblity_mode schema true | PlayerName(String), Enabled(Boolean) | Enables/disables invisibility mode for a player, making them invisible for other players. |
creative_mode | /creative_mode schema true | PlayerName(String), Enabled(Boolean) | Enables/disables creative mode for a player, allowing them access to the creative inventory. |
Faction Commands
Command | Sample | Parameters | Description |
---|---|---|---|
faction_create | /faction_create myNewFaction lazers4all | FactionName(String), Description(String) | Creates a name with this name and description. |
faction_edit | /faction_edit 1001 myNewFaction lazers4all | FactionID(Integer), FactionName(String), Description(String) | Edits a faction. |
faction_delete | /faction_delete 1001 | FactionID(Integer) | Deletes this faction. |
faction_list | /faction_list | - | Lists all current the servers factions. |
faction_join_id | /faction_join_id Schema 1001 | PlayerName(String), FactionID(Integer) | Adds this player to the faction belonging to this ID. |
faction_list_members | /faction_list_members 1001 | FactionID(Integer) | Lists all members of this faction. |
faction_set_id_member | /faction_set_id_member Schema 1001 | PlayerName(String), FactionID(Integer) | Sets a player to a faction ID (Debugging tool, doesn't replace join!) |
faction_mod_member | /faction_mod_member Schema 1 | PlayerName(String), Role(1-5)(Integer) | Sets a player to a role within the faction. |
faction_del_member | /faction_del_member Schema 1 | PlayerName(String), FactionID(Integer) | Removes a player from the faction. |
faction_mod_relation | /faction_mod_relation 1001 1002 enemy | FactionID(Integer), FactionID(Integer), enemy/ally/neutral(String) | Sets relationship of two factions |
faction_reinstitute | /faction_reinstitute | - | Adds ID's to players from faction members. |
faction_check | /faction_check | - | Checks sanity of factions (removes leftover/invalid factions). |
Advanced Commands
Command | Sample | Parameters | Description |
---|---|---|---|
debug_fsm_info | /debug_fsm_info false | true/false(boolean) | Shows FSM state of objects (Debug Command: slows down network.) |
repair_sector | /repair_sector 2 3 4 | X(Integer), Y(Integer), Z(Integer) | Attempts to correct the registry of a sector. |
restruct_aabb | /restruct_aabb | - | Reconstructs the AABB's of all objects on the server. |
sector_chmod | /sector_chmod 10 12 15 10 10 | SectorX(Integer), SectorY(Integer), SectorZ(Integer), +/-(String), peace/protect(String) | Changes the sector mode: example '/sector_chmod 8 8 8 + peace', available modes are 'peace'(no enemy spawn), 'protected'(no attacking possible). |
despawn_all | /despawn_all MOB unused true | ShipNameStart(String), Mode(used/unused/all)(String), ShipOnly(Boolean) | WARNING: this will delete the entites that start with the given pattern from the database! |
despawn_sector | /despawn_sector MOB_ unused true 2 2 2 | ShipNameStart(String), Mode(used/unused/all)(String), ShipOnly(Boolean), X(Integer), Y(Integer), Z(Integer) | WARNING: this will delete the entites of a sector that start with the given pattern from the database! |
populate_sector | /populate_sector 2 2 2 | X(Integer), Y(Integer), Z(Integer) | WARNING: this will populate the sector. Use this as a reset after using /despawn_sector! |
debug_id | /debug_id 1 | ID(Integer) | Sets the ID of an object to debug. |
catalog_enemy_spawnable | /catalog_enemy_spawnable mySavedShip | CatalogName(String) | Makes a catalog entry spawnable / not spawnable by enemies. |
update_shop_prices | /update_shop_prices | - | Updates the prices of all shops instantly. |
refresh_server_msg | /refresh_server_msg | - | Refreshes the server welcome message. |
build_mode_shift_speed | //build_mode_shift_speed 50 | //build_mode_shift_speed (Integer) | Changes how fast your camera moves while holding shift in build mode (10 is the Default speed. Integer can be a decimal. Double slash "//" is necessary in order for this command to work). |
orbital_cam_speed | //orbital_cam_speed 0.5 | //orbital_cam_speed (Integer) | Changes how fast your camera orbits around the entity you are in by holding '\' (blackslash) The integer relates to the number of rotations per second, can be a decimal.(1 is default speed. Double slash "//" is necessary in order for this command to work). |