This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hello all,
I need your help with a villager-summon command.
I want to create a Villager, who sells a sword, that has a better attack speed.
But the command does not work and the Commanddblock says to me:
"TAG_string cannot be added to the list of TAG_compound" at position 490"
When I do a give command for the same sword, it works and the command for a villager, who sells a normal golden sword is working, too.
/summon villager ~ ~1 ~ {Invulnerable:1,NoAI:1,Rotation:[90f,0f],CustomName:"\"Meisterschmied\"", Offers:{Recipes:[{buy:{id:iron_ingot,Count:2},buyB:{id:gold_ingot,Count:50}, sell:{id:golden_sword,Count:1,tag:{display:{Name:"\"Katana\""},AttributeModifiers:[{AttributeName:"generic.attackSpeed", Name:"egal", Amount:2.5, Operation:0, UUIDMost:1, UUIDLeast:1, Slot:mainhand}, {AttributeName:"generic.attackDamage", Name:"egal", Amount:5, Operation:0, UUIDMost:1,UUIDLeast:2, Slot:mainhand}]}}},maxUses:9999999
}]}}
Could you please help me with that issue?
Thanks in advance
Quote from cylo19» Hello all, I need your help with a villager-summon command. I want to create a Villager, who sells a sword, that has a better attack speed. But the command does not work and the Commanddblock says to me: "TAG_string cannot be added to the list of TAG_compound" at position 490" When I do a give command for the same sword, it works and the command for a villager, who sells a normal golden sword is working, too. /summon villager ~ ~1 ~ {Invulnerable:1,NoAI:1,Rotation:[90f,0f],CustomName:"\"Meisterschmied\"", Offers:{Recipes:[{buy:{id:iron_ingot,Count:2},buyB:{id:gold_ingot,Count:50}, sell:{id:golden_sword,Count:1,tag:{display:{Name:"\"Katana\""},AttributeModifiers:[{AttributeName:"generic.attackSpeed", Name:"egal", Amount:2.5, Operation:0, UUIDMost:1, UUIDLeast:1, Slot:mainhand}, {AttributeName:"generic.attackDamage", Name:"egal", Amount:5, Operation:0, UUIDMost:1,UUIDLeast:2, Slot:mainhand}]}}},maxUses:9999999 }]}} Could you please help me with that issue? Thanks in advance
Here you go, you had 1 curly bracket extra after the "mainhand" part
/summon villager ~ ~1 ~ {Invulnerable:1,NoAI:1,Rotation:[90f,0f],CustomName:"\"Meisterschmied\"",Offers:{Recipes:[{buy:{id:iron_ingot,Count:2},buyB:{id:gold_ingot,Count:50},sell:{id:golden_sword,Count:1,tag:{display:{Name:"\"Katana\""},AttributeModifiers:[{AttributeName:"generic.attackSpeed", Name:"egal", Amount:2.5, Operation:0, UUIDMost:1, UUIDLeast:1, Slot:mainhand},{AttributeName:"generic.attackDamage", Name:"egal", Amount:5, Operation:0, UUIDMost:1,UUIDLeast:2, Slot:mainhand}]}},maxUses:9999999}]}}
Command block engineer // Developer // #TeamTrees
Hello all,
I need your help with a villager-summon command.
I want to create a Villager, who sells a sword, that has a better attack speed.
But the command does not work and the Commanddblock says to me:
"TAG_string cannot be added to the list of TAG_compound" at position 490"
When I do a give command for the same sword, it works and the command for a villager, who sells a normal golden sword is working, too.
/summon villager ~ ~1 ~ {Invulnerable:1,NoAI:1,Rotation:[90f,0f],CustomName:"\"Meisterschmied\"",
Offers:{Recipes:[{buy:{id:iron_ingot,Count:2},buyB:{id:gold_ingot,Count:50},
sell:{id:golden_sword,Count:1,tag:{display:{Name:"\"Katana\""},AttributeModifiers:[{AttributeName:"generic.attackSpeed", Name:"egal", Amount:2.5, Operation:0, UUIDMost:1, UUIDLeast:1, Slot:mainhand},
{AttributeName:"generic.attackDamage", Name:"egal", Amount:5, Operation:0, UUIDMost:1,UUIDLeast:2, Slot:mainhand}]}}},maxUses:9999999
}]}}
Could you please help me with that issue?
Thanks in advance
Here you go, you had 1 curly bracket extra after the "mainhand" part
Command block engineer // Developer // #TeamTrees