root tag must be a named compound tag что делать майнкрафт
Root tag must be a named compound tag что делать майнкрафт
The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki’s logo. Please read this announcement for more information.
Examples [ ]
Commands/data
The /data command allows the user to get, merge, modify, and remove NBT data of a block entity, entity, or Command NBT storage.
Syntax [ ]
Removes NBT data at
from the targeted block position or entity. Player NBT data cannot be removed.
Syntax displayed in various ways
Contents
Не загружается карта
[*]1) Когда закрываю майн через диспетчер задач при безконечной генерации лагдшафта.
[*]2) Когда майн вылетает через shutting down internal server.
[/list]
Time: 09.09.15 1:19
Description: Loading screen debug info
This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
Storage [ ]
The command storage of NBT data is an efficient way for commands to access or save NBT data without an overhead for block entities or entities reading from or writing to the NBT data.
Each command storage is a general purpose, key-value storage, identified by a resource location to prevent unintentional conflicts.
Output [ ]
crashes on loading world
Description
I tried multiple times to start minecraft simply by clicking the green start up button that displays the version of Minecraft 19w09a latest snapshot. It takes me to the menu where I can select single user, then I go to where I select my world, then the loading graphics showing a square loading up from 0 to 100 percent does it’s thing, then the world I selected starts to load up showing some mediate detail that is closest to «me» but before the rest of the landscape can load, everything freezes,sounds stop, screen turns to black then the start minecraft box reloads with the message in the middle of it » game has crashed sorry for the inconvenience». I dont even have a chance to do anything other than watch this happen. I have a a copy of the detailed report but there is no place here to put it. I will try to paste all the stuff that comes up in red on the report in the comments section below this.
Contents
These are all seven types of nodes available.
The tags collection start with only one element (i.e. the root tag) and changes along the nodes on the path. NBT path consumers operate on the final collection of the tags.
Custom Modpack server help
You can post now and register later. If you have an account, sign in now to post with your account.
Similar Content
I’m at a loss. I’ve been playing my modpack for a month now and after updating to 1.16.5, it fails to launch as it loads Minecraft assets. I managed to get it to launch once, but it was vanilla Minecraft.
RAM: 8gb
MC Version: 1.16.5
Forge: forge-1.16.5-36.1.0-installer
Pastebin won’t work (404 error) so here’s the error log:
TLDR; It is defaulting to a fresh install of forge with no mods even though I have done the exact same thing I did in the past.
Minecraft Wiki
The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki’s logo. Please read this announcement for more information.
Examples [ ]
Mixed path [ ]
Example 1 [ ]
/data get entity @p foo.bar[0].»A [crazy name]!».baz
These names have been arbitrarily picked, for demonstrative purposes.
The tree structure
Example 2 [ ]
A player has written a book and placed it inside a chest at their feet, and are going to work up to the above command in stages. Observe the following imaginary chat log:
Result [ ]
NBT path format
Name escaping [ ]
Arguments [ ]
Specifies a storage to be operated on. Must be a resource location.
Specifies the NBT to retrieve or remove. Must be an NBT path.
Scalar for the command’s return value. Must be a Double-precision floating-point format number.
Specifies a compound tag to be merged into somewhere. Must be a compound NBT in SNBT format.
Specifies target NBT to modify. Must be an NBT path.
Specifies an item’s index within a list. Must be a 32-bit integer number.
Value used in modifying the target NBT. Should match its data type. Must be an NBT tag of any type in SNBT format.
Minecraft Wiki
The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki’s logo. Please read this announcement for more information.
NBT format
The Named Binary Tag (NBT) format is used by Minecraft for the various files in which it saves data. The format is designed to store data in a tree structure made up of various tags. All tags have an ID and a name.
Another more user-friendly format of NBT is in plain string, as used in commands. This format is referred to as SNBT, short for stringified NBT.
Contents
SNBT format [ ]
SNBT, also known as data tag, is often used in command in Java Edition. It can be described starting with attribute-value pairs enclosed in curly braces. One common usage of data tags in Java Edition 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 tag name and the tag’s value, separated by a colon. Some values, however, may be a compound tag and themselves contain attribute-value pairs, allowing a data tag to describe a hierarchical data structure.
Tag’s name can be enclosed with double quotes if necessary.
It is different from the JSON format; hence, any JSON used in NBT, such as raw JSON text, must be enclosed within a string tag.
Format of each type [ ]
The defined data structures also expect the values to be of the correct type.
» ( » within needs to be escaped to \» ), or ‘
‘ ( ‘ within needs to be escaped to \’ )
Each tag can be of any type.
NBT object [ ]
When the game is running, entities and block entities in loading chunks are stored in the memory. They are not stored with NBT, instead, they are just programmatic objects.
When processing NBT operations, the game needs to generate programmatic NBT object from entities/block entities, parse SNBT into NBT object, modify entities/blocks based on provided NBT object, or convert NBT object into SNBT.
Generating NBT object [ ]
When generating NBT from an entity/block, the entity/block’s properties are added into programmatic NBT object.
Note that not all properties are added. For example, the value of whether a player is opening a chest won’t be added into NBT object.
A value is added with certain data type. For example, a resource location will be converted to a string value.
These NBT objects will also be stored into game’s save files as NBT files when the game quits or automatically saves. So the data structures that NBT tags describe and the data type for each tag are basically the same ones used in game’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):
Objects | Examples |
---|---|
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/concrete powder/anvils |
Other entities | firework rockets, paintings, and item frames |
Conversion to SNBT [ ]
A programmatic NBT object would be converted to a SNBT when trying to get it with /data get etc.
And a string is always enclosed by double or single quotes.
Other data types are expressed as the #Format of each type table above.
Conversion from SNBT [ ]
An SNBT will be converted to a programmatic NBT object when parsed by the game.
A number that followed by a letter (B, S, L, F, D, or their lowercase) is resolved to corresponding data type. For example, 3s for a short, 3.2f for a float, etc. The letter can be uppercase or lowercase. When no letter is used, 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: [I;1,2,3] for an int array and [L;1L,2L,3L] for a long array.
true and false are converted as 1b and 0b respectively.
Modifying entity/block based on NBT object [ ]
Modifying entity/block based on a programmatic NBT object is not a simple progress. All certain tags need to be resolved before changing properties of a block/entity. Note that only certain properties can be changed. For example, when using /data command to modify a block entity, its coordinates cannot be changed.
If a property needs a value of resource location and gets a string tag, the string will be converted to a resource location.
If a property needs a value of JSON text and gets a string tag, the string will be parsed into JSON text object.
If a property needs a numeric value of certain type and gets a numeric tag of wrong type, the number will get some rounding operation and converts to the required type.
If a property needs a numeric value and gets a non-numeric tag, the number will become 0.
If a property needs a string value and gets a non-string tag, the string will become an empty string.
If a property needs a list or array of certain type and gets a wrong-type tag, a empty list/array will be got.
If a property needs a compount tag and gets a non-compount tag, a empty compount tag will be got.
Testing NBT tags [ ]
They check only for the presence of the provided tags in the target entity/block/storage. This means that the entity/block/storage can have additional tags and still match. This is true even for lists: the order and number of elements in an list a list is not considered, and as long as every requested element is in the list, it matches even if there are additional elements. For example, an entity with data
However, the order and number of elements in an byte/long/int array is acknowledged.
NBT file [ ]
An NBT file is a zipped Compound tag, with the name and tag ID included. The file in the zip must contain the Compound tag that it is as the first bytes. Some of the files utilized by Minecraft may be uncompressed, but in most cases, the files follow Notch’s original specification and are compressed with GZip.
TAG definition [ ]
A tag is an individual part of the data tree. The first byte in a tag is the tag type (ID), followed by a two byte big-endian unsigned integer for the length of the name, then the name as a string in UTF-8 format (Note TAG_End is not named and does not contain the extra 2 bytes; the name is assumed to be empty). Finally, depending on the type of the tag, the bytes that follow are part of that tag’s payload. This table describes each of the 13 known tags in version 19133 of the NBT format:
The List and Compound tags can be and often are recursively nested. It should also be noted that, in a list of lists, each of the sub-lists can list a different kind of tag.
Usage [ ]
Minecraft sometimes uses the NBT format inconsistently; in some instances, empty lists may be represented as a list of Byte tags rather than a list of the correct type, or as a list of End tags in newer versions of Minecraft, which can break some older NBT tools. Additionally, almost every root tag has an empty name string and encapsulates only one Compound tag with the actual data and a name. For instance:
Additionally, there is also inconsistent use of letter case, mostly either camelCase or PascalCase, but sometimes even in all lowercase.
How to Use the Tag Command in Minecraft
This Minecraft tutorial explains how to use the /tag command with step-by-step instructions.
You can add, list and remove player tags using the /tag command in Minecraft. This is a very useful command to target and tag players in a multiplayer game.
Let’s explore how to use this cheat (game command).
Supported Platforms
The /tag command is available in the following versions of Minecraft:
Platform | Supported (Version*) |
---|---|
| Yes (1.13) |
| Yes (1.9.0) |
| No |
| Yes (1.9.0) |
| No |
| Yes (1.14.0) |
| No |
| Yes (1.9.0) |
| Yes (1.9.0) |
| Yes (1.9.0) |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Tag Command
Tag Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac), there are different syntaxes depending on what you would like to do with the tags.
To add a tag to a player:
To list the tags for a player:
To remove a tag from a player:
Definitions
Tag Command in Minecraft Java Edition (PC/Mac)
In Minecraft Pocket Edition (PE), there are different syntaxes depending on what you would like to do with the tags.
To add a tag to a player:
To list the tags for a player:
To remove a tag from a player:
Definitions
Tag Command in Minecraft Xbox One Edition
In Minecraft Xbox One Edition, there are different syntaxes depending on what you would like to do with the tags.
To add a tag to a player:
To list the tags for a player:
To remove a tag from a player:
Definitions
Tag Command in Minecraft PS4 Edition
In Minecraft PS4 Edition, there are different syntaxes depending on what you would like to do with the tags.
To add a tag to a player:
To list the tags for a player:
To remove a tag from a player:
Definitions
Tag Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, there are different syntaxes depending on what you would like to do with the tags.
To add a tag to a player:
To list the tags for a player:
To remove a tag from a player:
Definitions
Tag Command in Minecraft Education Edition
In Minecraft Education Edition, there are different syntaxes depending on what you would like to do with the tags.
To add a tag to a player:
To list the tags for a player:
To remove a tag from a player:
Definitions
Tag Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac), there are different syntaxes depending on what you would like to do with the tags.
To add a tag to a player:
To list the tags for a player:
To remove a tag from a player:
Definitions
Examples
Example in Java Edition (PC/Mac) 1.13, 1.14, 1.15, 1.16 and 1.17
To add a tag called FoundMesaBiome to the nearest player in Minecraft 1.13, 1.14, 1.15, 1.16 and 1.17:
To list the tags for all players:
To remove the tag called FoundMesaBiome from the player called DigMinecraft:
Example in Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11 and 1.12
In Minecraft 1.12 and older, use the /scoreboard players tag to manage player tags instead of the /tags command.
Example in Pocket Edition (PE)
To add a tag called TamedHorse to the nearest player in Minecraft PE:
To list the tags for all players:
To remove the tag called TamedHorse from the player called Axe2Grind:
Example in Xbox One Edition
To add a tag called FirstKill to the nearest player in Minecraft Xbox One Edition:
To list the tags for all players:
To remove the tag called FirstKill from the player called TheEarthMover:
Example in PS4 Edition
To add a tag called FoughtDragon to the nearest player in Minecraft PS4 Edition:
To list the tags for all players:
To remove the tag called FoughtDragon from the player called DigMinecraft:
Example in Nintendo Switch Edition
To add a tag called PlantedWheat to the nearest player in Minecraft Nintendo Switch Edition:
To list the tags for all players:
To remove the tag called PlantedWheat from the player called DigMinecraft:
Example in Windows 10 Edition
To add a tag called BattledWither to the nearest player in Minecraft Windows 10 Edition:
To list the tags for all players:
To remove the tag called BattledWither from the player called TheEarthMover:
Example in Education Edition
To add a tag called UsedRedstone to the nearest player in Minecraft Education Edition:
To list the tags for all players:
To remove the tag called UsedRedstone from the player called DigMinecraft:
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
2. Type the Command
In this example, we will add a tag called FoundMesaBiome to the nearest player in Minecraft Java Edition (PC/Mac) 1.13 with the following command:
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the new tag will be added to the player.
You will see the message » Added tag ‘FoundMesaBiome’ to DigMinecraft » appear in the lower left corner of the game window to indicate that the tag was successfully add to the player named DigMinecraft.
Congratulations, you have learned how to use the /tag command in Minecraft.
Other Game Commands
You can use other commands and cheats in Minecraft such as:
Minecraft Wiki
The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki’s logo. Please read this announcement for more information.
Tutorials/Command NBT tags
The player can quickly find data tags (NBT) without the use of external editors by using /data to figure out the data for each entity or block entity. See more about this in the article Commands/data.
See Entity format for the various NBT Tags that are saved for each entity. This page also contains basic information for each NBT Tag.
When None is used in a tag name that means that this tag can be put directly into the start of the dataTag.
Contents
Items [ ]
These tags can be used on any item.
NBT Tag | Description | Allowed amount of same NBT Tags | Required tagnames | Syntax |
---|---|---|---|---|
Item | Used for any instance of item(s), it includes the resource location of the item(s), the number of items in the stack and the NBT data of the item(s). Any item with a Count of less than 1 or more than 127 becomes Air. | 1 | id, Count | |
Enchantments | Used for the addition of enchantments to items, it includes the id of the enchantment and the level of the enchantment. Can specify one enchantment or multiple enchantments. It is possible specify no enchantment, which still applies the enchantment glint over the item. | Any | All | |
display | Used for the addition of custom names, colors (leather armor), and lore to items. Lore may have multiple lines. Color is a hexadecimal color value, except in decimal. An RGB to hexadecimal converter can be found here and a hexadecimal to decimal converter can be found here. Names and lore must be passed as raw JSON text. | Any | At least one | The following syntax can also be used, and eliminates the need for backslashes: |
AttributeModifiers | Can be used to add attributes to mobs or items. For more information, see Attribute. | ? | All | |
Unbreakable | Used to make items with durability that never degrades. | 1 | All | |
SkullOwner | Used for getting player heads. | 1 | All | |
HideFlags | Used to hide flags (the info in the tool tip) such as enchantments, CanDestroy, CanPlaceOn, etc. To hide multiple tags, you need to add the value of the tags you want to hide. For example, if you want to hide the «Enchantments» and the «Attributes modifiers» tags, the value you need to put is 3 (1+2). VALUE ranges from 1 to 127, representing 127 combinations. When adding to create a unique VALUE: [1] Adding 1 hides «Enchantments» Adding 2 hides «AttributeModifiers» Adding 4 hides «Unbreakable» Adding 8 hides «CanDestroy» Adding 16 hides «CanPlaceOn» Adding 32 hides other information, including potion effects, shield pattern info, «StoredEnchantments», written book «generation» and «author», «Explosion», «Fireworks», and map tooltips Adding 64 hides «Dyed» on leather armors Allowed 1 amount of same NBT Tags. | All | ||
generation (Minecraft Java Edition 1.8) | Defines whether a written book is labeled as an «Original», a «Copy of Original», a «Copy of a copy» or «Tattered». | «Original», «Copy of Original», «Copy of a copy», «Tattered» Unknown amount of allowed same NBT Tags. | At least one | |
Fireworks | Used when giving yourself firework rockets, this value defines what the rocket will do when launched: color, flight duration, shape, etc. | Any | At least one |
The following table describes more details on Enchantments sub-tag.
Tagname | Description | Value Type | Allowed Values | Example |
---|---|---|---|---|
id | Refers to the id of an enchantment. See Enchanting for details on which id correlates to which enchantment. | String | Enchantment ID | «minecraft:efficiency» |
lvl | Determines the level of an enchantment. A level between one and ten displays properly on an item as a roman numeral, however, any value above that displays as enchantment.level.lvl. | Numerical | -2147483648 to 2147483647 | 4 |
The following table describes more details on display sub-tag.
Tagname | Description | Value Type | Allowed Values | Example | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | The name of an item displayed in game. For blocks such as Chests and Dispensers the name replaces the default ‘Chest’ or ‘Dispenser’ in the upper left hand corner of the GUI. When used on command blocks the name is displayed when executing commands. This can be seen by using the /say command. | String | Text with JSON object with key «text». It’s value can be any character that is available within the Minecraft language files (Most characters on your keyboard) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Lore | The text under the name of the item. | List of strings | Text with JSON array containing JSON objects with key «text». Their values can be any character that is available within the Minecraft language files (Most characters on your keyboard) | The following table describes more details on the Fireworks sub-tag.
Blocks [ ]These tags are put on blocks as items.
Entities [ ]These tags are used when using the /summon command to spawn entities or when using the /data to edit the data of entities. This tag determines only the entity’s velocity, not the direction that it’s facing. The following table provides information on each tagname that can be added in an NBT Tag. These tagnames are specific to the /summon command. Villager [ ]These tags are used when summoning villagers. (Offers NBT can’t be done in 1.14+) Item Frame [ ]These tags are used when summoning itemframes. Potion [ ]These tags are used to customize potions
Armor Stand [ ]These tags are used when summoning armor stands.
Note: The Equipment tag also works for armor stands. Turtle [ ]These tags are used when summoning turtles.
Blocks [ ]
Generic [ ]These tags can be used on most tile entitied blocks
Beacon [ ]
Spawner [ ]These tags are used when using /setblock or /summon (spawner minecarts) to create spawners. Add only those data tags you want to avoid a potential error.
Sub-tags used in the SpawnPotentials data tag.
|