2

Creating minecraft commandblock command but having an issue

EchocallingEarth •2/14/19 5:47 pm history
•
263
•
2/18/2019 8:04 am
I am trying to setup a command for a command block to summon a villager in trading for a specific item however the systems says I have an unclosed quote at the end of the command. I do not see what I missed here. Would some one please look at it for me.

/summon minecraft:villager ~1 ~ ~ {Profession:3,CustomName:"Master Forger",CustomNameVisible:1,Career:1,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Invulnerable:1,Offers:{Recipes:[{buy:{id:"diamond_block",Count:3},maxUses:9999999,sell:{id:"diamond_chestplate 1 0 {display:{Name:Chestplate_of_the_Gods,Lore:[Forged_in_Hades]},ench:[{id:0,lvl:5},{id:1,lvl:5},{id:3,lvl:5}]},Count:1},rewardExp:false}]}}

Thank you

PS if there are any good sites for testing ones command block codes please let me know thanks :)
Posted by
EchocallingEarth
Level 33 : Artisan Architect
26

  Have something to say?

Join • Sign in

4

ShelLuser
• 02/18/2019 8:04 am
He/Him • Level 61 : High Grandmaster Senpai
history
What you need is Visual Studio code. It's a code editor not to be confused with Visual Studio (which is a full blown coding IDE) and it is amazing. It supports dozens of file formats, including JSON. Out of the box too, so you don't need any extra plugins either.

Look:

VS Code snippet

All I did was fire up VS Code, created a new file ('tab'), pasted in your code snippet above and then set the file type to JSON (in the lower right corner). Then I formatted the code using shift-alt-f and voila: you can see right away where you made a typing mistake: after 'id' on the last line the rest of the sentence is brown, which means that you have an opening quote (") but not a matching closing one.

(edit): VS Code is an open source project, the editor is available for Windows, MacOS & Linux.
1
oyo321
• 02/15/2019 8:18 am
• Level 40 : Master Blockhead
First it would be very helpfull to know for which mc version this command is! There is a good site named mcstacker.net where you can create commands like your one for 1.13, only create, no syntax control. :-( If you use 1.12 and below there is a other site for this versions.
1
Hashs
• 02/14/2019 10:28 pm
Any/All • Level 68 : High Grandmaster Botanist Procrastinator
Here's a revised version that should work.
/summon minecraft:villager ~ ~1 ~
{Profession:3,CustomName:"Master
Forger",CustomNameVisible:1,Career:1,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Invulnerable:1,Offers:{Recipes:[{buy:{id:"diamond_block",Count:3},maxUses:9999999,sell:{id:"diamond_chestplate",Count:1b,tag:{display:{Name:"Chestplate of the Gods",Lore:["Forged in Hades"]},ench:[{id:0,lvl:5},{id:1,lvl:5},{id:3,lvl:5}]}},rewardExp:false}]}}
3
spychicken123
• 02/14/2019 10:13 pm
• Level 43 : Master Taco
i think that maybe you need in the "id" parts you need a minecraft: infront of the item, and also you didnt close the quotation in front of the diamond_chestplate
1

Welcome