The Data Tag command works in every command that accepts NBT data value. For example: ./give or ./summon (new command)
A lot of people got confused with this new feature, so I'll try my best to explain.
FOR ./GIVE COMMAND:
If you want to give someone a Diamond Sword (id 276), you'd type:
/give @p 276
Right? But for adding a new Data Tag command we need to put 2 new variables before the ID. Those variables are: COUNT and DAMAGE. If you want to give more than 1 sword, the first tag needs to be this number. e.g.:
/give @p 276 64
And if you you'd like to damage the sword a bit, you'll need to add a number which is lower or equal to the respective maximum damage. e.g. Fishing Rod maximum damage is 64.
/give @p 346 0 48
But that's not the point. We need to add Data Tag, so just put empty variables (Count >= 1). To start off the tag, add brackets and type "display:". In this you can put Name and Lore(description). E.G.:
/give @p 276 1 0 {display:{Name:"Awesome",Lore:["It is awesome"]}}
And to add an enchantment, just put it in the last but one curly brackets, add a ',' and type ench[]
In this brackets you want to put id:"*",lvl:"*" Obviously id means the Enchantment ID and lvl is the Level. You can download a pretty light text file I wrote to get those IDs.e.g.:
/give @p 272 1 0 {display:{Name:"Glory",Lore:["Used for deadly combat"]},ench:[id:"16",lvl:"5"]}
...Led to the error "Data tag parsing failed: Unbalanced curly brackets {}: {SkeletonType:[1}],{Invulnerable:1}" and I can't figure out how to solve this in order to add 2 data tags to the Skeleton.
I've tried several ways mimicking your example (replacing them with these two data tags, of course), but most result in the unbalanced curly brackets error.
where is there a list of all the possible Data Tags, and how to possibly implement them into the command system (using the brackets, quotations, colons/semicolons, etc.) ?
where is there a list of all the possible Data Tags, and how to possibly implement them into the command system (using the brackets, quotations, colons/semicolons, etc.) ?
How about for a Horse with speed 100, jump 5, and resistance 100? command for that PLEASE?
/summon EntityHorse ~ ~ ~ {ActiveEffects:[{Id:1,Amplifier:100,Duration:1000000},{Id:11,Amplifier:100,Duration:1000000},{Id:8,Amplifier:5,Duration:1000000}]}
That should do the trick. I haven't tested it, but there don't seem to be any problems, so you can just copy/paste it.
Rollback Post to RevisionRollBack
Please excuse any and all errors, whether they be grammatical or factual. I try my best, but no one's perfect.
As you can see, you have ended the dataTags after the "]" closing the Attributes tag. Simply moving the comma off of the curly bracket to the square bracket, and move the curly bracket to the end of the command to close the dataTags:
Alright, what's going on with this command? I'm trying to figure out how to spawn a mob with enchanted armor / weapons as well as enchantments on the actual mob.
Alright, what's going on with this command? I'm trying to figure out how to spawn a mob with enchanted armor / weapons as well as enchantments on the actual mob.
Looking at your command, right away you can see that it ends in a square bracket. It has to end in a curly bracket to close the beginning of the dataTags. For now, let's put in some indents to see what went wrong:
With proper indenting, your code shouldn't come back against the left column until the very last line, in which the square bracket currently resides. You ended the dataTags early; just before the Equipment tag. To fix this, you simply need to move that curly bracket, as all else seems to be in working order:
i am making an adventure map and i cant figure out the summon command i know a little bit but its not working
my command is summon Skeleton ~ ~9 ~ {Equipment:[{id:261},{},{},{},{}]},Riding:{id:"Bat"}
i put that in a command block and it says
Data tag parsing failed:Encountered multiple top tags,only one expected
i am making an adventure map and i cant figure out the summon command i know a little bit but its not working
my command is summon Skeleton ~ ~9 ~ {Equipment:[{id:261},{},{},{},{}]},Riding:{id:"Bat"}
i put that in a command block and it says
Data tag parsing failed:Encountered multiple top tags,only one expected
You've closed the dataTags after your "Equipment" tag. All tags must reside in the initial opening brackets. Your fix:
I am trying to create a boss and i get the "Data tag parsing failed:Encountered multiple top tags,only one expected" message ccould someone help me plz :
As you'll notice, on the very left column are 3 curly brackets. There should only be one up against the left. You have closed the dataTags too early and attempted to open another set, which cannot be done. To fix this, you simply need to push the "ActiveEffects" back into the original dataTags:
A lot of people got confused with this new feature, so I'll try my best to explain.
FOR ./GIVE COMMAND:
If you want to give someone a Diamond Sword (id 276), you'd type:
Right? But for adding a new Data Tag command we need to put 2 new variables before the ID. Those variables are: COUNT and DAMAGE. If you want to give more than 1 sword, the first tag needs to be this number. e.g.:
And if you you'd like to damage the sword a bit, you'll need to add a number which is lower or equal to the respective maximum damage. e.g. Fishing Rod maximum damage is 64.
But that's not the point. We need to add Data Tag, so just put empty variables (Count >= 1). To start off the tag, add brackets and type "display:". In this you can put Name and Lore(description). E.G.:
And to add an enchantment, just put it in the last but one curly brackets, add a ',' and type ench[]
In this brackets you want to put id:"*",lvl:"*" Obviously id means the Enchantment ID and lvl is the Level. You can download a pretty light text file I wrote to get those IDs.e.g.:
Download TXT File
So that's it for this topic. I hope this is useful for you and yeah... Leave you feedback and stuff. Bye.
~~DirtTNT
but I got the error "Data tag parsing failed: Encountered multiple top tags, only one expected." So I tested something, and this:
...Led to the error "Data tag parsing failed: Unbalanced curly brackets {}: {SkeletonType:[1}],{Invulnerable:1}" and I can't figure out how to solve this in order to add 2 data tags to the Skeleton.
I've tried several ways mimicking your example (replacing them with these two data tags, of course), but most result in the unbalanced curly brackets error.
I think that u only need to put } at the end:
PS: I have tested it, and yes is this code ;P
Great Adventure Map!
Whoa. Thanks! I thought it would be more involved than just putting commas between the data tags.
"Wake me, when you need me."
You can find a huge amount of info here, just click on the sub-links provided under "Uses": http://www.minecraftwiki.net/wiki/Nbt_format#As_used_in_Minecraft
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
{Motion:[0.0,0.0,0.0]}
(x velocity, y velocity, z velocity)
So, {Motion:[2.0,0.0,0.0]} would give it an x velocity of +1
/summon EntityHorse ~ ~ ~ {ActiveEffects:[{Id:1,Amplifier:100,Duration:1000000},{Id:11,Amplifier:100,Duration:1000000},{Id:8,Amplifier:5,Duration:1000000}]}
That should do the trick. I haven't tested it, but there don't seem to be any problems, so you can just copy/paste it.
/summon Cow ~ ~2 ~ {Attributes:[{Name:generic.maxHealth, Base:300.0}]}, ActiveEffects:[{Id:11,Amplifier:2,Duration:9999,Ambient:0},{Id:1,Amplifier:2,Duration:9999}]
I get the 'Data tag parsing failed: Encountered multiple top tags, only one expected.'
Here is your command with indentation for easier reading/debugging:
As you can see, you have ended the dataTags after the "]" closing the Attributes tag. Simply moving the comma off of the curly bracket to the square bracket, and move the curly bracket to the end of the command to close the dataTags:
Condensed:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
/summon Zombie ~ ~2 ~ {ActiveEffects:[{Id:10,Amplifier:1,Duration:200,Ambient:0}]},Equipment:[{id:276,tag:{ench:[{id:16,lvl:2}]}},{},{id:300,tag:{ench:[{id:0,lvl:2}]}}]
I get the top tags error.
Looking at your command, right away you can see that it ends in a square bracket. It has to end in a curly bracket to close the beginning of the dataTags. For now, let's put in some indents to see what went wrong:
With proper indenting, your code shouldn't come back against the left column until the very last line, in which the square bracket currently resides. You ended the dataTags early; just before the Equipment tag. To fix this, you simply need to move that curly bracket, as all else seems to be in working order:
Condensed:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
my command is summon Skeleton ~ ~9 ~ {Equipment:[{id:261},{},{},{},{}]},Riding:{id:"Bat"}
i put that in a command block and it says
Data tag parsing failed:Encountered multiple top tags,only one expected
You've closed the dataTags after your "Equipment" tag. All tags must reside in the initial opening brackets. Your fix:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Here is your code indented for debugging:
As you'll notice, on the very left column are 3 curly brackets. There should only be one up against the left. You have closed the dataTags too early and attempted to open another set, which cannot be done. To fix this, you simply need to push the "ActiveEffects" back into the original dataTags:
Condensed:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/