1
Unable to locate name/value separator for ...
Hi ! i'm doing a map requiring custom villagers, so I made one using a command block, but then, a error message appears :
command:
/summon Villager ~ ~ ~ {CustomName:Engineer,CustomNameVisible:1,Offers:{Recipes:[{maxUses:999,buy:{id:redstone,Count:5},buyB:{id:glass,Count:8},sell:{id:stained_glass,Count:0,Damage:1}},{maxUses:999,buy:{id:iron_ingot,Count:12},buyB:{id:redstone,Count:8},sell:{id:stained_hardened_clay,Count:1,Damage:6,tag:{display:{Name:Regeneration Plate}},{maxUses:999,buy:{id:coal,Count:20},sell:{id:diamond,Count:1}}}}]}}
Error message:
Data tag parsing failed: unable to locate name/value separator for "{maxUses:999,buy:{id:coal,Count:20},sell:{id:diamond,Count:1}}"
Can you please help me ?
(also sorry for my bad english, I'm French)
command:
/summon Villager ~ ~ ~ {CustomName:Engineer,CustomNameVisible:1,Offers:{Recipes:[{maxUses:999,buy:{id:redstone,Count:5},buyB:{id:glass,Count:8},sell:{id:stained_glass,Count:0,Damage:1}},{maxUses:999,buy:{id:iron_ingot,Count:12},buyB:{id:redstone,Count:8},sell:{id:stained_hardened_clay,Count:1,Damage:6,tag:{display:{Name:Regeneration Plate}},{maxUses:999,buy:{id:coal,Count:20},sell:{id:diamond,Count:1}}}}]}}
Error message:
Data tag parsing failed: unable to locate name/value separator for "{maxUses:999,buy:{id:coal,Count:20},sell:{id:diamond,Count:1}}"
Can you please help me ?
(also sorry for my bad english, I'm French)
Create an account or sign in to comment.
3
1
Oh my gosh! That is incredibly helpful! Thank you so much for introducing it to me.
1
lol next time if there is an issue with something like this use a JSON Parser such as the one here.
1
I hope you still check this. After a few minutes, I figured out that a few brackets were in the wrong places. Here is the new working command:
I hope this helped!
/summon Villager ~ ~ ~ {CustomName:Engineer,CustomNameVisible:1,Offers:{Recipes:[{maxUses:999,buy:{id:redstone,Count:5},buyB:{id:glass,Count:8},sell:{id:stained_glass,Count:0,Damage:1}},{maxUses:999,buy:{id:iron_ingot,Count:12},buyB:{id:redstone,Count:8},sell:{id:stained_hardened_clay,Count:1,Damage:6,tag:{display:{Name:"Regeneration Plate"}}}},{maxUses:999,buy:{id:coal,Count:20},sell:{id:diamond,Count:1}}]}}
I hope this helped!