1

Unable to locate name/value separator for ...

Hunlaskull's Avatar Hunlaskull8/29/14 7:02 am
1 emeralds 1.6k 3
9/7/2014 11:56 am
HawkpathAS's Avatar HawkpathAS
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)
Posted by Hunlaskull's Avatar
Hunlaskull
Level 1 : New Miner
0

Create an account or sign in to comment.

3

1
09/07/2014 11:56 am
Level 9 : Apprentice Engineer
HawkpathAS
HawkpathAS's Avatar
Oh my gosh! That is incredibly helpful! Thank you so much for introducing it to me.
1
09/07/2014 11:44 am
Level 38 : Artisan Programmer
deadrecon98
deadrecon98's Avatar
lol next time if there is an issue with something like this use a JSON Parser such as the one here.
1
09/07/2014 11:40 am
Level 9 : Apprentice Engineer
HawkpathAS
HawkpathAS's Avatar
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:

/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!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome