Skip to content
WikilyWIKILY
All games36 Wikis · pick your game
Commands and cheatsAll commands

Switch game

36 Wikis · pick your game
Minecraft Java Edition in the Wikily appFree · 4.4★4.6★ · Full screenGet appGet app
Commands and cheats

Commands

Every command with its full syntax, arguments, permission level and examples to copy.

95 entries
Summary
/save-onServerTurns automatic saving of the world back on.
/sayChat and displaySends a chat message to every player, shown with the sender's name in square brackets.
/scheduleDebugging and developmentRuns a function, or all functions in a function tag, after a delay, or cancels a scheduled function.
/scoreboardScoreboard and dataCreates and manages scoreboard objectives, sets where they are shown, and reads or changes the scores of players and other entities.
/seedBlocks and worldShows the seed of the world.
/setblockBlocks and worldPlaces a block at a position, replacing whatever is there.
/setidletimeoutServerSets how many minutes a player may stay idle before the server kicks them.
/setworldspawnBlocks and worldSets the world spawn point, where new players appear and where players respawn when they have no spawn point of their own.
/spawnpointPlayersSets the personal spawn point of one or more players.
/spectatePlayersMakes a player in Spectator mode view the world through another entity, or stops doing so.
/spreadplayersEntitiesTeleports entities to random surface positions spread out around a center point.
/stopServerShuts down the server.
/stopsoundChat and displayStops sounds that are currently playing for the chosen players.
/stopwatchDebugging and developmentCreates, reads, restarts and removes named stopwatches that measure real time.
/summonEntitiesCreates a new entity, such as a mob, at a position.
/swingEntitiesMakes entities play their arm swing animation.
/tagEntitiesAdds, removes or lists the custom tags stored on entities, which selectors can then match with tag=.
/teamScoreboard and dataCreates and removes teams, moves players and other entities in and out of them, and changes team options such as color, friendly fire and name tag visibility.
/teammsgChat and displaySends a chat message that only the members of your own team can see. /tm is a shorter name for the same command.
/teleportEntitiesMoves entities to a position or to another entity, optionally setting where they look. /tp is a shorter name for the same command.
/tellrawChat and displaySends a message written as a text component to players, with full control over color, style, and click and hover actions.
/testDebugging and developmentCreates, finds, runs, resets and clears game tests, the automated test structures used by developers and data pack makers.
/tickDebugging and developmentControls how fast the game runs: changes the tick rate, freezes the game, steps it forward tick by tick, or runs ticks as fast as possible.
/timeBlocks and worldChanges or reads the time of a world clock, such as the day and night cycle, and can pause it or change how fast it runs.
/titleChat and displayShows a large title, a subtitle or an action bar message on the screens of players, and controls how long titles stay.
/transferServerSends players from this server to another server.
/triggerScoreboard and dataLets a player change their own score in a scoreboard objective of the trigger type, which map makers use to let players without operator rights send input.
/unpublishServerCloses a singleplayer world that was opened to other players, so it is singleplayer again.
/versionServerShows the version details of the game the server is running.
/waypointEntitiesLists the waypoints in the current dimension and changes the color or icon style of the waypoint that an entity shows on the locator bar.
/weatherBlocks and worldSets the weather to clear, rain or thunderstorm, optionally for a chosen length of time.
/whitelistServerManages the server whitelist, the list of players who are allowed to join when the whitelist is turned on.
/worldborderBlocks and worldShows or changes the world border: its width, center, the damage it deals and the warning shown to players near it.
Block States and PredicatesReferenceBlocks in commands are written as an id, optional states in square brackets and optional block data in braces. Commands that test blocks also accept block tags.
CoordinatesReferencePositions in commands are written as numbers separated by spaces. A number can be absolute, relative to the current position with ~, or relative to the facing direction with ^.
Game RulesReferenceGame rules switch parts of the game on or off or set a number. Minecraft Java Edition has 58 of them, changed with /gamerule, plus 1 that only exists with an experiment switched on.
Item ComponentsReferenceItems in commands are written as an id followed by components in square brackets. Components hold everything special about an item, such as its name, enchantments and durability.
Target SelectorsReferenceA target selector picks the players or entities a command acts on. It starts with @ and a letter and can be narrowed down with filters in square brackets.
Text ComponentsReferenceText components are the formatted text used by /tellraw, /title, signs, item names and entity names. A component is a quoted string, an object in braces with content and styling fields, or a list of components.
Entries: 95 · Page 2 of 2
Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions, suggest pages or help build it with us.Join Discord (opens Discord in a new tab)