Why won't this command work?

/summon Villager ~ ~2 ~ {Offers:{Recipes:[{buy:{id:371,Count:15},sell:{id:264,Count:4}}

I’m using this as a recycler villager, and I can’t get the first trade to work. What’s going on?

  • What is the difference between Technic and Tekkit?
  • Is it possible to lay a block adjacent to another without looking at the face of the existing block?
  • How can I determine which direction I'm facing?
  • Where is the mod folder?
  • Is Minecart motion preserved if a chunk is unloaded?
  • Inventory Slot Detection
  • Distributing items evenly
  • Make tools indestructible in Minecraft
  • How do I make Endermen spawn more frequently?
  • Advanced Pump vs BuildCraft Pump
  • Is it possible to link 2 different servers together?
  • I Can't Replace A Block With A Command Block!
  • One Solution collect form web for “Why won't this command work?”

    If you remove the text from the NBT tag, you get this:


    This shows that you have unbalanced brackets. To correct this, just add ]}} to the command, to close all the brackets.

    /summon Villager ~ ~2 ~ {Offers:{Recipes:[{buy:{id:371,Count:15},sell:{id:264,Count:4}}]}}

    In future, you could use MCStacker, a tool for generating longer commands.

    We love Playing Games, especially Video Games.