Użytkownik:Frisk/brudnopis: Różnice pomiędzy wersjami

Z Minecraft Wiki Polska
Przejdź do nawigacji Przejdź do wyszukiwania
d Change pt-br: to pt:
/shrug
 
Linia 1: Linia 1:
{{budowa|tak}}
{{#invoke:Sprite|link|name=Inv}}


<!-- Aktualizacja komend do stanu ze snapshotów 1.9. Wymagane do przetłumaczenia wiele technicznych rzeczy, więc jeżeli zamierzasz pomóc bądź pewien że posiadasz wystaczającą wiedzę na temat komend. -->
<noinclude>
 
{{Użytkownik:Frisk/brudnopis|Lód|Niebieska ziemia}}
[[:en:Commands]]
</noinclude>
'''Komendy''' mogą być używane przez [[Gracz|graczy]], [[operator]]ów i [[blok poleceń|bloki poleceń]] w trybie wieloosobowym oraz w trybie jednego gracza (gdy użytkownik ma włączone używanie kodów). Niektóre komendy są dostępne w trybie jednego gracza nawet gdy używanie kodów nie jest włączone. Komendy mogą być wprowadzone z klienta gry lub konsoli serwera.
 
Komendy wprowadzane z klienta gry muszą być poprzedzone ukośnikiem (przykład: /kill). Wpisuje się je w oknie rozmów, które jest dostępne po naciśnięciu {{key|T}} lub bezpośrednio używając ukośnika ({{key|/}}).
 
Komendy wykonywane przez konsolę nie są poprzedzone ukośnikiem. Komendy w bloku poleceń mogą być poprzedzone ukośnikiem, ale nie jest to wymagane.
 
Naciśnięcie klawisza {{key|Tab}} powoduje wyświetlenie możliwych dokończeń komend co ułatwia pracę administratora serwera.
 
== Użycie ==
 
Komendy w [[blok poleceń|blokach poleceń]] '''mogą''' rozpoczynać się od ukośnika, ale nie jest to wymagane. Komendy w blokach poleceń mogą również wymagać dodatkowych argumentów, zazwyczaj nazwę gracza.
 
Większość komend jest używane tylko w następujących przypadkach:
 
* W [[gra wieloosobowa|grze wieloosobowej]] na wszelkiego typu mini-grach, wprowadzane przez [[operator]]ów bądź bloki poleceń.
* W innych grach wieloosobowych, wprowadzane przez gracza hostującego serwer [[LAN]] z włączonymi kodami, lub hostującego własny serwer wieloosobowy.
* W trybie jednoosobowym, gdy kody zostały uaktywnione w menu generowania świata.
 
Niektóre komendy są również dostępne w trybie jednoosobowym nawet z wyłączonymi kodami .
 
'''Note:''' We światach wieloosobowych gdzie kody nie zostały aktywowane, możliwe jest ich tymczasowe włączenie poprzez otwarcie aktywnej gry na rozgrywkę LAN ({{key|Esc}} → "{{tłumacz|Open to LAN}}, następnie "Zazwól na kody" oraz rozpocznij świat LAN). Nie musisz zapraszać innych graczy do swojego świata aby kody zaczęły działać. Ta metoda nie odblokuje kodów na zawsze, ale pozwoli na odblokowanie komend do czasu wyjścia ze świata, zmiany które w tym czasie dokonasz zostaną zapisane. Moźesz używać tej metody za każdym razem jak wchodzisz na świat. Warto jednak pamiętać że otworzenie świata LAN spowoduje że nie będziesz mógł spauzować gry poprzez kliknięcie przycisku "escape", oznacza to źe za kaźdym razem gdy odchodzisz od gry, powinieneś schować się w bezpiecznym miejscu. Pamiętaj że możesz wyłączyć udostępnianie LAN poprzez wyjście ze świata.
 
=== Tyldy ?-# ===
 
Wiele komend zezwala na użycie ''relatywnych'' koordynatów, są one określane z użytem  [[wikipedia:tylda|tyld]] (<code>~</code>). Numer następujący po tyldzie określa  ''offset'' from something rather than a coordinate. The sign of the offset specifies whether to go in the positive or negative direction for that axis. Pojedyncza tylda jest skrótem od <code>~0</code>.
 
Na przykład, komenda <code>tp 0 64 0</code> teleportuje gracza na określone w komendzie koordynaty (0, 64, 0), podczas gdy <code>tp ~3 ~ ~-3</code> teleportuje gracza o +3 bloki na osi "x" (wschód), nie zmieniając wysokości gracza, oraz -3 bloki na osi "z" (północ).
 
Zazwyczaj określone koordynaty mogą być mieszane z relatywnymi. Na przykład, <code>tp ~ 64 ~</code> spowoduje że gracz nie zmieni swojej pozycji względem osi "x" oraz "z" ale zostanie teleportowany na wysokość 64 kratek.
 
Miejsce wykonania komendy relatywnej może być uzależnione od komendy. Na przykład, dla komendy {{cmd|tp}} pozycja relatywna jest określana od miejsca gdzie przebywa byt. Other common offsets include from the position of the command's execution or from another coordinate specified by the command.
 
=== Selektory ===
 
We większości komend gdzie musi zostać określony gracz, możliwe jest określenie jednego bądź większej ilości graczy spełniających podane kryteria bez użycia nazw graczy. W tym celu można użyć odpowiednich selektorów oraz opcjonalnie argumentów określających kryteria.
 
Na przykład, aby zmienić tryb gry na kreatywny wszystkich graczy w drużynie "Czerwoni" zamiast używać ich nazw można użyć następującej komendy:
<code>/gamemode creative @a[team=Czerwoni]</code>
 
 
<!-- please retain double newline above for section differentiation -->
 
==== Selektory docelowe ====
 
{| class="floatright wikitable" style="clear:none;margin-left:1em;"
|+ Podsumowanie wszystkich selektorów
! Typ !! Funkcja
|-
| <code>@p</code> || najbliższy gracz
|-
| <code>@r</code> || przypadkowy gracz
|-
| <code>@a</code> || wszyscy gracze
|-
| <code>@e</code> || wszystkie byty
|}
 
Selektor docelowy określa kategorię bytów jakie mają być wybrane przy wykonywaniu komendy. Istnieją cztery różne selektory docelowe:
 
; <code>@p</code>
 
: Wybiera najbliższego gracza. Jeżeli jest więcej niż jeden gracz znajdujący się najbliżej, (umieszczeni w dokładnie tej samej odległości) wybierany jest gracz który najwcześniej dołączył do serwera.
 
: [[#Target selector arguments|Target selector arguments]] may be used to reduce the set of players from which the nearest player will be selected. For example, <code>@p[team=Red]</code> will target the nearest player on team Red even if there are other players closer.
 
: The <code>c</code> target selector argument can be used to increase the number of nearest players targeted (for example, <code>@p[c=3]</code> will target the three nearest players). When negative, <code>c</code> will reverse the order of targeting (for example, <code>@p[c=-1]</code> will target the ''farthest'' player).
 
; <code>@r</code>
 
: Targets a random player (or entity with the <code>type</code> target selector argument).
 
: [[#Target selector arguments|Target selector arguments]] may be used to reduce the set of players from which a random player will be targeted. For example, <code>@r[team=Red]</code> will only target a random player from team Red.
 
: The <code>c</code> target selector argument can be used to increase the number of random players targeted. For example, <code>@r[c=3]</code> will target three random players.
 
: When used without the <code>type</code> argument, <code>@r</code> always targets a random player. The <code>type</code> argument can be used to target non-player entities (for example, <code>@r[type=Zombie]</code> will target a random [[zombie]], <code>@r[type=!Player]</code> will target a random non-player entity, <code>@r[type=!Zombie]</code> will target a random non-zombie, etc.).
 
; <code>@a</code>
 
: Targets all players, including dead players. No other selector will find dead players.
 
: [[#Target selector arguments|Target selector arguments]] may be used to reduce the set of players targeted. For example, <code>@a[team=Red]</code> will only target players on team Red.
 
; <code>@e</code>
 
: Targets all entities (including players).
 
: [[#Target selector arguments|Target selector arguments]] may be used to reduce the set of entities targeted. For example, <code>@e[type=Cow]</code> will only target cows.
 
 
<!-- please retain double newline above for section differentiation -->
 
==== Target selector arguments ====
 
{| class="floatright wikitable" style="clear:none;margin-left:1em;"
|+ Summary of target selector arguments
! Argument(y) !! Objęte kryteria
|-
| <code>x</code>, <code>y</code>, <code>z</code> || [[koordynaty]]
|-
| <code>r</code>, <code>rm</code> || promień (max, min)
|-
| <code>m</code> || [[Tryby gry|tryb gry]]
|-
| <code>c</code> || count
|-
| <code>l</code>, <code>lm</code> || poziom doświadczenia (max, min)
|-
| <code>score_''name''</code> || maksymalny wynik
|-
| <code>score_''name''_min</code> || minimalny wynik
|-
| <code>team</code> || nazwa zespołu
|-
| <code>name</code> || nazwa bytu
|-
| <code>dx</code>, <code>dy</code>, <code>dz</code> || volume dimensions
|-
| <code>rx</code>, <code>rxm</code> || rotacja pionowa(max, min)
|-
| <code>ry</code>, <code>rym</code> || rotacja pozioma(max, min)
|-
| <code>type</code> || typ bytu
|}
 
After using a target selector, you can optionally use arguments to modify the set of targets selected. When used with <code>@a</code> or <code>@e</code>, arguments narrow down the number of targets from the full list to a specific few. When used with <code>@p</code> or <code>@r</code>, arguments narrow the number of targets down from the full list to a smaller set from which the nearest or random player is selected.
 
Add argument-value pairs as a comma-separated list contained within square brackets after the target selector variable:
 
: <code>@<variable>[<argument>=<''value''>,<argument>=<''value''>,…]</code>.
 
Spaces are not allowed around the brackets, equal signs, or commas, and only commas may be used to separate argument-value pairs.
 
Arguments are case-sensitive and unsupported arguments are silently ignored. For example, <code>kill @e[type=Creeper,r=20]</code> will kill all creepers in a 20-block radius, but <code>kill @e['''T'''ype=Creeper,r=20]</code> (the 't' in 'type' capitalized) will kill ''all'' entities (including players) in that radius because there is no longer a ''valid'' argument limiting the targets to just creepers.
 
If the first few arguments (up to four) are specified simply as values without identifying the arguments, they are assumed to be, in order, <code>x</code>, <code>y</code>, <code>z</code>, and <code>r</code>. Thus, the following two commands are identical:
:<code>/gamemode creative @a[x=10,y=20,z=30,r=4]</code>
:<code>/gamemode creative @a[10,20,30,4]</code>
 
;Selecting targets by coordinate
 
: <code>[x=''X'',y=''Y'',z=''Z'']</code> — Selects targets based on distance to that exact position. Combine with selecting by radius to select only targets at that specific position.
 
: The coordinates have to be integers and must be exact - [[#Tilde notation|tilde notation]] is not available for selector argument coordinates.
 
;Selecting targets by radius
 
: <code>[r=''R'']</code> — Selects only targets less than ''R'' blocks from the command's execution.
: <code>[rm=''RM'']</code> — Selects only targets more than ''RM'' blocks from the command's execution.
 
:If a coordinate (above) and either or both radius/i are both defined, the radius/i will center on the coordinate rather than the postion of the command's execution. By using a very distant coordinate and a very large radius, it is possible to simulate a near-linear edge to use to specify targets.
 
;Selecting targets by game mode
 
: <code>[m=''M'']</code> — Selects only targets with the specified [[game mode]]. Permitted value for ''M'' are:
:* <code>-1</code>: all game modes
:* <code>0</code>: survival mode
:* <code>1</code>: creative mode
:* <code>2</code>: adventure mode
:* <code>3</code>: spectator mode
 
;Selecting targets by count
 
: <code>[c=''C'']</code> — Selects only the specified number of targets. Usually in order of distance from the command executor.
 
: When used with <code>@p</code> or <code>@r</code>, this argument defaults to 1, so using a higher number will ''increase'' the number of nearest or random targets returned. When used with <code>@a</code> or <code>@e</code>, this argument returns only the nearest targets.
 
:If there are multiple nearest players, caused by them being precisely the same distance away, a player is selected by the time the player most recently joined the server. For example, ''if equally distant'', <code>@a[c=1]</code> will select the player who has been on the server the longest and <code>@e[type=Creeper,c=3]</code> will select the three oldest creepers.
 
: When used with a negative value, the order of targets is reversed. For example, <code>@p[c=-3]</code> will return the three ''farthest'' targets, and, if all potential targets are equally far away, <code>@e[c=-3]</code> will select the last three targets created.
 
;Selecting targets by experience level
 
: <code>[l=''L'']</code> — Selects only targets with no more than ''L'' experience levels.
 
: <code>[lm=''LM'']</code> – Selects only targets with no less than ''LM'' experience levels.
 
;Selecting targets by score
 
: <code>[score_''name''=''SCORE'']</code> — Selects only targets with a score in objective ''name'' of no more than ''SCORE''.
 
: <code>[score_''name''_min=''SCOREMIN'']</code> — Selects only targets with a score in objective ''name'' of no less than ''SCOREMIN''.
 
: For example, <code>@a[score_points_min=30,score_points=39]</code> will select all players with a score in objective "points" between 30 and 39 (inclusive).
 
{{see also|Scoreboard#Objectives}}
 
;Selecting targets by team
 
: <code>[team=''TEAM'']</code> — Selects only targets on team ''TEAM''.
 
: <code>[team=!''TEAM'']</code> — Selects only targets ''not'' on team ''TEAM''.
 
: <code>[team=]</code> — Selects only targets not on ''any'' team.
 
{{see also|Scoreboard#Teams}}
 
;Selecting targets by name
 
: <code>[name=''NAME'']</code> — Selects only targets named ''NAME''.
 
: <code>[name=!''NAME'']</code> — Selects only targets ''not'' named ''NAME''.
 
;Selecting targets by volume
 
: <code>[dx=''DX'',dy=''DY'',dz=''DZ'']</code>
 
: Selects only targets within the volume defined as starting from the location where the command was executed and extending ''DX'' blocks in the "x" direction (i.e., east/west), ''DY'' blocks in the "y" direction (i.e., upwards/downwards), and ''DZ'' blocks in the "z" direction (i.e., north/south). If an initial coordinate is specified with the <code>x</code>, <code>y</code>, and <code>z</code> arguments, that will be used instead of the position of the command's execution for the lower northwestern corner (<code>dx</code>, <code>dy</code>, and <code>dz</code> still specify ''distances'' from that coordinate; they do ''not'' specify a separate coordinate).
 
: It is possible to combine selection by radius and selection by volume, in which case the command will only select targets within the overlap of both regions (within certain radius/i of the volume's lower northwest corner and not outside the defined volume).
 
;Selecting targets by vertical rotation
 
: <code>[rx=''RX'']</code> — Selects only targets with a maximum vertical rotation of ''RX''.
: <code>[rxm=''RXM'']</code> — Selects only targets with a minimum vertical rotation of ''RXM''.
 
: Vertical rotation values vary from -90.0 facing straight up to 90.0 facing straight down (thus vertical rotation values increase with rotation ''downwards'').
 
;Selecting targets by horizontal rotation
 
: <code>[ry=''RY'']</code> — Selects only targets with a maximum horizontal rotation of ''RY''.
: <code>[rym=''RYM'']</code> — Selects only targets with a minimum horizontal rotation of ''RYM''.
 
: Horizontal rotation values vary from -180.0 (facing due north), to -90.0 (facing due east), to 0.0 (facing due south), to 90.0 (facing due west), to 179.9 (just west of due north) before wrapping back to -180.0 (thus horizontal rotation values increase with rotation to the right, or clockwise viewed from above).
 
;Selecting targets by type
 
: <code>[type=''TYPE'']</code> — Selects only targets of the specific entity type.
: <code>[type=!''TYPE'']</code> — Selects only targets ''not'' of the specific entity type.
 
: ''TYPE'' must be an [[Data values#Entity IDs|entity ID]] used to identify different types of entities internally (for example, <code>Creeper</code> for [[creeper]]s, <code>MinecartRideable</code> for regular [[minecart]]s, <code>PrimedTnt</code> for primed [[TNT]], etc.). Entity IDs are case-sensitive and invalid entity IDs will cause the command to fail.
 
: When used with <code>@r</code>, can change its normal behavior of targeting only players to target other entities.
 
 
<!-- please retain double newline above for section differentiation -->
 
 
== Tagi danych ==
[[NBT format|Tagi NBT]] mogą być określone dla przedmiotów i bytów stworzonych za pomocą '''/give''', '''/summon''' i innych komend. Tagi danych są [[wikipedia:Data structure|strukturami danych]]. Formatem jest [[wikipedia:JSON|JSON]], choć nie jest to ścisłe ([https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient%28boolean%29 lenient]). Dane są wyrażone jako lista par oddzielonych przecinkami. Każda para ma format <code><key>:<value></code>. Klucz to nazwa tagu NBT i wartość to dane, które powinny być przydzielone do niego. Nazwy tagów są wrażliwe na wielkość liter, a spacje poza kluczami lub wartościami są ignorowane.
 
Wartości mogą mieć różne typy:
 
* '''String''' jest fragmentem tekstu, może się znajdować się w cudzysłowiu. Cudzysłów musi być użyty jeśli String zawiera przecinki, nawiasy klamrowe lub kwadratowe. Aby użyć cudzysłowiu wewnątrz String, cytat jest chroniony przez odwrotny ukośnik (<code>\"</code>). Podczas używania komendy summon, pomijanie cytatów nie działa (z wyjątkiem cudzysłowiów) i klawisze nie mogą być cytowane (prawdopodobnie bug [https://mojang.atlassian.net/browse/MC-37661]). Powoduje to problem gdzie końcowe ukośniki nie działają (tak jak inne rzeczy, które powinny być pominięte), nawet gdy zostało to zrobione poprawnie. Powodem jest opuszczenie cudzysłowiu po ciągu znaków co powoduje nieprawidłowy obiekt JSON. <code>Przykład:"My name is \"Steve\""</code>
* '''Number''' to jedna lub więcej cyfr które mogą mieć wiodący znak (<code>+</code>/<code>-</code>). Są sklasyfikowane w liczbach całkowitych, które nie mają znaku dziesiętnego, dubletach, które używają kropki (<code>.</code>) jako znaku dziesiętnego, i Float, które mają również <code>f</code> dołączone za numerem. Przykłady: <code>liczba:-128</code>; <code>dublet:-1.2345</code>; <code>float:1.2f</code>
* '''Array''' (lub 'List') to wielokrotne, oddzielone przecinkami wartości wewnątrz kwadratowych nawiasów. Zawarte wartości nie muszą być tego samego typu. <code>Przykład:[1,2,3]</code>
* '''Boolean''' może być <code>true</code> lub <code>false</code>, ale używanie liczb równeż działa. Podczas użyuwania liczb, wszystkie pomiędzy 0 i poniżej 1 są false, pozostałe są true. <code>Przykład:true</code>
* '''Hash''' lub 'Object' mieści w sobie strukturę danych (jak wyjaśniono powyżej). Znajdują się one w kwadratowych nawiasach. '''Zauważ''': Tag danych sam w sobie jest typem Hash. Przykład: <code>{Health: 18, CustomName: "Friend"}</code>
* '''null''' zastępuje pustą wartość. Nie należy umieszczać apostrofów. <code>Przykład:null</code>
 
=== Data tags ===
 
A '''data tag''' is a sequence of text which describes a data structure using [[wikipedia:attribute-value pair|attribute-value pair]]s. Data tags are used in commands to specify complex data for players, entities, and some blocks.
 
A data tag consists of zero or more attribute-value pairs separated by commas and delineated by curly brackets. Each attribute-value pair consists of an attribute name and the attribute's value, separated by a colon. Some values, however, may themselves contain attribute-value pairs, allowing a data tag to describe a hierarchical data structure.
 
:''Example:'' <code>{name1:123,name2:"sometext",name3:{subname1:456,subname2:789}}</code>
 
The data structures that data tags describe are the same ones used in ''Minecraft'''s save files. These data structures are described in other articles and commands expect data tags to use the same attribute names (which are case-sensitive):
 
{| class="wikitable"
|+ Data Structure Specification Links
! Obiekty
! Examples
|-
| [[Chunk format#Tile Entity Format|Tile byty]]
| [[skrzynia|skrzynie]], [[piec]]e, [[blok poleceń|bloki poleceń]], [[spawner potworów|spawnery potworów]], [[tabliczka|tabliczki]], itp.
|-
| [[Player.dat#Item structure|Przedmioty]]
| przedmioty w [[ekwipunek|ekwipunku]] (includes specifications for enchantments, lore, zmienione nazwy, itp.)
|-
| [[Chunk format#Items|Byty przedmiotów]]
| przedmioty na podłożu
|-
| [[Chunk format#Mobs|Moby]]
| [[creeper]]y, [[krowa|krowy]], [[osadnik|osadnicy]], itd.
|-
| [[Chunk format#Projectiles|Projectiles]]
| [[strzały]], [[ognista kula|ogniste kule]], [[mikstury miotane|rzucone mikstury miotane]], itp.
|-
| [[Chunk format#Vehicles|Pojazdy]]
| [[łódka|łódki]], [[wagonik]]i, itp.
|-
| [[Chunk format#Dynamic Tiles|Dynamic tiles]]
| uzbrojone [[TNT]], spadające [[bloki]]
|-
| [[Chunk format#Other|Inne byty]]
| [[fajerwerk]]i, [[obraz]]y, [[ramka na przedmiot|ramki na przedmiot]], [[kula doświadczenia|kule doświadczenia]] itp.
|}
 
The defined data structures also expect the values to be of the correct type.
 
{| class="wikitable"
|+ Data Tags Value Types
! Typ
! Description
|-
| {{nbt|byte|Byte}}
| An integer between -128 and 127 (inclusive).
|-
| {{nbt|short|Short}}
| An integer between -32,768 and 32,767 (inclusive).
|-
| {{nbt|int|Int}}
| An integer between -2,147,483,648 and 2,147,483,647 (inclusive).
|-
| {{nbt|long|Long}}
| An integer between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807 (inclusive).
|-
| {{nbt|float|Float}}<br>{{nbt|double|Double}}
| Numbers which can have a decimal portion (for example, <code>3.14159</code>).
|-
| {{nbt|string|String}}
| A sequence of text, optionally delineated with double quotes.
 
Double quotes ''must'' be used if the String contains commas, curly brackets, or square brackets. To include a double quote ''inside'' a String, add a backslash before the double quote.
 
:''Example:'' <code>"Call me \"Ishmael\""</code>
|-
| {{nbt|list|List}}
| A sequence of values, separated by commas and delineated with square brackets. The values must be of the same type, which is dictated by the first value in the sequence.
 
:''Example:'' <code>[3.2,64.5,129.5]</code>
|-
| {{nbt|int-array|Int Array}}
| A sequence of integers between -2,147,483,648 and 2,147,483,647 (inclusive), separated by commas and delineated with square brackets.
|-
| style="white-space:nowrap" | {{nbt|compound|Compound}}
| A sequence of attribute-value pairs, separated by commas and delineated with curly brackets.
 
:''Example:'' <code>{X:3,Y:64,Z:129}</code>
 
Every data tag argument is itself a Compound.
|}
 
The {{nbt|byte-array|Byte Array}} type is unavailable to commands.<!-- see net/minecraft/server/MojangsonPrimitiveParser in mc-dev -->
 
Some commands may require that a number's type be specified by adding a letter (B, S, L, F, D) to the end of the value. For example, <code>3s</code> for a short, <code>3.2f</code> for a float, etc. (This doesn't work with I for int.) The letter can be uppercase or lowercase. When no letter is used and Minecraft can't tell the type from context, it assumes double (if there's a decimal point), int (if there's no decimal point and the number is small enough to store as an int), or string (if neither is true). A square-bracketed literal is assumed to be an int array if every element that's between commas is an int; otherwise, it is assumed to be a list. An exception applies: <code>[]</code> is an empty list, but <code>[,]</code> is an empty int array.
 
When commands such as {{cmd|testfor}}, {{cmd|testforblock}}, and {{cmd|clear}} are used to match data tags, they only check for the presence of the provided tags in the target entity/block/item. This means that the entity/block/item may have additional tags and will still match. This is true even for lists and arrays: the order of a list is not acknowledged, and as long as every requested element is in the list, it will match even if there are additional elements.
 
The format used for data tags is a [https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient%28boolean%29 lenient] form of [[wikipedia:JSON|JSON]].
 
=== {{anchor|Raw JSON Text}} Raw JSON text ===
 
The {{cmd|tellraw}} and {{cmd|title}} commands use a specific [//google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient%28boolean%29 lenient] [[wikipedia:JSON|JSON]] format to specify complicated text. Similar to the [[#NBT tags|NBT format notation]] above, concepts such as Strings, Objects (Compounds), and Lists are used to represent the various properties of the raw text.
 
Scores and target selectors are evaluated for a [[Sign]] when it is placed or edited and for a [[Written Book]] when it is "resolved" (opened for the first time after signing). They won't update after that, and they won't work if edited onto an existing sign with an NBT editor, or onto a book that's already marked resolved. There's no way to wrap text onto the next line of a sign or the next page of a book during evaluation; instead, the extra text will simply disappear.
 
The format of raw JSON text is a JSON Object which supports the following (mostly optional) elements:
<div class="treeview">
* {{nbt|compound}} The base chat component Object
** {{nbt|string|text}}: A string representing raw text to display directly in chat. Note that selectors such as "@a" and "@p" are not translated into player names; use '''selector''' instead. "\n" is newline (enter).
** {{nbt|list|extra}}: A list of additional objects, sharing the same format as the base object.
*** {{nbt|compound}} A list element with the same format as the base object (recursive). Note that all properties of this object are inherited by children except for '''text''', '''extra''', '''translate''', '''with''', and '''score'''. This means that children will retain the same formatting and events as this object unless they explicitly override them.
** {{nbt|string|color}}: The color to render this text in. Valid values are "black", "dark_blue", "dark_green", "dark_aqua", "dark_red", "dark_purple", "gold", "gray", "dark_gray", "blue", "green", "aqua", "red", "light_purple", "yellow", "white", and "reset" (cancels out the effects of colors used by parent objects). Technically, "bold", "underline", "italic", "strikethrough", and "obfuscated" are also accepted, but it may be better practice to use the tags below for such formats.
** {{nbt|string|bold}}: Boolean (true/false) - whether to render text in bold. Defaults to false.
** {{nbt|string|underlined}}: Boolean (true/false) - whether to render text underlined. Defaults to false.
** {{nbt|string|italic}}: Boolean (true/false) - whether to render text in italics. Defaults to false.
** {{nbt|string|strikethrough}}: Boolean (true/false) - whether to render text with a strikethrough. Defaults to false.
** {{nbt|string|obfuscated}}: Boolean (true/false) - whether to render text obfuscated. Defaults to false.
** {{nbt|string|insertion}}: When the text is shift-clicked by a player, this string will be inserted in their chat input. It will not overwrite any existing text the player was writing.
** {{nbt|compound|clickEvent}}: Allows for events to occur when the player clicks on text.
*** {{nbt|string|action}}: The action to perform when clicked. Valid values are "open_url" (opens '''value''' as a URL in the player's default web browser), "open_file" (opens the '''value''' file on the users computer), "twitch_user_info" (opens info about a twitch user), "run_command" (has '''value''' entered in chat as though the player typed it themselves. This can be used to run commands, but the command will fail if the player does not have the required permissions to use it), "change_page" (can only be used in written books) changes to page '''value''' if that page exists, and "suggest_command" (similar to "run_command", but the text only appears in the player's chat input, and is not automatically entered. Unlike '''insertion''', this will replace the existing contents of the chat input). "open_file" and "twitch_user_info" cannot be used with commands.
*** {{nbt|string|value}}: The URL, file, twitch user, chat, command or book page used by the specified '''action'''. Note that commands must be prefixed with the usual "/" slash.
** {{nbt|compound|hoverEvent}}: Allows for a tooltip to be displayed when the player hovers their mouse over text.
*** {{nbt|string|action}}: The type of tooltip to show. Valid values are "show_text" (shows raw JSON text), "show_item" (shows the tooltip of an item which can have NBT tags), "show_achievement" (shows formatted text describing an achievement or statistic. Normal achievement names are green, final achievement names are dark_purple, and statistic names are gray. In addition, a description is given for achievements), and "show_entity" (shows an entity's name, possibly its type, and its UUID).
*** {{nbt|string|value}}: The formatting of this tag varies depending on the action. Note that "show_text" is the only action to support an Object as the value; all other action values are Strings and should thus be wrapped in quotes.
**** ''"show_text"'': Can be either a raw String of text, or an Object with the same formatting as this base object. Note that '''clickEvent''' and '''hoverEvent''' do not function within the tooltip, but the formatting and '''extra''' tags still work.
**** ''"show_item"'': A ''string'' formatted like item NBT data. Contains the "id" tag, and optionally the "Damage" tag and "tag" tag (which is the same compound used as "dataTag" in the {{cmd|give}} command).
**** ''"show_achievement"'': The achievement or statistic's name. This uses the same format as achievement and statistic [[Scoreboard#Objectives|Scoreboard objective criteria]] and the {{cmd|achievement}} command.
**** ''"show_entity"'': A ''string'' formatted like a compound with the string values "type" (such as "Zombie"), "name", and "id" (should be an entity UUID, but can actually be any string).
** {{nbt|string|translate}}: The translation identifier of text to be displayed using the player's selected language. This identifier is the same as the identifiers found in lang files from assets or resource packs. The translated text will only be displayed if the '''text''' string is ''not'' used.
** {{nbt|list|with}}: A list of chat component arguments and/or string arguments to be used by '''translate'''.
*** The arguments are text corresponding to the arguments used by the translation string in the current language, in order (for example, the first list element corresponds to "%1$s" in a translation string).
** {{nbt|compound|score}}: A player's score in an objective. Displays nothing if the player is not tracked in the given objective. Ignored completely if '''text''' or '''translate''' is present.
*** {{nbt|string|name}}: The name of the player whose score should be displayed. Selectors (such as @p) can be used, in addition to "fake" player names created by the scoreboard system. In addition, if the name is "*", it will show the reader's own score (for example, <code>/tellraw @a {score:{name:"*",objective:"obj"}}</code> will show every online player their own score in the "obj" objective). Note that non-player entity scores (such as @e[type=Cow]) do not show, even if the entity has been given a score in the objective.
*** {{nbt|string|objective}}: The internal name of the objective to display the player's score in.
*** {{nbt|string|value}}: Optional. If present, this value is used regardless of what the score would have been.
** {{nbt|string|selector}}: A string containing a selector (@p,@a,@r, or @e) and, optionally, selector arguments. Unlike '''text''', the selector will be translated into the correct player/entity names. If more than one player/entity is detected by the selector, it will be displayed in a form such as 'Name1 and Name2' or 'Name1, Name2, Name3, and Name4'. Ignored completely if '''text''', '''translate''', or '''score''' is present. Clicking a player's name inserted into a /tellraw command this way will suggest a command to whisper to that player. Shift-clicking a player's name will insert that name into chat. Shift-clicking a non-player entity's name will insert its UUID into chat.
</div>
 
Due to the '''extra''' tag, the above format may be recursively nested to produce very complex and functional text strings. However, a raw json text doesn't have to be complicated at all: virtually all properties are optional and may be left out.
 
To be valid, each object must have at least either '''text''', '''translate''', '''score''' or '''selector''' (everything else is optional). As a matter of shorthand, however, the entire Object may be substituted with a String. In this case, that string will be considered the value of the '''text''' property. For example, <code>"This is raw text"</code> is equivalent to <code>{text:"This is raw text"}</code>. This shorthand substitution is valid anywhere a raw text object is required (including the base <''raw json message''> argument of {{cmd|tellraw}}, the elements of the '''extra''' list, and the '''value''' of a "show_text" '''hover_event''').
 
/tellraw also accepts an array of objects and/or strings; they are concatenated. It even accepts a tree of nested arrays; they are traversed depth-first. For example:
 
/tellraw @a ["Hello there, ",{selector:"@p"},"."]
/tellraw @a [<!--
            -->[<!--
              -->[<!--
                -->["The "<!--
                -->],<!--
                -->[<!--
                  -->["quick ",<!--
                  -->"brown "<!--
                -->],<!--
                -->[<!--
                  -->{selector:"@p"},<!--
                  -->" jumps "<!--
                -->],<!--
                -->"over "<!--
              -->],<!--
            -->"the "],<!--
            -->[<!--
              -->"lazy ",<!--
              -->"dog."<!--
            -->]<!--
          -->]<!--
        -->]
 
Finally, unlike other commands using JSON, {{cmd|tellraw}} Strings support Unicode via the notation <code>\u####</code>, where #### is the Unicode hexadecimal number for the desired character.
 
;External links
 
: [//www.minecraftforum.net/topic/1975697-174-tellraw-formatting-examples-updated-to-14w02c Skylinerw's JSON Formatting Examples]
: [//minecraftjson.com Tellraw Generator]
 
== Summary of commands ==
 
The table below summarizes available commands. Click a column heading to sort by that column.
 
{| class="sortable wikitable" style="text-align:center;"
|+ Summary of Commands
! style="text-align:left;" | Command
! style="text-align:left;" | Description
! {{Tooltip|Op Only|Commands only usable by operators}}
! {{Tooltip|MP Only|Commands only usable in multiplayer}}
! {{Tooltip|Blocks|Commands which modify or query blocks}}
! {{Tooltip|Entities|Commands which modify or query entities (mobs, items, etc.)}}
! {{Tooltip|Players|Commands which modify or query players}}
! {{Tooltip|World|Commands which modify or query the world}}
|-
| style="text-align:left;" | {{cmd|achievement}}
| style="text-align:left;" | Gives or removes an achievement from a player.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|ban}}
| style="text-align:left;" | Adds player to banlist.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|ban-ip}}
| style="text-align:left;" | Adds IP address to banlist.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|banlist}}
| style="text-align:left;" | Displays banlist.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|blockdata}}
| style="text-align:left;" | Modifies the data tag of a block.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|yes|Blocks}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|clear}}
| style="text-align:left;" | Clears items from player inventory.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|clone}}
| style="text-align:left;" | Copies blocks from one place to another.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|yes|Blocks}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|debug}}
| style="text-align:left;" | Starts or stops a debugging session.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|defaultgamemode}}
| style="text-align:left;" | Sets the default [[game mode]].
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|deop}}
| style="text-align:left;" | Revoke operator status from a player.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|difficulty}}
| style="text-align:left;" | Sets the difficulty level.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|effect}}
| style="text-align:left;" | Add or remove [[status effect]]s.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Entities}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|enchant}}
| style="text-align:left;" | Enchants a player item.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|entitydata}}
| style="text-align:left;" | Modifies the data tag of an entity.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Entities}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|execute}}
| style="text-align:left;" | Executes another command.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|fill}}
| style="text-align:left;" | Fills a region with a specific block.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|yes|Blocks}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|gamemode}}
| style="text-align:left;" | Sets a player's [[game mode]].
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|gamerule}}
| style="text-align:left;" | Sets or queries a game rule value.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|give}}
| style="text-align:left;" | Gives an item to a player.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|help}}
| style="text-align:left;" | Provides help for commands.
| {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|kick}}
| style="text-align:left;" | Kicks a player off a server.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|kill}}
| style="text-align:left;" | Kills entities (players, mobs, items, etc.).
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Entities}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|list}}
| style="text-align:left;" | Lists players on the server.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|me}}
| style="text-align:left;" | Displays a message about yourself.
| {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|op}}
| style="text-align:left;" | Grants operator status to a player.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|pardon}}
| style="text-align:left;" | Removes entries from the banlist.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|particle}}
| style="text-align:left;" | Creates particles.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|playsound}}
| style="text-align:left;" | Plays a sound.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|publish}}
| style="text-align:left;" | Opens single-player world to local network.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|replaceitem}}
| style="text-align:left;" | Replaces items in inventories.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|yes|Blocks}} || {{tc|yes|Entities}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|save-all}}
| style="text-align:left;" | Saves the server to disk.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|save-off}}
| style="text-align:left;" | Disables automatic server saves.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|save-on}}
| style="text-align:left;" | Enables automatic server saves.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|say}}
| style="text-align:left;" | Displays a message to multiple players.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|scoreboard}}
| style="text-align:left;" | Manages objectives, players, and teams.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Entities}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|seed}}
| style="text-align:left;" | Displays the [[world seed]].
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|setblock}}
| style="text-align:left;" | Changes a block to another block.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|yes|Blocks}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|setidletimeout}}
| style="text-align:left;" | Sets the time before idle players are kicked.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|setworldspawn}}
| style="text-align:left;" | Sets the [[Spawn#Player spawning|world spawn]].
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|spawnpoint}}
| style="text-align:left;" | Sets the spawn point for a player.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|spreadplayers}}
| style="text-align:left;" | Teleports entities to random locations.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Entities}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|stats}}
| style="text-align:left;" | Update objectives from command results.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|yes|Blocks}} || {{tc|yes|Entities}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|stop}}
| style="text-align:left;" | Stops a server.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|summon}}
| style="text-align:left;" | Summons an entity.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Entities}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|tell}}
| style="text-align:left;" | Displays a private message to other players.
| {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|tellraw}}
| style="text-align:left;" | Displays a JSON message to players.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|testfor}}
| style="text-align:left;" | Counts entities matching specified conditions.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Entities}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|testforblock}}
| style="text-align:left;" | Tests whether a block is in a location.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|yes|Blocks}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|testforblocks}}
| style="text-align:left;" | Tests whether the blocks in two regions match.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|yes|Blocks}} || {{tc|-}} || {{tc|-}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|time}}
| style="text-align:left;" | Changes or queries the world's game time.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|title}}
| style="text-align:left;" | Manages screen titles.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|toggledownfall}}
| style="text-align:left;" | Toggles the weather.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|tp}}
| style="text-align:left;" | Teleports entities.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Entities}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|trigger}}
| style="text-align:left;" | Sets a trigger to be activated.
| {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|weather}}
| style="text-align:left;" | Sets the weather.
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|whitelist}}
| style="text-align:left;" | Manages server whitelist.
| {{tc|yes|Op}} || {{tc|yes|MP}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|-
| style="text-align:left;" | {{cmd|worldborder}}
| style="text-align:left;" | Manages the [[world border]].
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|World}}
|-
| style="text-align:left;" | {{cmd|xp}}
| style="text-align:left;" | Adds or removes player [[experience]].
| {{tc|yes|Op}} || {{tc|-}} || {{tc|-}} || {{tc|-}} || {{tc|yes|Players}} || {{tc|-}}
|}
 
== Komendy gracza ==
Te komendy mogą być używane w oknie rozmów przez każdego gracza. Mogą one być również używane w trybie jednoosobowym bez względu na to, czy kody są włączone.
 
{| class="wikitable" style="width:100%"
! width="25%" align="center" | Komenda
! width="75%" align="center" | Opis
|-
| {{Anchor|help}}'''help''' [''strona'' <nowiki>|</nowiki> ''komenda'']<br />'''?''' [''strona'' <nowiki>|</nowiki> ''komenda'']
| Pokazuje listę dostępnych komend lub informacje dla danej ''komendy''.
'''Strona lub komenda''' ''(opcjonalne)'' określa stronę listy dostępnych komend lub komendę dla której wyświetlić pomoc. Domyślnie: <code>1</code> (pierwsza strona listy komend).
|-
| {{Anchor|me}}'''me''' <''akcja''>
| Wysyła narracyjną wiadomość do innych graczy (np. "* Notch kichnął.").
'''Akcja''' ''(wymagane)'' określa wiadomość, która ma być użyta w tej komendzie.
|-
| {{Anchor|tell}}'''tell''' <''gracz''> <''wiadomość''><br />'''msg''' <''gracz''> <''wiadomość''><br />'''w''' <''gracz''> <''wiadomość''>
| Wysyła prywatną wiadomość do danego gracza.
'''Gracz''' ''(wymagane)'' to osoba, do której ma zostać wysłana wiadomość (musi być online).<br>
'''Wiadomość''' ''(wymagane)'' określa wiadomość, która ma być wysłana danemu graczowi. Trzeba tu zaznaczyć, że słowa mogą być oddzielane spacjami w przeciwieństwie innych komend.
|}
 
== Komendy operatora ==
Te komendy mogą być wykonane tylko przez operatorów lub z konsoli serwera. Te komendy są również dostępne w trybie jednego gracza z włączonym używaniem kodów lub dla gracza utrzymującego serwer.
 
'''Uwaga:''' Komendy operatora wyświetlane są również innym operatorom online.
 
{| class="wikitable" style="width:100%"
! width="25%" align="center" | Komenda
! width="75%" align="center" | Opis
|-
| {{Anchor|achievement}}'''achievement''' <give <nowiki>|</nowiki> take> <''osiągnięcie''> [''gracz'']
| Daje lub odbiera graczowi osiągnięcie.
'''Give lub take''' ''(wymagane)'' określa czy osiągnięcie ma być dane (give), czy odebrane (take).<br>
'''Osiągnięcie''' ''(wymagane)'' określa osiągnięcie, które ma być dane graczowi. Format:
* <code>achievement.''nazwa_osiągnięcia''</code>, [[osiągnięcia|osiągnięcie]] o odpowiedniej nazwie.
* <code>stats.''nazwa_statystyki''</code>, [[statystyki|statystyka]] o odpowiedniej nazwie.
* <code>*</code> reprezentuje wszystkie dostępne osiągnięcia.
'''Gracz''' ''(opcjonalne)'' określa osobę, na której ta komenda ma być wykonana. Domyślnie: gracz wykonujący.
|-
| {{Anchor|blockdata}}'''blockdata''' <''x''> <''y''> <''z''> <''tag danych''>
| Umożliwia edycję tagu danych bloku.
'''X, Y, Z''' ''(wymagane)'' określa koordynaty bloku, który chcemy zmodyfikować.<br>
'''Tag danych''' ''(wymagane)'' określa nowy tag danych bloku.
|-
| {{Anchor|clear}}'''clear''' [''gracz''] [''przedmiot''] [''metadata''] [''max ilość''] [''tag danych'']
| Czyści cały ekwipunek gracza lub określony przedmiot.
'''Gracz''' ''(opcjonalne)'' określa osobę, na której ta komenda ma być wykonana. Domyślnie: gracz wykonujący<br>
'''Przedmiot''' ''(opcjonalne)'' określa przedmiot, który ma być usunięty. Jeśli brak, usuwa wszystkie przedmioty.<br>
'''Metadata''' ''(opcjonalne)'' określa wartość danych przedmiotu. Jeśli brak lub <code>-1</code>, usuwa wszystko co zgadza się z ''przedmiot'' nie zważając na wartość danych.<br>
'''Max ilość''' ''(opcjonalne)'' określa maksymalną ilość przedmiotów, które należy usunąć. Jeśli brak lub <code>-1</code>, usuwa wszystko co zgadza się z ''metadata'' i ''przedmiot'' nie zważając na ilość. Jeśli <code>0</code>, nie usuwa przedmiotów, ale wykonuje się prawidłowo, jeżeli usuwanie mogło zostać przeprowadzone (pozwala na wykrywanie przedmiotów).<br>
'''Tag danych''' ''(opcjonalne)'' określa tag danych, według którego szukać przedmiotów w ekwipunku.
|-
| {{Anchor|clone}}'''clone''' <''x1''> <''y1''> <''z1''> <''x2''> <''y2''> <''z2''> <''x''> <''y''> <''z''> [tryb maskowania] [tryb klonowania] [nazwa bloku]
| Umożliwia klonowanie określonej struktury w inne miejsce.
'''X1, Y1, Z1 oraz X2, Y2, Z2''' ''(wymagane)'' to koordynaty określające dwa przeciwne narożniki źródłowego regionu który ma zostać skopiowany. Można użyć tyld w celu określenia bloku względnego do położenia obiektu wykonującego komendę.<br>
'''X, Y, Z''' ''(wymagane)'' to koordynaty do których zostanie sklonowana struktura. W to miejsce zostanie wstawiony północno-wschodni róg schematu.<br>
'''Tryb maskowania''' ''(opcjonalne)'' określa sposób w jaki ma myć sklonowana struktura. Wartość musi być jedną z podanych:
* <code>filtred</code> - kopiuje tylko bloki podane w argumencie "nazwa bloku".
* <code>masked</code> - kopiuje tylko bloki które nie są powietrzem. Dzięki tej opcji bloki w docelowym miejscu skopiowania nie zostaną zastąpione powietrzem.
* <code>replace</code> - kopiuje wszystkie bloki, zastępując wszystko w docelowym miejscu blokami z regionu źródłowego.
Jeśli tryb maskowania nie zostanie określony domyślnie zachowuje się jak <code>replace</code>.<br>
'''Tryb klonowania''' ''(opcjonalne)'' określa w jaki sposób ma się zachować struktura źródłowa po klonowaniu
* <code>force</code> - wymuś klonowanie nawet jeśli struktura źródłowa i docelowa są takie same
* <code>move</code> - sklonuj strukturę źródłową do docelowego miejsca, następnie zastąp region źródłowy powietrzem. Jeśli opcja ta zostanie użyta wraz z trybem maskowania "<code>filtred</code>" powietrzem zostaną zastąpione tylko te bloki które zostały sklonowane.
* <code>normal</code> - nie przenoś ani nie wymuszaj.
Jeśli tryb klonowania nie zostanie określony domyślnie zachowuje się jak <code>normal</code>.<br>
'''Nazwa bloku''' ''(opcjonalne)'' wyrażana [[ID|słownym ID bloku]] (np. <code>minecraft:grass<code>). Jeśli tryb maskowania ma wartość <code>filtred</code> ta wartość musi zostać podana.
|-
| {{Anchor|debug}}'''debug''' <start <nowiki>|</nowiki> stop>
| Rozpoczyna sesję profilowania debugowego lub zatrzymuje już rozpoczętą. Zawiadamia o potencjalnych spadkach wydajności w konsoli, kiedy jest aktywna, a po zatrzymaniu tworzy plik z wynikami profilera w folderze ''debug''.
'''Start lub stop''' ''(wymagane)'' określa czy profiler ma być włączony, czy wyłączony.
|-
| {{Anchor|defaultgamemode}}'''defaultgamemode''' <''tryb''>
| Ustawia domyślny tryb gry na danym świecie. Nowi gracze którzy dołączą do świata automatycznie będą mieli podany tryb gry.
'''Tryb''' ''(wymagane)'' określa domyślny tryb, który ma być ustawiony. Dostępne wartości:
* <code>survival</code> (skróty: <code>s</code> lub <code>0</code>)
* <code>creative</code> (skróty: <code>c</code> lub <code>1</code>)
* <code>adventure</code> (skróty: <code>a</code> lub <code>2</code>)
* <code>spectator</code> (skróty: <code>sp</code> lub <code>3</code>)
|-
| {{Anchor|difficulty}}'''difficulty''' <''poziom trudności''>
| Zmienia poziom trudności.
'''Poziom trudności''' ''(wymagane)'' określa poziom trudności, na który ma być zmieniony obecny. Dostępne wartości:
* <code>peaceful</code> (skróty: <code>p</code> lub <code>0</code>)
* <code>easy</code> (skróty: <code>e</code> lub <code>1</code>)
* <code>normal </code> (skróty: <code>n</code> lub <code>2</code>)
* <code>hard</code> (skróty: <code>h</code> lub <code>3</code>)
|-
| {{Anchor|effect}}'''effect''' <''gracz''> <''efekt''> [''czas''] [''wzmacniacz'']
| Daje graczowi odpowiedni [[efekty mikstur|efekt mikstury]].
'''Gracz''' ''(wymagane)'' określa osobę, na której ta komenda ma być wykonana.<br>
'''Efekt''' ''(wymagane)'' określa efekt, który ma być dany graczowi.<br>
'''Czas''' ''(opcjonalne)'' określa czas w sekundach, na który efekt ma być dany graczowi. Musi być liczbą od 0 do 1000000. Domyślnie: <code>30 sekund</code>.<br>
'''Wzmacniacz''' ''(opcjonalne)'' określa ilość poziomów, które mają być ''dodane'' do mocy efektu. Musi być liczbą od 0 do 255. Domyślnie: <code>0</code>.
|-
| '''effect''' <''gracz''> clear
| Czyści wszystkie efekty ''gracza''.
'''Gracz''' ''(wymagane)'' określa osobę, na której ta komenda ma być wykonana.
|-
| {{Anchor|enchant}}'''enchant''' <''gracz''> <''[[Zaklinanie|id zaklęcia]]''> [''poziom zaklęcia'']
| Zaklina przedmiot trzymany przez gracza.
'''Gracz''' ''(wymagane)'' określa osobę, na której ta komenda ma być wykonana.<br>
'''Id zaklęcia''' ''(wymagane)'' określa zaklęcie, które ma być dane graczowi Musi być prawidłowym [[ID#ID_zakl.C4.99.C4.87|id zaklęcia]].<br>
'''Poziom zaklęcia''' ''(opcjonalne)'' określa poziom zaklęcia, które ma być dane graczowi. Musi być liczbą pomiędzy 0, a maksymalnym możliwym poziomem dla danego zaklęcia. Domyślnie: <code>1</code>.
|-
|{{Anchor|execute}}'''execute''' <''[[byt]]''> <''x''> <''y''> <''z''> <''komenda''>
| Wykonuje komendę jako dany byt.
'''Byt''' ''(wymagane)'' określa stworzenie na którym dana komenda ma być wykonana. Musi być nazwą gracza lub selektorem.<br>
'''X, Y, Z''' ''(wymagane)'' określa koordynaty na których ma zostać wykonana komenda. Jeśli zostanie użyta tylda (~), będzie ona wykonana względem bytu.<br>
'''Komenda''' ''(wymagane)'' określa komendę, jaka ma być wykonana przez byt. Musi być istniejącą komendą.
|-
| {{Anchor|gamemode}}'''gamemode''' <tryb> [''gracz'']
| Zmienia tryb gry ''gracza''.
'''Tryb''' ''(wymagane)'' określa tryb, który ma być ustawiony graczowi. Dostępne wartości:
* <code>survival</code> (skróty: <code>s</code> lub <code>0</code>)
* <code>creative</code> (skróty: <code>c</code> lub <code>1</code>)
* <code>adventure</code> (skróty: <code>a</code> lub <code>2</code>)
* <code>spectator</code> (skróty: <code>sp</code> lub <code>3</code>)
'''Gracz''' ''(opcjonalne)'' określa osobę, na której ta komenda ma być wykonana. Domyślnie: gracz wykonujący.
|-
| {{Anchor|gamerule}}'''gamerule''' <''zasada gry''> [wartość]
| Ustawia zasadę gry. Jeśli wartość nie zostanie podane, pokazuje się obecny stan zasady gry.
'''Zasada gry''' ''(wymagane)'' określa zasadę gry, która ma być ustawiona przez tą komendę. Może być dowolną wartością, ale tylko te [[Blok_poleceń#Zasady_gry|domyślnie zdefiniowane]] mają wpływ na rozgrywkę.<br>
'''Wartość''' ''(opcjonalne)'' określa wartość zasady gry, która ma być ustawiona. Może być dowolną wartością (np. liczbowa lub tekstowa), ale dla [[Blok_poleceń#Zasady_gry|domyślnie zdefiniowanych]] zasad gry musi być to true (prawda) lub false (fałsz).
|-
| {{Anchor|give}}'''give''' <''gracz''> <''przedmiot''> [''ilość''] [''metadata''] [''tag danych'']
| Daje przedmiot graczowi.
'''Gracz''' ''(wymagane)'' określa osobę, na której ta komenda ma być wykonana.<br>
'''Przedmiot''' ''(wymagane)'' określa przedmiot, jaki ma być dany graczowi. (od wersji 1.8 musi być id tekstowym np. <code>minecraft:stone</code>)<br>
'''Ilość''' ''(opcjonalne)'' określa ilość przedmiotów, które mają być dane graczowi. Musi być liczbą od 1 do 64. Domyślnie: <code>1</code>.<br>
'''Metadata''' ''(opcjonalne)'' określa wartość danych, która ma być ustawiona przedmiotowi. Domyślnie: <code>0</code>.<br>
'''Tag danych''' ''(opcjonalne)'' określa tag danych, która ma być nadany przedmiotowi.<br>
|-
| {{Anchor|kill}}'''kill''' [''gracz'']
| Zadaje {{hp|1000}} obrażeń użytkownikowi, natychmiast go zabijając, nawet w trybie kreatywnym.
'''Gracz''' ''(wymagane)'' określa gracza lub stworzenie, które zostanie zabite tą komendą. Musi to być nazwa gracza, który jest online lub selektor.
|-
| {{Anchor|playsound}}'''playsound''' <''dźwięk''> <''gracz''> [''x''] [''y''] [''z''] [''głośność''] [''ton''] [''minimalna głośność'']
| Odtwarza dźwięk wybranemu graczowi.
'''Dźwięk''' ''(wymagane)'' określa dźwięk, jaki ma być odtworzony graczowi. Musi być tekstową nazwą dźwięku z pliku sounds.json. Przykład: <code>mob.pig.say</code> odtworzy dźwięk z pliku ''.minecraft\assets\sound\mob\pig\say[1-3].ogg''.<br>
'''Gracz''' ''(wymagane)'' określa gracza, któremu zostanie odtworzony dany dźwięk.<br>
'''X, Y, Z''' ''(opcjonalne)'' określa koordynaty z których zostanie odtworzony dany dźwięk.<br>
'''Głośność''' ''(opcjonalna)'' określa głośność z którą ma być odtworzony dany dźwięk. Musi być wartością od 0.0 do 1.0. Jeśli gracz jest oddalony od koordynatów na których dźwięk został zagrany, głośność dla niego będzie mniejsza.<br>
'''Ton''' ''(opcjonalny)'' określa ton z jakim dźwięk będzie odtworzony. Musi być wartością od 0.0 do 2.0, ale wartości poniżej 0.5 są równe 0.5. Ta wartość określa szybkość z jaką dany dźwięk będzie odegrany, co przekłada się na jego wysokość. Domyślnie: <code>1.0</code>.<br>
'''Minimalna głośność''' ''(opcjonalna)'' określa minimalną głośność z którą dźwięk będzie odegrany dla osób, które znajdują się zbyt daleko aby go usłyszeć.<br>
|-
| {{Anchor|publish}}'''publish'''
| Udostępnia grę jednoosobową przez LAN. Ta komenda jest dostępna tylko w trybie jednoosobowym.
|-
| {{Anchor|say}}'''say''' <''wiadomość''>
| Wysyła wiadomość do wszystkich graczy serwera.
'''Wiadomość''' ''(wymagane)'' określa wiadomość, która ma być wysłana.
|-
| {{Anchor|scoreboard}}'''scoreboard''' ''cele''<nowiki>|</nowiki>''gracze''<nowiki>|</nowiki>''drużyny''
| Zobacz [[tablica wyników]] aby dowiedzieć się więcej.
|-
| {{Anchor|seed}}'''seed'''
| Pokazuje [[ziarno generatora|ziarno]] świata. Ta komenda zawsze może być użyta w trybie jednoosobowym, bez względu czy używanie komend jest włączone czy nie.
|-
| {{Anchor|setblock}}'''setblock''' <''x''> <''y''> <''z''> <''nazwa bloku''> [''metadata''] [''obsługa starego bloku'] [''tag danych'']
| Umieszcza blok na podanych koordynatach.
'''X, Y, Z''' ''(wymagane)'' określa koordynaty, na których blok ma być postawiony.<br>
'''Nazwa bloku''' ''(wymagane)'' określa nazwę bloku, który ma być postawiony.<br>
'''Metadata''' ''(opcjonalne)'' określa wartość danych bloku. Musi być wartością od 0 do 15. Domyślnie: <code>0</code>.<br>
'''Obsługa starego bloku''' ''(opcjonalna)'' określa co stanie się ze starym blokiem podczas umieszczania nowego. Wartości:
* <code>destroy</code> — stary blok wypada w postaci przedmiotu na ziemię, razem z jego zawartością (tak jakby był zniszczony przez gracza). Odtwarzany jest dźwięk niszczenia starego bloku.
* <code>keep</code> — umieszcza nowy blok, tylko jeśli ten stary jest powietrzem.
* <code>replace</code> — w ciszy usuwa stary blok (nie wypadają przedmioty, nie odtwarza się dźwięk).
Domyślnie: <code>replace</code>.<br>
'''Tag danych''' ''(opcjonalne)'' określa tag danych bloku.
|-
| {{Anchor|setworldspawn}}'''setworldspawn''' [''x''] [''y''] [''z'']
| Ustawia punkt [[spawn]]u świata na określonych koordynatach.
'''X, Y, Z''' ''(opcjonalne)'' określa koordynaty nowe punktu spawnu świata. Domyślnie: koordynaty gracza wykonującego komendę.
|-
| {{Anchor|spawnpoint}}'''spawnpoint''' [''gracz''] [''x''] [''y''] [''z'']
| Ustawia punkt spawnu danego gracza w określonym miejscu.
'''Gracz''' ''(wymagane)'' określa osobę, dla której zostanie zmieniony spawn. Domyślnie: gracz wykonujący komendę.<br>
'''X, Y, Z''' ''(opcjonalne)'' określa koordynaty nowe punktu spawnu gracza. Domyślnie: koordynaty gracza wykonującego komendę.
|-
| {{Anchor|spreadplayers}}'''spreadplayers''' <''x''> <''z''> <''odległość''> <''zasięg''> <''łącz drużyny''> <''gracze''>
| Losowo rozrzuca graczy na określonym obszarze.
'''X, Z''' ''(wymagane)'' określa środek obszaru, na którym gracze będą rozrzuceni.<br>
'''Odległość''' ''(wymagane)'' określa minimalną odległość pomiędzy rozrzuconymi graczami. Musi wynosić conajmniej 1.0.<br>
'''Zasięg''' ''(wymagane)'' określa odległość obszaru rozrzucenia od jego środka. Musi wynosić conajmniej o 1.0 więcej niż ''odległości''.<br>
'''Łącz drużyny''' ''(wymagane)'' określa czy osoby z drużyn mają być trzymane razem. Poprawne wartości to true (prawda) i false (fałsz).<br>
'''Gracze''' ''(wymagane)'' określa wszystkich graczy lub stworzenia, które mają być rozrzucone tą komendą. Wszystkie nazwy graczy i selektory muszą być oddzielone od siebie spacją.
|-
| {{Anchor|summon}}'''summon''' <''byt''> [''x''] [''y''] [''z''] [''tag danych'']
| Dodaje określony byt do świata.
'''Byt''' ''(wymagane)'' określa [[ID#ID_byt.C3.B3w|nazwę bytu]], który ma się pojawić w świecie.<br>
'''X, Y, Z''' ''(opcjonalne)'' określa koordynaty na których ma się pojawić dany byt.<br>
'''Tag danych''' ''(opcjonalne)'' określa tag danych, który będzie nadany dodanemu bytowi.
|-
| {{Anchor|tellraw}}'''tellraw''' <''gracz''> <''wiadomość json''>
| Wysyła wiadomość w formacie JSON.
'''Gracz''' ''(wymagane)'' określa osobę, do której zostanie wysłana wiadomość.<br>
'''Wiadomość JSON''' ''(wymagane)'' określa wiadomość w formacie JSON. Przydatna strona przy tworzeniu wiadomości w tym formacie: [http://minecraftjson.com/ minecraftjson.com].
|-
| {{Anchor|time}}'''time''' set <''wartość''>
| Ustawia czas świata.
'''Wartość''' ''(wymagane)'' określa czas, który będzie ustawiony. Musi wynosić od 0 do 2147483647, <code>day</code> (dzień) lub <code>night</code> (noc).
|-
| '''time''' add <''wartość''>
| Dodaje wartość do czasu świata.
'''Wartość''' ''(wymagane)'' określa czas, który będzie dodany do aktualnego czasu świata. Musi być liczbą w zakresie od 0 do 2147483647.
|-
| {{Anchor|toggledownfall}}'''toggledownfall'''
| Zmienia status pogody.
|-
| {{Anchor|tp}}'''tp''' [''gracz''] <''cel''>
| Teleportuje gracza.
'''Gracz''' ''(opcjonalne)'' określa osobę, która zostanie przeteleportowana do celu. Domyślnie: gracz wykonujący komendę.<br>
'''Cel''' ''(wymagane)'' określa cel, do którego zostanie przeteleportowany gracz.
|-
| '''tp''' [''gracz''] <''x''> <''y''> <''z''>
| Teleportuje gracza.
'''Gracz''' ''(opcjonalne)'' określa osobę, która zostanie przeteleportowana na koordynaty. Domyślnie: gracz wykonujący komendę.<br>
'''X, Y, Z''' ''(wymagane)'' określa koordynaty, na które zostanie przeteleportowany gracz.
|-
| {{Anchor|weather}}'''weather''' <''typ pogody''> [''czas'']
| Zmienia pogodę.
'''Typ pogody''' ''(wymagane)'' określa typ pogody jaki zostanie ustawiony w świecie. Poprawne wartości:
* <code>clear</code> – czysta pogoda (słońce)
* <code>rain</code> – deszcz (lub śnieg w zimnych [[Biom|biomach]])
* <code>thunder</code> – burza
'''Czas''' ''(opcjonalne)'' określa czas na który pogoda zostanei zmieniona (w sekundach). Musi być liczbą pomiędzy 0, a 1000000. Jeśli brak, pogoda będzie działać w normalnym cyklu.<br>
|-
| {{Anchor|xp}}'''xp''' <''ilość xp''> [''gracz'']
| Daje punkty doświadczenia graczowi.
'''Ilość XP''' ''(wymagane)'' określa ilość doświadczenia, którą dać graczowi. Musi wynosić od 0 do 2147483647. Ujemne wartości ''nie mogą'' być użyte do usunięcia punktów doświadczenia.
'''Gracz''' ''(opcjonalne)'' określa osobę, której zostanie dodane doświadczenie. Domyślnie: gracz wykonujący komendę.<br>
|-
| '''xp''' <''ilość poziomów''>L [''gracz'']
| Daje poziomy doświadczenia danemu graczowi.
'''Ilość poziomów''' ''(wymagane)'' określa ilość poziomów, którą dać graczowi. Musi wynosić od -2147483647 do 2147483647. Ujemne wartości ''mogą'' być użyte do odjęcia poziomów doświadczenia.
'''Gracz''' ''(opcjonalne)'' określa osobę, której zostaną dodane/odebrane poziomy. Domyślnie: gracz wykonujący komendę.<br>
|}
 
=== Komendy trybu wieloosobowego ===
Te komendy są używane przez operatorów z konsoli serwera, jak również poprzez okno rozmowy gdy poprzedzone znakiem komendy (ukośnikiem do przodu). Te komendy są dostępne jedynie w trybie wieloosobowym. Z wyjątkiem komendy '''list''', żadna z tych komend nie może być wykonana w bloku poleceń, oraz żadna nie będzie działać w przypadku podania selektora docelowego (np. @p czy @a). Wiele z tych komend może być użytych na graczach którzy nigdy nie byli na serwerzee.
 
{| class="wikitable" style="width:100%"
! width="25%" align="center" | Komenda
! width="75%" align="center" | Opis
|-
| {{Anchor|ban}}'''ban''' <''gracz''> [''powód'']
| Umieszcza nick ''gracza'' na czarnej liście serwera, więc nie może on już być połączony.<br>'''Ważne''': Bany zastępują jakikolwiek whitelisting.
|-
| {{Anchor|ban-ip}}'''ban-ip''' ''ip'' <nowiki>|</nowiki> ''gracz''
| Umieszcza adres IP na czarnej liście co powoduje że wszystkie połączenia z danego ip są odrzucane.
|-
| {{Anchor|banlist}}'''banlist''' [ips]
| Pokazuje zbanowanych graczy. Do wyświetlenia zbanowanych adresów IP, użyj komendy "banlist ips".
|-
| {{Anchor|deop}}'''deop''' <''gracz''>
| Cofa status operatora gracza.
|-
| {{Anchor|kick}}'''kick''' <''gracz''> [''powód'']
| Rozłącza ''gracza'' z serwerem, wyświetlając opcjonalny ''powód''.
|-
| {{Anchor|list}}'''list'''
| Pokazuje nazwy wszystkich obecnie połączonych graczy (taka sama jest wyświetlana po naciśnięciu tab).
|-
| {{Anchor|op}}'''op''' <''gracz''>
| Nadaje ''graczowi'' status [[operator]]a na serwerze.
|-
| {{Anchor|pardon}}'''pardon''' <''gracz''>
| Usuwa ''gracza'' z czarnej listy, pozwalając mu ponownie się połączyć.
|-
| {{Anchor|pardon-ip}}'''pardon-ip''' <''ip''>
| Usuwa ''ip'' z czarnej listy IP, pozwalając graczowi z tym adresem IP połączyć się z serwerem.
|-
| {{Anchor|save-all}}'''save-all'''
| Zmusza serwer do zapisania na dysku wszystkich oczekujących na zapisanie zmian w świecie.
|-
| {{Anchor|save-off}}'''save-off'''
| Wyłącza nadpisywanie plików świata przez serwer. Wszystkie zmiany będą tymczasowo w kolejce.
|-
| {{Anchor|save-on}}'''save-on'''
| Włącza nadpisywanie plików świata przez serwer. Jest to domyślne ustawienie.
|-
| {{Anchor|setidletimeout}}'''setidletimeout''' <''Minutes until kick''>
| Ustawia czas po jakim gracz zostanie wyrzucony z serwera. Każdy gracz który przekroczy limit czasu zostaje wyrzucony z serwera.
|-
| {{Anchor|stop}}'''stop'''
| Zapisuje wszystkie zmiany na dysku, następnie wyłącza serwer.
|-
| {{Anchor|whitelist}}'''whitelist''' <add <nowiki>|</nowiki> remove> <''gracz''>
| Dodaje lub usuwa ''gracza'' z białej listy.
|-
| '''whitelist''' list
| Pokazuje wszystkich graczy na białej liście.
|-
| '''whitelist''' <on <nowiki>|</nowiki> off>
| Włącza/wyłącza białą listę.<br>'''Ważne:''' Operatorzy serwera ''zawsze'' mogą się połączyć, gdy whitelista jest aktywna, nawet jeśli ich nazwy nie są wymienione na liście.
|-
| '''whitelist''' reload
| Przeładowuje listę graczy w white-list.txt z dysku (używane gdy white-list.txt zostało zmodyfikowane poza Minecraftem).
|-
|}
 
== Komendy bloku poleceń ==
Te komendy mogą być używane tylko w [[Blok poleceń|bloku poleceń]] i nie mogą być użyte innym sposobem. Blok poleceń może zostać otrzymany jedynie za pomocą komendy <code>/give <gracz> command_block</code>.
{| class="wikitable" style="width:100%"
! width="25%" align="center" | Komenda
! width="75%" align="center" | Opis
|-
| {{Anchor|testfor}}'''testfor''' <''gracz'' <nowiki>|</nowiki> ''selektor''>
| Stosowane do testowania, czy ''gracz'' jest online, lub czy ''selektor'' się zgadza. [[Komparator]] jako wyjście z bloku poleceń z tą komendą wskaże liczbę graczy matched by ''selektor''. Na przykład, "testfor @a[r=3]" wyświetli liczbę graczy w odległości 3 metrów od bloku poleceń. Zmniejszenie zasięgu do 1 bloku (używając określonych koordynatów x y z ) spowoduje przepełnienie stosując 65536 jako zasięg. Więcej informacji o selektorach może być znalezione [[Blok poleceń|tutaj]].
|}
 
 
 
== Historia ==
 
{{Historia|c}}
{{Historia||0.0.15a_03|Dodano <code>/broadcast</code>.}}
{{Historia||0.0.16a_01|Zamieniono <code>/broadcast</code> na <code>/say</code>.}}
{{Historia||0.0.17a|rowspan=2|Dodano <code>/setspawn</code>.|Jest to jedna z pierwszych komend wprowadzonych do trybu jednoosobowego.}}
{{Historia||0.0.20|rowspan=2|Dodano <code>/solid</code>.}}
{{Historia||0.0.20|Pierwsza komenda wprowadzona do trybu wieloosobowego.}}
 
{{Historia|a}}
{{Historia||1.0.16|Dodano <code>/ban</code>, <code>/ban-ip</code>, <code>/banlist</code>, <code>/deop</code>, <code>/home</code>, <code>/kick</code>, <code>/op</code>, <code>/pardon</code>, <code>/pardon-ip</code> oraz <code>/stop</code>.}}
{{Historia||1.0.16_01|Dodano <code>/save-all</code>, <code>/save-on</code>, <code>/save-off</code> i <code>/tp</code>.}}
 
{{Historia|b}}
{{Historia||1.3|Dodano <code>/whitelist</code>}}
 
{{Historia|r}}
{{Historia||1.3.1|snap=12w16a|Dodano tryb kodów oraz <code>/gamemode</code>, <code>/give</code>, <code>/time</code>, <code>/toggledownfall</code> i <code>/xp</code>.|Pierwsze komendy operatora.}}
{{Historia|||snap=12w17a|Dodano <code>/help</code>.}}
{{Historia|||snap=12w21a|Dodano <code>/seed</code>.}}
{{Historia|||snap=12w22a|Dodano <code>/defaultgamemode</code>.}}
{{Historia|||snap=12w24a|Dodano <code>/publish</code>.}}
{{Historia|||snap=12w25a|Kody mogą zostać włączone lub wyłączone, gdy uruchamiamy świat w sieci LAN.}}
{{Historia|||snap=12w27a|Dodano <code>/debug</code>.}}
{{Historia|||snap=unknown|Dodano <code>/me</code>.}}
{{Historia||1.4.2|snap=12w32a|Dodano komendy <code>/difficulty</code>, <code>/gamerule</code>, <code>/spawnpoint</code> oraz <code>/weather</code>.}}
{{Historia|||snap=12w37a|Dodano <code>/clear</code>.}}
{{Historia|||snap=12w38a|<code>/clear</code> może być użyte do usunięcia określonych przedmiotów/bloków z ekwipunku gracza.}}
{{Historia|||snap=12w41a|Limit dla <code>/xp</code> wynosi obecnie 2,147,483,647 zamiast 5,000.}}
{{Historia||1.4.4pre|Komenda "enchant" została dodana.}}
{{Historia||1.5|rowspan=3|snap=13w03a|Komenda "testfor" została dodana. Działa tylko w bloku poleceń.}}
{{Historia|||snap=13w04a|Komenda "scoreboard" została dodana.}}
{{Historia|||snap=13w09b|Komenda "effect" została dodana.}}
{{Historia||1.6|rowspan=5|snap=13w23a|Komenda "spreadplayers" została dodana.|Zasada gry "naturalRegeneration" została dodana.}}
{{Historia|||snap=13w24a|Zasada gry "doDaylightCycle" została dodana.}}
{{Historia|||snap=1.6pre|"clear" zostało dodane do komendy "effect".}}
{{Historia|||snap=1.6.1pre|Komenda "playsound" została dodana.}}
{{Historia||1.7.2|rowspan=6|snap=13w36a|Komenda "summon" została dodana.  Można używać tagów NBT w komendach /give oraz /summon.}}
{{Historia|||snap=13w37a|Dodano komendy <code>/setblock</code>, <code>/tellraw</code> i <code>/testforblock</code>.}}
{{Historia|||snap=13w38a|Dodano setidletimeout.}}
{{Historia|||snap=13w43a|Dodano setworldspawn.}}
{{Historia|foot}}
 
== Zobacz również ==
* [[Multiplayer|Tryb wieloosobowy]]
 
[[Kategoria:Serwer]]
 
[[de:Befehl]]
[[en:Commands]]
[[es:Comandos]]
[[fr:Commandes]]
[[hu:Szerverparancsok]]
[[ja:コマンド]]
[[ko:명령어]]
[[pt:Comandos]]
[[ru:Команды консоли]]
[[zh:命令]]

Aktualna wersja na dzień 15:12, 21 sty 2021