Maden tipi | En son bulunabileceği tabaka | En fazla bulundugu tabaka |
---|---|---|
Lapis lazuli | 23. katman | 14. katman |
Altın cevheri | 29. tabaka | 20. katman |
Elmas cevheri | 12. katman | 10. katman |
Kızıltaş cevheri | 15. katman | 8. tabaka |
Ana makale: NBT format
A data tag is a tree-shaped data structure that can be described starting with attribute-value pairs enclosed in curly braces. One common usage of data tags (sadece java için) is in commands, used to specify complex data for any entity.
A data tag consists of zero or more attribute-value pairs delimited by commas and enclosed in curly braces. 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.
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):
Nesneler | Örnekler |
---|---|
Block entities | chests, furnaces, command blocks, mob spawners, signs, etc. |
Items | items in inventories (includes specifications for enchantments, lore, custom names, etc.) |
Item entities | items on the ground |
Mobs | creepers, cows, villagers, etc. |
Projectiles | arrows, fireballs, thrown potions, etc. |
Vehicles | boats, minecarts, etc. |
Dynamic tiles | primed TNT, falling sand/gravel/anvils |
Other entities | firework rockets, paintings, and item frames |
The defined data structures also expect the values to be of the correct type.
Type | Description |
---|---|
Byte | A signed 8-bit integer, ranging from -128 to 127 (inclusive). |
Short | A signed 16-bit integer, ranging from -32,768 to 32,767 (inclusive). |
Int | A signed 32-bit integer, ranging from -2,147,483,648 and 2,147,483,647 (inclusive). |
Long | A signed 64-bit integer, ranging from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 (inclusive). |
Float Double | Float: A 32-bit, single-precision floating-point number, ranging from -3.4E+38 to +3.4E+38.
Double: A 64-bit, double-precision floating-point, ranging from -1.7E+308 to +1.7E+308.
See IEEE floating point for details. |
String | A sequence of characters, enclosed in quotes. For strings without commas, brackets, braces or spaces, quote enclosure is optional. Nested quotes can be included within a string by escaping the character with the escape sequence.
|
List | An ordered list of tags, enclosed in square brackets and delimited by commas. The tags must be of the same type, determined by the first tag in the list.
|
Compound | An ordered list of attribute-value pairs, enclosed in curly braces and delimited by commas.
Each tag may be of any type. |
Byte Array | followed by an ordered list of 8-bit integers, delimited by commas. Tag is enclosed in square brackets.
|
Int Array | followed by an ordered list of 32-bit integers, delimited by commas. Tag is enclosed in square brackets.
|
Long Array | followed by an ordered list of 64-bit integers, delimited by commas. Tag is enclosed in square brackets.
|
Boolean | A value, expressed as "true" or "false". This is seen only in JSON formatting, as a Byte tag is usually used in NBT data to determine a boolean value as 0 (for false) and 1 (for true).
|
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, for a short, 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 size fits within 32 bits, or string if neither is true. A square-bracketed literal is assumed to be a list unless an identifier is used: for an int array and for a long array.
When commands such as are used to match data tags, they check only for the presence of the provided tags in the target entity/block/item. This means that the entity/block/item can have additional tags and 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 matches even if there are additional elements.
Ana makale: Raw JSON text format
The and commands use the raw JSON text format to display texts.
Also, Some values of arguments in NBT structures are using JSON format.
This feature is exclusive to Java Edition.
Şablon:Article other
Many commands have arguments that identify particular types of blocks, items, entities, advancemewadawd, bossbars, effects, enchantments and so on. In the command syntax below, these typically appear as elements named , , or the like, which are replaced with identifiers such as in the examples. These IDs all have namespaces. All original Minecraft contents are namespaced while contents from mods or data packs have other namespaces. Namespace prefix of IDs namespaced can be omitted for most situations; however, in certain cases, such as NBT data tag matching, full namespaced ids are required.
A single argument looks like this:
The format of parameters is , in which block states and data tags can be omitted when they are not needed.
A single argument that looks like this:
The format of parameters is , in which data tags can be omitted when not needed.
Ana makale: Java Edition list of argument types
These are the argument types Java Sürümü sürümünde.
The table below summarizes all commands, including upcoming ones. Click a column heading to sort by that column. Click the link in the first unit of each row to get detailed usage of each command.
Komut | Açıklama | Bedrock Sürümü | Education Sürümü | Java Sürümü | Yönetici Düzeyi | Sadece Çok Oyunculu | Blok Düzenleme | Varlık Düzenleme | Oyuncu Düzenleme | Dünya Düzenleme |
---|---|---|---|---|---|---|---|---|---|---|
Bir oyuncuya bir yetenek verir veya geri alır. | Evet | Evet | — | 2 | — | — | — | Evet | — | |
Bir varlık niteliğini sorgular, ekler, geri alır veya sabitler. | — | — | Evet | 2 | — | — | Evet | Evet | — | |
Oyuncuların gelişim basamaklarını kontrol eder, verir veya geri alır. | — | — | Evet | 2 | — | — | — | Evet | — | |
Oyuncuyu ban listesine ekler. | — | — | Evet | 3 | Evet | — | — | Evet | — | |
Oyuncunun IP Adresini ban listesine ekler. | — | — | Evet | 3 | Evet | — | — | Evet | — | |
Ban listesini gösterir. | — | — | Evet | 3 | Evet | — | — | Evet | — | |
Bossbar'ları oluşturur ve düzenler. | — | — | Evet | 2 | — | — | — | Evet | Evet | |
Sınırlandırılmış blokları düzenleme yeteneği için kullanılır. | — | Evet | — | 3 | — | — | — | — | — | |
Eşyaları oyuncu envanterinden siler. | Evet | Evet | Evet | 2 | — | — | — | Evet | — | |
Blokları bir yerden başka bir yere kopyalar. | Evet | Evet | Evet | 2 | — | Evet | — | — | — | |
Kod bağlantısına erişmek için kulanılır. | — | Evet | — | ? | — | — | — | — | — | |
Üç boyutlu ajanlardan bir blok içinde tüm itemleri toplar. | — | Evet | — | ? | — | — | — | — | — | |
Mevcut oyuncunun konumunda ajan oluşturur. | — | Evet | — | ? | — | — | — | — | — | |
Blok birimlerini ve varlık NBT verilerini alır, birleştirir, değiştirir ve geri alır. | — | — | Evet | 2 | — | Evet | Evet | Evet | — | |
Yüklenmiş veri paketlerini kontrol eder. | — | — | Evet | 2 | — | — | — | — | Evet | |
Hata düzeltme sistemini çalıştırır veya durdurur. | — | — | Evet | 3 | — | — | — | — | — | |
Varsayılan oyun modunu belirler. | — | — | Evet | 2 | — | — | — | — | Evet | |
Oyuncuda bulunan yöneticilik rütbesini kaldırır. | Evet | Evet | Evet | 3 | Evet(sadece java için) | — | — | Evet | — | |
Ajan, belirtilen yönde bir blok veya öğeyi yok eder. | — | Evet | — | ? | — | — | — | — | — | |
Ajan, belirtilen yönde çarpışabilir bir blok olup olmadığını algılar. | — | Evet | — | ? | — | — | — | — | — | |
Ajan, belirtilen yönde bir kızıltaş sinyali algılar. | — | Evet | — | ? | — | — | — | — | — | |
Zorluk seviyesini belirler. | Evet | Evet | Evet | 2 | — | — | — | — | Evet | |
Ajan, tüm öğeleri tüm yuvalardan belirtilen yönde bir blok ile yere bırakır. | — | Evet | — | ? | — | — | — | — | — | |
Durum Etkilerini ekler veya geri alır. | Evet | Evet | Evet | 2 | — | — | Evet | Evet | — | |
Bir oyuncu eşyasına büyü basar. | Evet | Evet | Evet | 2 | — | — | — | Evet | — | |
Başka bir komutu yürütür. | Evet | Evet | Evet | 2 | — | Evet | Evet | Evet | Evet | |
Oyuncuya tecrübe ekler veya geri alır. | Evet | Evet | Evet | 2 | — | — | — | Evet | — | |
Fills a region with a specific block. | Evet | Evet | Evet | 2 | — | Evet | — | — | — | |
Forces chunks to constantly be loaded or not. | — | — | Evet | 2 | — | — | — | — | Evet | |
Runs a function. | Evet | — | Evet | 2 | — | — | — | — | — | |
Sets a player's game mode. | Evet | Evet | Evet | 2 | — | — | — | Evet | — | |
Sets or queries a game rule value. | Evet | Evet | Evet | 2 | — | — | — | — | Evet | |
Shows the information about the client. | — | Evet | — | ? | — | — | — | — | — | |
Gives an item to a player. | Evet | Evet | Evet | 2 | — | — | — | Evet | — | |
Provides help for commands. | Evet | Evet | Evet | 0 | — | — | — | — | — | |
Allows setting immutable state of a world. | — | Evet | — | 3 | — | — | — | — | Evet | |
Kicks a player off a server. | Evet | Evet | Evet | 3 | — | — | — | Evet | — | |
Kills entities (players, mobs, items, etc.). | Evet | Evet | Evet | 2 | — | — | Evet | Evet | — | |
Lists players on the server. | Evet | Evet | Evet | 0 | — | — | — | Evet | — | |
Locates closest structure. | Evet | Evet | Evet | 2 | — | — | — | — | Evet | |
Locates closest biome. | — | — | Evet | 2 | — | — | — | — | Evet | |
Drops items from an inventory slot onto the ground. | — | — | Evet | 2 | — | Evet | Evet | Evet | Evet | |
Displays a message about the sender. | Evet | Evet | Evet | 0 | — | — | — | Evet | — | |
Mixer interactivity control. | Evet | — | — | 2 | — | — | — | — | — | |
Enables/disables a specified mob event. | Evet | Evet | — | 2 | — | — | — | Evet | — | |
Moves an Agent in a specified direction. | — | Evet | — | ? | — | — | — | — | — | |
Displays a private message to other players. | Evet | Evet | Evet | 0 | — | — | — | Evet | — | |
Grants operator status to a player. | Evet | Evet | Evet | 3 | Evet(sadece java için) | — | — | Evet | — | |
Removes entries from the banlist. | — | — | Evet | 3 | Evet | — | — | Evet | — | |
Creates particles. | Evet | — | Evet | 2 | — | — | — | Evet | — | |
Plays a sound. | Evet | Evet | Evet | 2 | — | — | — | Evet | — | |
Toggles player coordinates to be displayed on the HUD. | — | Evet | — | ? | — | — | — | — | — | |
Opens single-player world to local network. | — | — | Evet | 4 | Sadece Tek Oyunculu Modda | — | — | — | Evet | |
Adjusts ray tracing fog. | Planlandı | — | — | 3 | Evet | — | — | Evet | — | |
Gives or takes player recipes. | — | — | Evet | 2 | — | — | — | Evet | — | |
Reloads loot tables, advancements, and functions from disk. | Evet | — | Evet | 2 | — | — | — | — | Evet | |
Removing agent. | — | Evet | — | 3 | — | — | Evet | — | — | |
Replaces items in inventories. | Evet | Evet | Evet | 2 | — | Evet | Evet | Evet | — | |
Prepares a backup, queries its status, or resumes. | Sadece BDS'te | — | — | — | Evet | — | — | — | Evet | |
Saves the server to disk. | — | — | Evet | 4 | Evet | — | — | — | Evet | |
Disables automatic server saves. | — | — | Evet | 4 | Evet | — | — | — | Evet | |
Enables automatic server saves. | — | — | Evet | 4 | Evet | — | — | — | Evet | |
Displays a message to multiple players. | Evet | Evet | Evet | 1 | — | — | — | — | — | |
Delays the execution of a function. | — | — | Evet | 2 | — | — | — | — | — | |
Manages scoreboard objectives and players | Evet | — | Evet | 2 | — | — | Evet | Evet | — | |
Displays the world seed. | — | — | Evet | 2 | — | — | — | — | Evet | |
Changes a block to another block. | Evet | Evet | Evet | 2 | — | Evet | — | — | — | |
Sets the time before idle players are kicked. | — | — | Evet | 3 | Evet | — | — | Evet | — | |
Sets the maximum number of players allowed to join. | Evet | Evet | — | 0 | — | — | — | Evet | — | |
Sets the world spawn. | Evet | Evet | Evet | 2 | — | — | — | — | Evet | |
Sets the spawn point for a player. | Evet | Evet | Evet | 2 | — | — | — | Evet | — | |
Make one player in spectator mode spectate an entity. | — | — | Evet | 2 | — | — | — | Evet | — | |
Teleports entities to random locations. | Evet | Evet | Evet | 2 | — | — | Evet | Evet | — | |
Stops a server. | — | — | Evet | 4 | Evet | — | — | — | Evet | |
Stops a sound. | Evet | Evet | Evet | 2 | — | — | — | Evet | — | |
Summons an entity. | Evet | Evet | Evet | 2 | — | — | Evet | — | — | |
Controls entity tags. | Evet | — | Evet | 2 | — | — | Evet | Evet | — | |
Controls teams. | — | — | Evet | 2 | — | — | Evet | Evet | — | |
Specifies the message to send to team. | — | — | Evet | 0 | — | — | — | Evet | — | |
Teleports entities. | Evet | Evet | Evet | 2 | — | — | Evet | Evet | — | |
Displays a private message to other players. | Evet | Evet | Evet | 0 | — | — | — | Evet | — | |
Displays a JSON message to players. | Evet | — | Evet | 2 | — | — | — | Evet | — | |
Counts entities matching specified conditions. | Evet | Evet | — | 2 | — | — | Evet | Evet | — | |
Tests whether a block is in a location. | Evet | Evet | — | 2 | — | Evet | — | — | — | |
Tests whether the blocks in two regions match. | Evet | Evet | — | 2 | — | Evet | — | — | — | |
Add, remove, or list ticking areas. | Evet | Evet | — | 2 | — | — | — | — | Evet | |
Changes or queries the world's game time. | Evet | Evet | Evet | 2 | — | — | — | — | Evet | |
Manages screen titles. | Evet | Evet | Evet | 2 | — | — | — | Evet | — | |
Toggles the weather. | Evet | Evet | — | 2 | — | — | — | — | Evet | |
Teleports entities. | Evet | Evet | Evet | 2 | — | — | Evet | Evet | — | |
Teleport player to the Agent's position. | — | Evet | — | ? | — | — | — | — | — | |
Transfers specified quantity of items from the selected slot to another specified slot of Agent's inventory. | — | Evet | — | ? | — | — | — | — | — | |
Transfer player to a server. | Evet | Evet | — | 0 | — | — | — | — | — | |
Sets a trigger to be activated. | — | — | Evet | 0 | — | — | — | Evet | — | |
Rotates Agent in the specified direction by 90 degrees. | — | Evet | — | ? | — | — | — | — | — | |
Displays a private message to other players. | Evet | Evet | Evet | 0 | — | — | — | Evet | — | |
Sets the weather. | Evet | Evet | Evet | 2 | — | — | — | — | Evet | |
Manages server whitelist. | — | — | Evet | 3 | Evet | — | — | Evet | — | |
Manages the world border. | — | — | Evet | 2 | — | — | — | — | Evet | |
Ability to edit restricted blocks. | Evet | Evet | — | 3 | — | — | — | — | Evet | |
Connects to a WebSocket server. | Evet | Evet | — | 0 | — | — | — | — | — | |
Adds or removes player experience. | Evet | Evet | Evet | 2 | — | — | — | Evet | — |
Komut | Açıklama | Kaldırıldığı Versiyon | Kaldırılma Sebebi | Bedrock Sürümü | Education Sürümü | Java Sürümü | Yönetici Düzeyi | Sadece Çok Oyunculu | Blok Düzenleme | Varlık Düzenleme | Oyuncu Düzenleme | Dünya Düzenleme |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Bir oyuncuya başarım ekler veya geri alır. | Java Edition 1.12 (17w13a) | Achievements were superseded by advancements | — | — | Kaldırıldı | 2 | — | — | — | Evet | — | |
Bans a player by IP number | Java Edition Indev 0.31 | Superseded by | — | — | Kaldırıldı | ? | Evet | — | — | Evet | — | |
Modifies the data tag of a block | Java Edition 1.13 (17w47a) | Superseded by | — | — | Kaldırıldı | 2 | — | Evet | — | — | — | |
Broadcasts a message across the entire server | Java Edition Classic 0.0.16a_01 | Superseded by | — | — | Kaldırıldı | 1 | — | — | — | — | — | |
Clears fixed inventory slots | Pocket Edition Alpha 0.16.0 (build 2) | ? | Kaldırıldı | — | — | ? | ? | — | — | Evet | — | |
Modifies the data tag of an entity | Java Edition 1.13 (17w45b) | Superseded by | — | — | Kaldırıldı | 2 | — | — | Evet | — | — | |
Oyuncuları dünya doğma noktasına ışınlar. | Java Sürümü Alfa v1.2.5 | Dünyada doğma noktası tekil bir konum yerine chunk üzerine kuruluydu. | — | — | Kaldırıldı | 0 | — | — | — | — | — | |
Köylülerin ekonomik alış-verişleri için verecekleri malzemeleri günceller. | ? | ? | Kaldırıldı | — | — | 2 | — | — | Evet | — | — | |
Özel bir eşya ile sabit envanter yuvalarının sayısını belirler. | Pocket Sürümü Alfa v0.16.0 (yapım 2) | ? | Kaldırıldı | — | — | ? | ? | — | — | Evet | — | |
Sabit envanter yuvalarının sayısını belirler. | Pocket Sürümü Alfa v0.16.0 (yapım 2) | ? | Kaldırıldı | — | — | ? | ? | — | — | Evet | — | |
Yeni oyuncular için dünyadaki varsayılan doğma noktasını belirler. | Java Sürümü Indev v0.31 | Dünyada doğma noktası tekil bir konum yerine chunk üzerine kuruluydu. | — | — | Kaldırıldı | 2 | — | — | — | — | — | |
Taş ve Katman Kayasını yere koymak arasında değişiklik yapar. | Java Sürümü Indev v0.31 | Envanterdekiblokları yere koyuyordu. | — | — | Kaldırıldı | 2 | — |