Użytkownik:Frisk/brudnopis
Nudzi Ci się? Bardzo? Możesz pomóc tłumacząc ten artykuł. Każda pomoc się przyda! :D ~piotrex43
Komendy mogą być używane przez graczy, operatorów i Blok Poleceń w trybie wielu graczy połączonym z serwerem Minecrafta, i w trybie jednego gracza gdy użytkownik ma włączone używanie kodów dla świata (kody można włączyć podczas tworzenia świata za pomocą przycisku "Więcej Opcji Świata..."). Niektóre komendy są również dostępne w trybie jednego gracza nawet gdy używanie kodów nie jest włączone. Komendy mogą być wprowadzone z klienta gry Minecraft podczas gry lub na konsoli serwera komputera hosta.
Komendy bezpośrednio wprowadzane do klienta gry Minecraft muszą być poprzedzone ukośnikiem (przykład: Szablon:Komendy). Okno komend jest identyczne do okna rozmów i może być dostępne po naciśnięciu T lub bezpośrednio wpisując ukośnik.
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 Tab ⇆ powoduje wyświetlenie możliwych dokończeń komend co ułatwia pracę administratra serwera.
In the following tables, required arguments appear in <angle brackets>, and optional arguments appear in [square brackets]. Arguments in italics should be replaced by an appropriate value; arguments in plain text must be entered exactly as shown.
Komendy graczy
Komendy mogą być używane w oknie chatu prze każdego gracza który może wejść na serwer, mogą być również używane w trybie jednego gracza bez względu na to, czy używanie cheatów jest dozwolone.
| Komenda | Opis | Warunki Sukcesu[notatka 1] |
|---|---|---|
| help [strona | komenda] ? [strona | komenda] |
Pokazuje listę dostępnych komend lub dalsze informacje do komendy. Ważne: komendy trybu wieloosobowego nie są na liście w trybie jednoosobowym, nawet otworzonym dla graczy w sieci LAN. | Odnosi skutek gdy strona jest prawidłowa lub strona/komenda nie została podana. Technically fails if commandname is specified, although it displays the usage of the command. |
| me <actiontext> | Podobne do /emote or /action, oraz takie samo jak /me w klientach IRC, /me wysyła narracyjną wiadomość do innych graczy w formie "* Twój nick tekst" (e.g., "* Notch kichł." lub "* Notch wybuchł." ). If a multi-person target selector (e.g. @a) is used in actiontext, the list of names is formatted as "name1, name2, and name3", or "name1 and name2" for two names. Therefore, regardless of any target selectors which are used in actiontext, this command will only output once. | All target selectors (e.g. @p) in actiontext must evaluate. |
| tell <gracz> <wiadomość> msg <gracz> <wiadomość> w <gracz> <wiadomość> |
Używane do wysłania prywatnej wiadomości do gracza na serwerze. Bardzo przydatne na serwerach gdy potrzebujesz pytać/powiedzieć coś do innego gracza without other players seeing. If a multi-person target selector (e.g. @a) is used in message, the list of names is formatted as "name1, name2, and name3", or "name1 and name2" for two names. Therefore, regardless of any target selectors which are used in message, this command will only output once - however, a selector for playername can send a message to multiple people. | All target selectors (e.g. @p) in message must evaluate, and playername must be online. |
- ↑ Warunki sukcesu komendy muszą być spełnione, aby komenda została wykonana. This is used to determine a variety of things, such as the output of a Redstone Comparator feeding from Command Block with a command. Zauważ, że nie wszystkie "prawidłowe" komendy faktycznie coś robią, i nie wszystkie "błędne" komendy fail to do something useful.
Komendy operatora
Te komendy są używane przez operatorów) z konsoli serwera jak również przez okno rozmowy gdy wyświetlone znakiem komendy (ukośnikiem do przodu). 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.
| Komenda | Opis | Warunki sukcesu |
|---|---|---|
| achievement give <nazwa osiągnięcia> [nick gracza] | Daje graczowi osiągnięcie, i wszystkie poprzednie osiągnięcia. nazwa osiągnięcia musi stosować "achievement." poprzedzone przez nazwę osiągnięcia (zobacz Tablica wyników lub Osiągnięcia dla poprawnych nazw). Jeśli nick gracza nie jest określony, osiągnięcie otrzyma wykonawca komendy. | nazwa osiągnięcia musi być poprawną nazwą osiągniącia. nick gracza jest obowiązkowy w blokach poleceń i gracz musi być online. |
| clear <nick gracza> [przedmiot] [dodatkowe dane] | Czyści wyposażenie gracza lub określony przedmiot:dane. | Przynajmniej jeden przedmiot musi być usunięty, i gracz musi być online. |
| debug start | stop | Starts a new debug profiling session or stops the session currently running. It notifies about potential performance bottlenecks in the console when active and creates a profiler results file in the folder debug when stopped. | Może być zatrzymane tylko gdy debug jest włączony. Nie może być używane w blokach poleceń. |
| defaultgamemode survival | creative | adventure | Ustawia domyślny tryb gry pokazywany w menu gry. Nowi gracze którzy dołączą do świata automatycznie będą mieli podany tryb gry; n.p.,jeśli domyślnym trybem gry jest tryb kreatywny, nowi gracze będą mieli automatycznie tryb kreatywny. Tryby można skrócić do "s/c/a" lub "0/1/2". Komenda nie może włączyć czy wyłączyć trybu Hardcore. | Tryb gry musi być poprawny. |
| difficulty peaceful | easy | normal | hard | Zmienia poziom trudności. Poziomy trudności mogą być kolejno skrócone do "p/e/n/h" lub "0/1/2/3". | Musi być prawidłowym poziomem trudności. |
| effect <gracz> <efekt> [czas] [wzmacniacz] | Daje danemu graczowi odpowiedni efekt mikstury na sprecyzowany przez operatora czas (domyślnie to 30 sekund). Efekty mają limit do 1,000,000 sekund, a wartość wzmacniacz może być sprecyzowana jedynie do liczby 255. Numery ID efektów mogą być znalezione na stronie o efektach mikstur. Ustawienie wartości czas do 0 usuwa efekt. Jeśli wartość wzmacniacz ustawimy powyżej maksymalniej liczby 255 to poziom efektu nie zostanie nadany prawidłowo. | Jeśli czyści efekt, gracz musi mieć ten efekt. Musi być to prawidłowy efekt. Gracz musi być online. |
| effect <gracz> clear | Czyści wszystkie efekty na graczu. | Przynajmniej jeden efekt musi być usunięty, i gracz musi być online. |
| enchant <gracz> <ID zaklęcia> [poziom zaklęcia] | Zaklina przedmiot trzymany obecnie przez gracza, zgodnie z ID zaklęcia. Note that this works within the normal limitations of enchanting items. Enchantments can only be applied to items which can normally receive that specific enchantment. Enchantment levels can not be above the normal highest achievable for the selected enchantment. Conflicting or overpowering enchantment combinations usually prevented are also prevented with this command. | ID zaklęcia musi być prawidłowe, the level must be valid for this enchantment (unless the held item is also invalid), the held item must be able to accept this enchantment, the held item cannot have conflicting enchantments, i gracz musi być online. |
| gamemode <survival | creative | adventure> [playername] | Zmienia tryb gry dla playername. The game modes can be abbreviated to "s/c/a" or "0/1/2" respectively. Jeśli wartość playername nie zostanie podana, to tryb gry zostanie zmieniony osobie wprowadzającej komendę. Należy pamiętać, że dotyczy to tylko gracza wpisanego w komendzie playername i nikogo innego | Gracz musi być wtedy online, oraz tryb gry musi być poprawny. Playername jest obowiązkowy dla bloków poleceń. |
| gamerule <zasada gry> [true | false] | Aktywuje lub dezaktywuje zasadę gry. Teśli true/false nie zostanie podane, pokazuje się obecny stan zasady gry. Dostępne zasady to:
|
Odnosi skutek w każdym przypadku - nawet nieobecne/nieprawidłowe zasady gry or a property besides 'true' or 'false'. |
| give <nick gracza> <ID> [ilość] [metadata] [dataTag] | Tworzy ilość (domyślnie 1) przedmiotów określonych przez ID with the specified metadata (domyślnie 0) w miejscu gracza, używając dataTag dla "tag" NBT tag. Na przykład wpisując /give John 5 30 1 {display:{Lore:["Wooden planks"]}} will give a player called John 30 blocks of Spruce Wood Planks with Lore that says "Wooden planks". | Przedmiot musi mieć prawidłowe ID lub nazwę, ilość musi być od 0 do 64, i gracz musi być online. |
| kill | zadaje 1000 ( × 500) obrażeń użytkownikowi, natychmiast zabijając użytkownika even if in creative (a high-level Resistance effect cannot protect the player either). The text "Ouch! That looks like it hurt." będzie wyświetlony po wykonaniu. Przydatne podczas zagubienia, utknięcia, lub do przywrócenia życia i głodu (assuming you can get your items back easily or the keepInventory gamerule is set to "true"). Wiadomość o śmierci wyświetla się jako "gracz fell out of the world" | Nie może być używane przez blok poleceń. |
| publish | Opens your single-player game for LAN friends to join. This command appears in the singleplayer cheats. | Cannot be used in a command block. |
| playsound <sound> <playername> [x] [y] [z] [volume] [pitch] [minimumVolume] | Plays the selected sound to the selected player. The format for sound is as follows:
Example: Sound located at .minecraft\assets\sound\mob\pig\death.ogg The value for sound would be written as mob.pig.death, as the command originates from the sound folder. For sequentially numbered files pertaining to the same event (Example: various walking sounds), the player must exclude the number of the sound. Example: Sound located at .minecraft\assets\sound\mob\pig\say[1-3].ogg The value for sound would be written as mob.pig.say in this case. Since there are multiple mob.pig.say files (say1, say2, and say3), the command will play a randomly selected sound out of the three available. The coordinates x, y, and z are the coordinates to play the sound from. If prefixed with "~", they will be relative to the player's current location. Note that "~" is shorthand for "~0", and thus "~ ~ ~" can be used as a substitute for the player's current location. The volume argument controls the distance from which a sound may be heard. At values less than 1.0, the sound will be quieter and have a smaller sphere within which it may be heard. At values greater than 1.0, the sound will not actually grow louder, but its audible range (a 16-block radius at 1.0) will be multiplied by volume. The minimumVolume argument controls the volume of the sound outside its normal audible sphere. Note that the sound inside this sphere may actually be less than the volume of the sound outside this sphere, if volume is less than minimumVolume. The pitch argument alters both the pitch and the duration of the sound (which means that it's actually changing its speed). |
playername must be online, volume must be at least 0.0, pitch must be between 0.0 and 2.0 (inclusive), minimumVolume must be between 0.0 and 1.0 (inclusive), and the player must be able to hear the sound from where it is played. |
| say <message> | Broadcasts message to all players on the server. If a multi-person target selector (e.g. @a) is used, the list of names is formatted as "name1, name2, and name3", or "name1 and name2" for two names. Therefore, regardless of any target selectors which are used, this command will only output once. | All target selectors (e.g. @p) in the message must evaluate. |
| scoreboard objectives|players|teams | See Scoreboard for more information. Scoreboard-specific commands. | Main Article |
| seed | Displays the seed. This command can always be used in single-player mode, regardless of whether cheats are enabled or not. | Always succeeds (if user is a command block, player in singleplayer, or server op). |
| setblock <x> <y> <z> <tilename> [datavalue] [oldblockHandling] [dataTag] | Places the block in the x, y and z coordinates specified. | tilename must exist, datavalue must exist if specified, oldBlockHandling must be either "replace", "keep" or "destroy" if specified and dataTag must evaluate if specified. |
| setworldspawn [x] [y] [z] | Sets the world's spawn to the specified coordinates. If no coordinates are specified, the world spawn will be set to the executor's current location. | x, y, and z must be within the range -30,000,000 to 30,000,000 (inclusive). x, y, and z are not optional in command blocks. |
| spawnpoint <playername> [x] [y] [z] | Sets the spawnpoint of that player to that position, or to the current position if x y and z are not specified. Player is optional if x y z are not specified; will set the spawnpoint of the user to their current location. NOTE: Spawnpoint coordinates must be specified in integers. No decimals. | playername must be online, and x, y, and z must be within the range -30,000,000 to 30,000,000 (inclusive). NOTE: Sleeping in a bed will also set a spawn point where the bed is, but you can only sleep in beds at night or when it rains. |
| spreadplayers <x> <z> [spreadDistance] [maxRange] [respectTeams] <playernames> | This command allows players to spread out over a long or short distance.
x and z mark the center of the area across which players are to be spread. spreadDistance is the rough minimum distance players will be spread apart. maxRange is the maximum distance from x, z where players will be put. Note that this distance is not a circular radius; it represents the maximum distance on either coordinate (thus forming a box ranging from x-maxRange to x+maxRange and z-maxRange to z+maxRange). respectTeams may be true or false, and represents whether players should be moved individually or teams should be kept together. playernames is the list of players to spread. Names are separated by spaces. |
x and z must be within the range -30,000,000 to 30,000,000 (exclusive), spreadDistance must be at least 0, maxRange must be at least 1.0 greater than spreadDistance, and there must not be too many players to fit within the area (note that if maxRange is larger than 30,000,000, this can fail with even one player if it attempts to place them in the Far Lands). |
| summon <EntityName> [x] [y] [z] [dataTag] | Spawns desired entity. For example, /summon Pig ~ ~ ~ {Saddle:1,CustomName:"Mr. Pig",CustomNameVisible:1} would create a saddled pig named Mr. Pig at the player's current location.
|
x and z must fall within the range -30,000,000 to 30,000,000 (exclusive), and y must be at least 0. If coordinates aren't specified the entity will spawn at the player's location (or inside a command block if the command was executed by one). |
| tellraw <playername> <raw message> | Sends a message to a specified player, or to every player online on a server. Links can also be sent, with customizable actions when they are clicked, for example giving an apple to a player or teleporting the player to another location. This command can also be used to fake player messages.
raw message uses JSON. Here is a useful tool to help create messages with JSON. Note that in the game, color will default to white if not given and all formatting (bold, italic, etc.) will default to false if not given, so you don't have to use the exact command the tool gives you. |
playername must be online, and the message text must be correctly coded in JSON. |
| testforblock <x> <y> <z> <tilename> [datavalue] [dataTag] | Used to test whether a particular block is in the x, y and z coordinates specified. Datatags will not work unless a special syntax is used to specify what type of number (s for short, b for byte, L for long, f for float and d for double). Also all relevent tags must be included even if they are unused (eg: Chest contents must include slot (b) id (s) Damage (s) and count (b)) | tilename must exist, datavalue must exist if specified, and dataTag must evaluate if specified. |
| time set <number | day | night> | Sets the world time. number is an integer between 0 and 24000, inclusive, where 0 is dawn, 6000 midday, 12000 dusk and 18000 midnight. Number can be greater than 24000; in this case, the the time of day wraps around, but the moon's phase is advanced. However, Setting the time "backward" (earlier than the current time) does not change the moon. "time set day" sets the time to 1000, and "time set night" sets the time to 13000. | Number must be 0 or positive, or "day" or "night". |
| time add <number> | Increments the world time, as above. | Number must be 0 or positive. The daytime wraps, and the moon's phase advances; adding 24000 will advance the moon's phase by one day. |
| toggledownfall | Toggles rain and snow. | Always succeeds. |
| tp [playername] <targetplayer> | Teleports player playername to targetplayer 's location. If no player is specified, it will teleport yourself. | Playername is not optional in command blocks. Both players must be online. |
| tp [playername] <x> <y> <z> | Teleports player playername (or yourself if no player is specified) to coordinates x,y,z. (the y value cannot be smaller than 0). Can also relatively move the player by adding the ~ character before the coordinate value. For example typing /tp John ~3 64 ~3 will teleport a player called John 3 blocks away from his current x and z, and to y 64. | x and z must fall within the range -30,000,000 to 30,000,000 (exclusive), and y must be at least 0. Playername is not optional in command blocks, and the player must be online. |
| weather (clear | rain | thunder) [seconds] | Changes the weather for the specified duration. | Seconds must be at least 1, and cannot be greater than 1,000,000, and a valid weather condition must be provided. |
| xp <amount> [playername] | Gives the specified user the given number of orbs. Maximum is 2,147,483,647 per command. Negative amounts may not be used to remove experience points. | Amount can be at most 2,147,483,647. Playername is not optional in command blocks, and player must be online. |
| xp <ilość>L [gracz] | Daje graczowi ilość poziomów doświadczenia. Maksymalna to 2,147,483,647 — jeśli graczowi zostaną dodane poziomy przekraczające ten limit, zresetuje się do 0. Ujemne wartości mogą być wykorzystane do usunięcia poziomów doświadczenia. | Ilość musi być pomiędzy -2,147,483,648 i 2,147,483,647, włącznie. Gracz jest wymagany w przypadku bloku poleceń, i musi być online. |
Komendy trybu wieloosobowego
These commands are usable by ops (operators) from the server console as well as through the chat window when prefixed by the command character (a forward slash). These commands are only available in multiplayer mode. With the exception of the list command, none of these commands can be executed by a command block, and none make use of target selectors. Many of these commands can be used on players who have never been to the server, or even on names which are not (or cannot be) registered as Minecraft accounts.
| Command | Description | Success Conditions |
|---|---|---|
| ban <playername> [reason] | Blacklists the name playername from the server so that they can no longer connect. Note: Bans supersede any whitelisting in place. | Always succeeds. |
| ban-ip ip-address | playername | Blacklists an IP address so that all subsequent connections from it are rejected. | ip-address must be valid or playername must be online. |
| banlist [ips] | Displays banned players. To display banned IP addresses, use the command "banlist ips" | Always succeeds. |
| deop <playername> | Revokes a player's operator status. | Always succeeds. |
| kick <playername> [reason] | Forcibly disconnects playername from the server, displaying an optional reason to them. | Playername must be online. |
| list | Shows the names of all currently-connected players (the same can be achieved when pressing tab) | Always succeeds, even in a command block. |
| op <playername> | Grants playername operator status on the server. | Always succeeds. |
| pardon <playername> | Removes playername from the blacklist, allowing them to connect again. | Always succeeds. |
| pardon-ip <ip-address> | Removes ip-address from the IP blacklist, allowing players from that IP address to connect to the server. | ip-address must be valid. |
| save-all | Forces the server to write all pending changes to the world to disk. | Always succeeds. |
| save-off | Disables the server writing to the world files. All changes will temporarily be queued. | Always succeeds. |
| save-on | Enables the server writing to the world files. This is the default behavior. | Always succeeds. |
| setidletimeout <Minutes until kick> | Set the idle kick timer. Any players idle for Minutes until kick will be kicked. | Always succeeds. |
| stop | Saves all changes to disk, then shuts down the server. | Always succeeds. |
| whitelist <add | remove> <playername> | Adds or removes playername from the whitelist. | Always succeeds. |
| whitelist list | Displays all players in the whitelist. | Always succeeds. |
| whitelist <on | off> | Enables/disables the server's use of a whitelist. Note: Server ops will always be able to connect when the whitelist is active, even if their names do not appear in the whitelist. | Always succeeds. |
| whitelist reload | Reloads the list of playernames in white-list.txt from disk (used when white-list.txt has been modified outside of Minecraft). | Always succeeds. |
Command-Block-only commands
These commands can be used only in a Command Block and cannot be used in other ways. Command blocks are only obtainable via the /give <playername> 137 command.
| Command | Description | Success Conditions |
|---|---|---|
| testfor <playername | selector> | Used to test whether playername is online, or if selector has matches. A Redstone Comparator as output from a command block with this command will indicate the number of players matched by selector. For example, "testfor @a[r=3]" will output the number of players within 3 meters of the command block. To shrink the range to 1 block (when using specific x y z coordinates) you must intentionally cause an overflow by using 65536 as the range. More information about selectors may be found here. | selector must be valid if specified. |
Data tags
NBT tags can be specified for items and entities created with the /give, /summon and other commands. Data tags are data structures. The format is JSON, although it is not strict (lenient). The data is represented as a comma separated list of pairs. Each pair has the format <key>:<value>. The key is the name of the NBT tag and the value is the data that should be assigned to it. Tag names are case-sensitive, and whitespace outside keys or values is ignored.
The value can be different types:
- String is a piece of text, can be wrapped with double-quotes. Double quotes have to be used if the String contains commas, curly braces or square brackets. To use double-quotes inside Strings, the quote is escaped by a backslash (
\"). When using the summon command, escaping is disabled (except for double quotes) and keys must not be quoted (probably a bug [1]). This causes an issue where trailing backslashes do not work (as do any other things that need to be escaped), even when escaped properly. The reason is that it escapes the quotation mark after the string which causes a malformed JSON object.Example:"My name is \"Steve\"" - Number are 1 or more digits that can have a leading sign (
+/-). They're classified in Integers, that don't have a decimal mark, Doubles, that uses a dot (.) as a decimal mark, and Floats, that also havefappended after the number. Examples:integer:-128;double:-1.2345; &float:1.2f - Array (or 'List') is multiple, comma separated values wrapped with square brackets. The containing values do not need to be of the same type.
Example:[1,2,3] - Boolean can either be
trueorfalse, but using Numbers works, too. When using numbers, everything between 0 and below 1 is false, other is true.Example:true - Hash or 'Object' is a container for data structures (as explained above). They are wrapped with curly braces. Notice: The Data tag itself is a Hash. Example:
{Health: 18, CustomName: "Friend"} - null This is a placeholder an empty value. Do not put quotes.
Example:null
For a complete listing of defined tags (though not all can be modified by commands), see:
- Blocks
- Entities
- Mobs
- Projectiles (arrows, fireballs, thrown potions, etc.)
- Items (items on the ground)
- Vehicles (boats, minecarts, etc.)
- Dynamic Tiles (primed TNT, falling sand/gravel)
- Other Entities (firework rockets, paintings, and item frames)
- Tile Entities (chests, furnaces, command blocks, mob spawners, signs, etc.)
- Player
- Items (items in player's inventory or containers)
For a complete list of identifiers, see:
Video
Historia
| Pełna wersja | |||||
|---|---|---|---|---|---|
| 1.3.1 | 12w16a | Cheats mode was implemented./kill teraz działa na trybie kreatywnym. | |||
| 12w22a | Komenda "defaultgamemode" została dodana. | ||||
| 12w24a | Komenda "publish" została dodana. | ||||
| 12w25a | Cheats could be turned on or off when opening a world to other players through LAN. | ||||
| 12w27a | Komenda "debug" została dodana. | ||||
| 1.4.2 | 12w32a | Komendy "difficulty," "gamerule," "spawnpoint," oraz "weather" zostały dodane. | |||
| 12w37a | Komenda "clear" została dodana. | ||||
| 12w38a | /clear can now be used to remove specific blocks/items. | ||||
| 12w41a | The limit for /xp is now 2,147,483,647 instead of 5,000. | ||||
| 1.4.4pre | The "enchant" została dodana. | ||||
| 1.5 | 13w03a | The "testfor" została dodana. It works only for command blocks. | |||
| 13w04a | Komenda "scoreboard" została dodana. | ||||
| 13w09b | The "effect" została dodana. | ||||
| 1.6 | 13w23a | The "spreadplayers" została dodana. | |||
| New gamerule "naturalRegeneration" was added. | |||||
| 13w24a | Zasada gry "doDaylightCycle" została dodana. | ||||
| 1.6pre | "clear" was added to the "effect" command. | ||||
| 1.6.1pre | komenda "playsound" została dodana. | ||||
| 1.7.2 | 13w36a | The "summon" została dodana. You can now put NBT tags in /give and /summon. | |||
| 13w37a | The "setblock" została dodana. When the 'x', 'y' and 'z' coordinates of the block are provided you can replace or destroy a block. | ||||
| The "tellraw" została dodana. You can create chat messages with custom links when a button is pressed. | |||||
| The "testforblock" została dodana. Command blocks can detect when blocks are placed and provide a comparator output. | |||||
| 13w38a | The "setidletimeout" została dodana. It automatically kicks idle players after the idle time specified in the command. This command is for multiplayer-only, and can be used only by server operators. | ||||
| 13w43a | The "setworldspawn" została dodana. Sets new point as the spawn for all players, even if they have never joined the server or are offline. Will not override beds. | ||||