Why won't this command work? [duplicate]
![Why won't this command work? [duplicate] - Close Up Photo of Computer Codes Why won't this command work? [duplicate] - Close Up Photo of Computer Codes](/assets/images/why_won39t_this_command_work_duplicate_0.jpeg)
/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?
Best Answer
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.
Pictures about "Why won't this command work? [duplicate]"
![Why won't this command work? [duplicate] - Man in Red Crew Neck T-shirt Holding White Box Why won't this command work? [duplicate] - Man in Red Crew Neck T-shirt Holding White Box](/assets/images/why_won39t_this_command_work_duplicate_1.jpeg)
![Why won't this command work? [duplicate] - Man in White and Black Crew Neck T-shirt Why won't this command work? [duplicate] - Man in White and Black Crew Neck T-shirt](/assets/images/why_won39t_this_command_work_duplicate_2.jpeg)
![Why won't this command work? [duplicate] - Man in White Crew Neck T-shirt Holding Red Plastic Crate With Green Plants Why won't this command work? [duplicate] - Man in White Crew Neck T-shirt Holding Red Plastic Crate With Green Plants](/assets/images/why_won39t_this_command_work_duplicate_3.jpeg)
What is the command for duplicating?
Keyboard Command: Control (Ctrl) + C The COPY command is used for just that - it copies the text or image you have selected and stores is on your virtual clipboard, until it is overwritten by the next "cut" or "copy" command.How do I copy a previous line?
As @cand mentioned, you can just do Ctrl + C ; Ctrl + V . Ctrl + C will copy the line if nothing is selected.How do I enable copy and paste in Ubuntu?
Right-click on the Ubuntu VM where you want to enable copy and paste, then click on Settings. Advanced settings -> Shared Clipboard, select Bidirectional. If you prefer to enable copy-paste in one direction, please choose that. After selection, click on the OK button to save your preferences.LICD: Why Won't She Leave
More answers regarding why won't this command work? [duplicate]
Answer 2
Yes, your command is not work because some curly bracket is missing. Let me break down your code and you can see what is wrong on your code.
Here is the breakdown for your code, as you can see there is a lot curly bracket is missing.
Let me show you the correct code. So below this picture is the correct code you need to be.
If I change it into one line it will become like this:
/summon Villager ~ ~2 ~{Offers:{Recipes:[{buy:{id:371,Count:15},sell:{id:264,Count:4}}]}}
Hope this answer can make your problem clear.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Markus Spiske, Kindel Media, Kindel Media, Kindel Media