This one is for a real professional in the MC command block area.
So my issue is with the new villager trading in 1.10. I thought it would be interesting to add a Trade if the new tipped arrows for an adventure map and a few potions as well. But when I created this with what I thought was correct, the game only recognized the item itself and not the potion effect. So I have the tipped arrows but it just shows a red zero next to it. Her is the code I use for the summon villager:
This one is for a real professional in the MC command block area.
So my issue is with the new villager trading in 1.10. I thought it would be interesting to add a Trade if the new tipped arrows for an adventure map and a few potions as well. But when I created this with what I thought was correct, the game only recognized the item itself and not the potion effect. So I have the tipped arrows but it just shows a red zero next to it. Her is the code I use for the summon villager:
Put your spoiler here./summon Villager ~1 ~ ~ {
Profession: 1,
CustomName: "Frank",
CustomNameVisible: 1,
Career: 1,
CareerLevel: 42,
CanPickUpLoot: 0,
PersistenceRequired: 1,
NoAI: 1,
Invulnerable: 1,
Offers: {
Recipes: [
{
buy: {
id: "gold_ingot",
Count: 5
},
maxUses: 9999999,
sell: {
id: "golden_axe",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 15
},
maxUses: 9999999,
sell: {
id: "iron_axe",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 30
},
maxUses: 9999999,
sell: {
id: "diamond_axe",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 5
},
maxUses: 9999999,
sell: {
id: "arrow",
Count: 20
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 10
},
maxUses: 9999999,
sell: {
id: "tipped_arrow",
Count: 1
tag:{Potion:"poison"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 15
},
maxUses: 9999999,
sell: {
id: "tipped_arrow",
Count: 1
tag:{Potion:"minecraft:slowness"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "tipped_arrow",
Count: 1
tag:{Potion:"minecraft:damage"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 10
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:healing"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:stong_healing"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 30
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:regeneration"}
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:long_regeneration"}
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 10
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:strong_regeneration"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 5
},
maxUses: 9999999,
sell: {
id: "rotten_flesh",
Count: 32
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 10
},
maxUses: 9999999,
sell: {
id: "carrot",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 15
},
maxUses: 9999999,
sell: {
id: "wheat_seeds",
Count: 8
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "potato",
Count: 8
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "beef",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "rabbit",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "porkchop",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 1
},
maxUses: 9999999,
sell: {
id: "red_mushroom",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 5
},
maxUses: 9999999,
sell: {
id: "sugar",
Count: 10
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "blaze_powder",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "rabbit_foot",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 10
},
maxUses: 9999999,
sell: {
id: "magma_cream",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 15
},
buyB: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "fermented_spider_eye",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 20
},
buyB: {
id: "gold_ingot",
Count: 30
},
maxUses: 9999999,
sell: {
id: "fish",
Count: 1,
Damage: 3
},
rewardExp: false
}
]
}
}
Any assistance with this would be great, and if you need any additional info, just let me know.
You missed a comma after the Count tag on your tipped arrow, so it should look like this (which works):
/summon Villager ~1 ~ ~ {
Profession: 1,
CustomName: "Frank",
CustomNameVisible: 1,
Career: 1,
CareerLevel: 42,
CanPickUpLoot: 0,
PersistenceRequired: 1,
NoAI: 1,
Invulnerable: 1,
Offers: {
Recipes: [
{
buy: {
id: "gold_ingot",
Count: 5
},
maxUses: 9999999,
sell: {
id: "golden_axe",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 15
},
maxUses: 9999999,
sell: {
id: "iron_axe",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 30
},
maxUses: 9999999,
sell: {
id: "diamond_axe",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 5
},
maxUses: 9999999,
sell: {
id: "arrow",
Count: 20
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 10
},
maxUses: 9999999,
sell: {
id: "tipped_arrow",
Count: 1,
tag:{Potion:"poison"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 15
},
maxUses: 9999999,
sell: {
id: "tipped_arrow",
Count: 1
tag:{Potion:"minecraft:slowness"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "tipped_arrow",
Count: 1
tag:{Potion:"minecraft:damage"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 10
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:healing"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:stong_healing"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 30
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:regeneration"}
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:long_regeneration"}
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 10
},
maxUses: 9999999,
sell: {
id: "potion",
Count: 1
tag:{potion:"minecraft:strong_regeneration"}
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 5
},
maxUses: 9999999,
sell: {
id: "rotten_flesh",
Count: 32
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 10
},
maxUses: 9999999,
sell: {
id: "carrot",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 15
},
maxUses: 9999999,
sell: {
id: "wheat_seeds",
Count: 8
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "potato",
Count: 8
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "beef",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "rabbit",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "porkchop",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 1
},
maxUses: 9999999,
sell: {
id: "red_mushroom",
Count: 4
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 5
},
maxUses: 9999999,
sell: {
id: "sugar",
Count: 10
},
rewardExp: false
},
{
buy: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "blaze_powder",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 5
},
maxUses: 9999999,
sell: {
id: "rabbit_foot",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 10
},
maxUses: 9999999,
sell: {
id: "magma_cream",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 15
},
buyB: {
id: "gold_ingot",
Count: 20
},
maxUses: 9999999,
sell: {
id: "fermented_spider_eye",
Count: 1
},
rewardExp: false
},
{
buy: {
id: "diamond",
Count: 20
},
buyB: {
id: "gold_ingot",
Count: 30
},
maxUses: 9999999,
sell: {
id: "fish",
Count: 1,
Damage: 3
},
rewardExp: false
}
]
}
}
That's so funny, You can really see my "expertise" on the subject. I am laughing so hard right now!