Rustcraft Wiki Get the game

Commands

Commands are typed in the chat: press T, or / to open the chat with the slash already typed. As you type, the chat suggests command names, arguments and item names: take a suggestion with Tab, move between them with ↑↓. A line it already knows to be wrong shows what the server would answer.

Who can use them

  • In singleplayer you can run every command.
  • On a server, only /list is open to everyone. Every other command, those added by mods included, is for operators; others get "You must be an operator to use /…". See multiplayer to become one.
  • The answer to a command goes only to whoever typed it.

All commands

SyntaxWhat it does
/time set <day|night>Jumps forward to the next noon or midnight.
/give <item> <count>Gives you items.
/gamemode <creative|survival>Changes your own game mode.
/weather <clear|rain|thunder>Sets the weather.
/difficulty <peaceful|easy|normal|hard>Sets the difficulty of the world.
/locate <place>Finds the nearest biome, village, dungeon, shipwreck or cave biome.
/listNames the players online. Open to everyone.
/op <player>, /deop <player>Makes a player an operator, or no longer one.
/kick <player> [reason]Disconnects a player.
/ban <player> [reason], /pardon <player>Bans a player, or lifts the ban.
/whitelist <on|off|list>, /whitelist <add|remove> <player>Manages the whitelist.

Words in <angle brackets> are required; [reason] may be left out. a|b means one of the words.

/give

/give oak_log 64
/give iron_ingot 10
/give diamond_sword 1

The count is required, and must be a whole number above 0. The items go to you, the player who typed the command. What does not fit in your inventory falls at your feet, up to another 36 stacks; anything beyond that is lost, and the answer says how many.

Item names

An item's name is its English name in lower case, with underscores for spaces: Oak Log is oak_log, Iron Ingot is iron_ingot. Case does not matter, and OakLog works too. The chat suggests names as you type them.

A few items have a command name that differs from the name you see:

ItemCommand name
Bricksbrick_wall
Oak Doordoor
White Woolwool
Stone Wallstone_low_wall
Cobblestone Wallcobblestone_low_wall
Hewn Stone Wallhewn_stone_low_wall
Limestone Walllimestone_low_wall
Slate Wallslate_low_wall
Brick Wallbrick_low_wall
Gloomrock Wallgloomrock_low_wall
Cobbled Gloomrock Wallcobbled_gloomrock_low_wall
Mapfilled_map
Unbaked Pieraw_pie
Potion of Healinghealing_potion
Potion of Night Visionnight_vision_potion
Potion of Water Breathingwater_breathing_potion
Potion of Fire Resistancefire_resistance_potion
Potion of Swiftnessswiftness_potion
Potion of Strengthstrength_potion
Potion of Regenerationregeneration_potion
Splash Potion of Poisonsplash_poison_potion
Splash Potion of Slownesssplash_slowness_potion
Splash Potion of Weaknesssplash_weakness_potion

Every item is on the items page.

/time

/time set day jumps to the next noon, /time set night to the next midnight. The clock never goes back, and on a server the time changes for everyone. See day, night and weather.

/weather

/weather clear, /weather rain or /weather thunder starts that weather for the length it would last on its own, then the cycle goes on as usual. It applies to the whole world.

/gamemode

/gamemode creative or /gamemode survival changes your own game mode only; there is no adventure mode. Case does not matter. Leaving creative while flying lands you. See game modes.

/difficulty

/difficulty peaceful, easy, normal or hard sets the difficulty of the world. Peaceful removes every hostile creature on the next tick. How difficulty changes the damage of hostiles is on the combat page.

/locate

/locate finds the nearest place of a kind to you and answers with its coordinates and distance, for example "The nearest village is at 412 -880, 976 blocks away". A search may take a moment; the answer comes when it is done.

CommandFindsThe coordinates of
/locate biome <biome>A biome, within 4096 blocksA column of it (X and Z)
/locate villageA village, within 4096 blocksIts centre (X and Z)
/locate ruinA ruin, within 2048 blocksIts door (X, Y and Z)
/locate cryptA crypt, within 2048 blocksIts door (X, Y and Z)
/locate sanctuaryA sanctuary, within 2048 blocksIts door (X, Y and Z)
/locate shipwreckA shipwreck, within 2048 blocksIts chest (X, Y and Z)
/locate lush_cavesLush caves, within 2048 blocksA spot in them (X, Y and Z)
/locate crystal_cavesCrystal caves, within 2048 blocksA spot in them (X, Y and Z)
/locate basalt_galleriesBasalt galleries, within 2048 blocksA spot in them (X, Y and Z)
  • Lush caves, crystal caves and basalt galleries exist only in deep worlds.
  • A world created without villages or dungeons answers that it has none.
  • See structures for what villages and dungeons hold.

Biome keys

/locate biome takes the key of a biome, such as /locate biome jungle. A biome added by a mod is written with its namespace, such as mymod:name; the base game's can also be written rustcraft:jungle.

BiomeKey
Plainsplains
Forestforest
Medium Mountainmedium_mountain
High Mountain Grasshigh_mountain_grass
Desertdesert
Ice Plainice_plain
Flower Plainsflower_plains
Shallow Oceanshallow_ocean
Oceanocean
Deep Oceandeep_ocean
Savannasavanna
Junglejungle
Jungle Edgejungle_edge
Flower Forestflower_forest
Forest Clearingforest_clearing
Grovegrove
Ice Spikesice_spikes
Riverriver

/list

/list answers with the players online, in alphabetical order: "2 players online: Alex, Steve". Anyone can run it.

Operator commands

These manage who may play on a dedicated server.

  • /op Alex, /deop Alex: make Alex an operator, or no longer one.
  • /kick Alex too loud: disconnects Alex, who sees "You were kicked from the server: too loud".
  • /ban Alex griefing: disconnects Alex and refuses them from then on, with the reason. /pardon Alex lifts the ban.
  • /whitelist on and /whitelist off: when on, only the players on the whitelist and the operators can join. /whitelist add Alex, /whitelist remove Alex and /whitelist list manage it.

Names are compared without their case. Except for /kick, the player need not be online. A name that holds spaces goes between quotes: /ban "Bad Guy". On a hosted world, members are managed from the Hosted worlds tab instead, and only /kick works.