You're missing a comma, which is what's causing an empty chest. However, the item format dictates that all item data that is not "id", "Damage", "Count", or "Slot" must be placed within a single "tag" tag:
Thanks much Skylinerw, that works like a charm. I don't really understand what you said, but I can go try and read up on it on wiki or something. I was basically trying to copy my command prompt /give commands: "/give @p diamond_pickaxe 1 0 {ench:[{id:33,lvl:1},{id:34,lvl:3}]}"
Ultimately I'd like to load up a chest full of things used for family ABBA competitions. One line in a command block will be much easier than many lines of individual commands.
Thanks much Skylinerw, that works like a charm. I don't really understand what you said, but I can go try and read up on it on wiki or something. I was basically trying to copy my command prompt /give commands: "/give @p diamond_pickaxe 1 0 {ench:[{id:33,lvl:1},{id:34,lvl:3}]}"
Ultimately I'd like to load up a chest full of things used for family ABBA competitions. One line in a command block will be much easier than many lines of individual commands.
This is the NBT format used for all items in inventories. In certain inventories there is not a "Slot" tag, such as the "Equipment" list for mobs.
The /give, /clear, and /replaceitem commands are special cases, in which their dataTags start directly within the "tag" tag. I'll list each command's syntax while replacing individual parts with the corresponding name in the format listed above.
/give syntax ("Slot" is not defined because /give instead summons an item at the player's feet, rather than placing it directly in their inventory):
I can give a chest with multiple items. However I cannot get the syntax correct for making some of those items enchanted.
/give @p chest 1 0 {BlockEntityTag:{Items:[{id:diamond_pickaxe ench:[{id:33,lvl:1},{id:34,lvl:3}],Count:1,Slot:0}]}}
I have tried many variants on the above line, but as soon as I add something beyond the "diamond_pickaxe" I only get an empty chest.
Any help would be appreciated. Thanks!
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/
Ultimately I'd like to load up a chest full of things used for family ABBA competitions. One line in a command block will be much easier than many lines of individual commands.
Here's a wiki page detailing the item format: http://minecraft.gamepedia.com/Player.dat_format#Item_structure
To copy it here, filling in data for example purposes:
This is the NBT format used for all items in inventories. In certain inventories there is not a "Slot" tag, such as the "Equipment" list for mobs.
The /give, /clear, and /replaceitem commands are special cases, in which their dataTags start directly within the "tag" tag. I'll list each command's syntax while replacing individual parts with the corresponding name in the format listed above.
/give syntax ("Slot" is not defined because /give instead summons an item at the player's feet, rather than placing it directly in their inventory):
/clear syntax (no "Slot" or "Count" support):
/replaceitem syntax (supports all):
If needed, I have a basic tool to convert a /give command into a secluded item format here: http://goo.gl/PXe4Zj
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/