Editing
Commands
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Usage == In the client, commands are entered via the [[chat]] window, which is displayed by pressing the {{key|T}} / [[File:Chat button.png|25px]]{{only|bedrock|short=1}} / {{Xbutton|onedpad-right}}{{only|bedrock|short=1}} or {{key|/}} key. Using the {{key|/}} key also enters the forward-slash that commands require as a prefix, so it is a useful shortcut. The {{key|Up}} and {{key|Down}} keys can be used to view previously entered text, including all previously executed commands. When the cursor is at a location corresponding to some types of argument (such as an ID), a list of applicable values appears above the text box. If the argument is already containing some characters, the list displays only those values containing the typed command/text. Pressing {{key|Tab}} while entering commands cycles through possible commands or arguments, and can be used to auto-enter them. Commands may also be entered in a multiplayer [[server]]'s console, but are '''not''' preceded by a {{key|/}} when entered this way. A server owner running commands in this way is often referred to as "ghosting". Commands in [[command block]]s ''can'' be preceded by a slash, but it is not required. Commands can be executed in the following ways; * Entered by a player in the chat window. * Executed by a [[command block]] or [[Minecart with command block]]. * In [[function]]s, as part of a [[data pack]]<sup>[<nowiki/>[[Java Edition]] only]</sup> or [[add-on|behavior pack]]<sup>[<nowiki/>[[Bedrock Edition]] only]</sup>. * In a multiplayer [[server]], entered in the console. * Click a [[Json text]] that has "run_command" action.{{only|java}} * Executed with a WebSocket server.{{only|bedrock}} * Executed by an [[NPC]].{{only|bedrock}} Most commands require the executor have a high enough [[permission level]]. That means most commands are available in the singleplayer world only if cheats are enabled, and available in multiplayer server only if the player is an operator. See [[permission level]] for details. === Enabling cheats in existing worlds === {{IN|java}}, in singleplayer worlds where cheats were not enabled at creation, they can be enabled on a temporary basis by opening the current game session to LAN play ( {{key|Esc}} β "Open to LAN", then "Allow Cheats" button and "Start LAN World"). The player does not actually need to be on a LAN or have others join. This is not permanent but allows the use of commands until the player quits the world, and changes the player makes via commands (items spawned, etc.) are saved with the world. The player can do this each time the player starts playing the world again. Note that this disables game pausing for the duration, so while open to LAN, the player should get somewhere safe or reload their world before using the Game Menu. The player can disable the LAN world by reloading the world. To permanently enable cheats, the [[level.dat]] file has to be edited. {{IN|bedrock}}, cheats can be toggled at any time in the "Game" tab of the settings menu. Enabling cheats in a world permanently prevents players from unlocking [[achievement]]s in that world, even if cheats are later turned off.
Summary:
Please note that all contributions to Kiiw may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Kiiw:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information