Commands

From Galacticraft Wiki
Jump to: navigation, search

These are the in-game commands in Galacticraft 3 and Galacticraft 4. If you are playing on a server and for some reason they are not working, it may be the server owner changed the command permissions.

Commands always start with a / (slash). Arguments with <angle brackets> are required; arguments with [square brackets] are optional.

Commands available to all players

gcenergyunits

/gcenergyunits <unit> - changes the units used by Galacticraft to show how much energy something has or uses. The available units will depend on which other mods you have installed. Possible choices are:

  • gJ (Galacticraft Joules)
  • RF (Redstone Flux)
  • EU (EU - only if IC2 is installed)
  • MJ (Minecraft Joules - only if BuildCraft or EnderIO 2.0 is installed)
  • J (Mekanism Joules - only if Mekanism is installed)


gchelp

/gchelp - gives an in-game link to this Wiki.


gchouston

/gchouston - available in Galacticraft 4 only - rescues a player who is stuck on the Moon, or another planet or space dimension. It teleports the player back home to his bed on the Overworld (or to Overworld spawn if the player currently has no bed). Of course this is a one-way transfer, the player would need to build another rocket on the Overworld to return to space. The command must be typed twice to confirm that the player really wants to do this. (12 second timer)

If the game detects that a player is in a dying loop on the Moon or another planet, it will prompt for this command in chat. The player does not have to use the command but he can choose - if he uses it, there can be a chat sequence like this.

Uh, Houston, we've had a problem.... (Type /gchouston to abandon mission and return home.)
/gchouston
This is Mission Control, say again please? (To abandon mission, type /gchouston again to confirm.)
/gchouston
OK, stand by, <name>, teleporting to Overworld home position.

.

joinrace

/joinrace <team> - join the named Space Race team


ssinvite

/ssinvite <player> - allows the named player access to your space station


ssuninvite

/ssuninvite <player> - uninvites the named player from your space station, they will no longer have access


Op-only commands

These commands are available only for ops (or from the server console). Note that being in NEI's Cheat Mode is the same as being an op. In single player, you are automatically "Op" if you created the world and if you set "Enable cheats = On" in the world options when you created it (there are also ways for advanced users to change this later, by editing the levels.dat file).


dimensiontp

/dimensiontp [player] - take the named player directly to the Planet Selection Screen without riding a rocket. If the argument player is omitted, you will be teleported.


gcinv

/gcinv <save|restore|drop|clear> <playername> - applies the relevant command to the extended Galacticraft inventory slots (save the inventory for a later restore, clear it, or force drop all items). This is intended for use by automatic systems including other server mods and plugins. It can be used if you need to save+clear and later restore player inventories when they enter and leave a certain area (for example, a Spleef arena or other BattleArena). Detailed guide to the /gcinv command


gckeeploaded

/gckeeploaded - keeps a dimension (for example, a space station) from unregistering on a server when all players have left the dimension. This is needed for certain things to work properly on servers, for example Essentials teleport commands including /home and /warp. There may be other solutions for the same problem. It should not be needed for planets, which are static dimensions (they stay registered all the time). It will not cause any lag. See also: Tutorials/Space Station for Server Admins


gckit

/gckit [<playername>] - gives a Space Emergency Kit item to the named player, or to yourself if no player was specified.


gcastrominer

/gcastrominer <show|reset|set<number>> <playername> - shows the number of Astro Miners a player currently has placed in the world. It can be reset to 0, or set to a given number. Players are not allowed to place more Astro Miners than a server set maximum limit (controlled by the config setting ```astroMinerMax``` in planets.conf, the default is 6). A situation where a server admin might use this is if a player lost an Astro Miner or it was destroyed by a chunk reset, map save error, etc etc.


gcssnewowner

/gcssnewowner <dim#> <playername> Each space station has 1 player who 'owns' it, and each player can only own 1 space station per planet orbited. Ownership gives guaranteed access to the space station for that player from his rockets, and allows the player to use the ```/ssinvite``` and ```/ssuninvite``` commands to invite his friends. The ```/ggssnewowner``` command allocates a new owner to an existing space station. Note: this command does not check whether the new player already owns a space station orbiting the same planet - but if the new player already owns a space station, he will lose ownership of it, so it will be ownerless until a new owner for it is set using this command.


Permission nodes

Permission nodes (used by some Bukkit plugins to control use of commands on servers - for example to let different ops use different commands, or to let anyone in creative mode use certain commands) are printed in the server log during game start-up.

All the Galacticraft commands which are usable by ops only have required permission level 2, except ```/gckeeploaded``` which requires permission level 4.

Galacticraft 3

Here is a summary of all commands in Galacticraft 3 with their permission required in versions 3.0.12.480 and later (earlier versions had some incorrect op permissions, and server owners are ``strongly recommended`` to upgrade to version 480):

Action Command Op? Permission node
Invite other player to your space station /ssinvite <player> No micdoodle8.mods.galacticraft.core.command.CommandSpaceStationAddOwner
Remove other player from your space station /ssuninvite <player> No micdoodle8.mods.galacticraft.core.command.CommandSpaceStationRemoveOwner
Change energy units display in GC machines /gcenergyunits No micdoodle8.mods.galacticraft.core.command.CommandGCEnergyUnits
Join a space race team that you are invited to /joinrace <teamname> No micdoodle8.mods.galacticraft.core.command.CommandJoinSpaceRace
Display a help message (links to this Wiki) /gchelp No micdoodle8.mods.galacticraft.core.command.CommandGCHelp
Instant teleport to planets screen (all tier access) /dimensiontp [<player>] Yes micdoodle8.mods.galacticraft.core.command.CommandPlanetTeleport
Set dimension to stay loaded /gckeeploaded Yes micdoodle8.mods.galacticraft.core.command.CommandKeepDim
GCInv command for use by plugins /gcinv Yes micdoodle8.mods.galacticraft.core.command.CommandGCInv
Control the number of AstroMiners used /gcastrominer Yes micdoodle8.mods.galacticraft.core.command.CommandGCAstroMiner
Change a Space Station's owner /gcssnewowner [<dim#>] [<player>] Yes micdoodle8.mods.galacticraft.core.command.CommandSpaceStationChangeOwner

Galacticraft 2

Action Command Permission node
Invite other player to your space station /ssinvite <player> micdoodle8.mods.galacticraft.core.command.GCCoreCommandSpaceStationAddOwner
Remove other player from your space station /ssuninvite <player> micdoodle8.mods.galacticraft.core.command.GCCoreCommandSpaceStationRemoveOwner