I was working on a new map recently (not horribly outdated like my last one), and one of its features would be a villager shop where players could buy upgrades. I was trying to make a trade, where a Written Book (made using a program to act like a book of fire magic) and a half-stack of bones would hand the player another Written Book with more powerful attacks, but for some reason the command doesn't work! Putting in the necessary items doesn't make the trade go through. Can anyone help me?
Note: The reason all the commands do is set Redstone Blocks is because, in the map, there would be command block systems in those places that would be activated by them.
/summon villager ~ ~1 ~ {CustomName:"Fire Magician",CustomNameVisible:1,Profession:2,Career:0,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:stick,Count:1b,tag:{display:{Name:"Staff",Lore:[Just a regular staff. Not all staves,can shoot lightning you know!]}}},buyB:{id:bone,Count:16b},sell:{id:written_book,Count:1b,tag:{display:{Name:"Book of Flame",Lore:[Contains powerful fire attacks. Can,also be of help up close.]},title:"Book of Flame",author:"???",generation:0,pages:["{text:\"Fireball\",color:red,bold:true,italic:false,underlined:false,hoverEvent:{action:'show_text',value:\"Shoot a fireball at 2 enemies!\"},clickEvent:{action:'run_command',value:\"/setblock 1781 112 -177 redstone_block\"},extra:[{text:\"Flame Shield\",color:red,bold:false,italic:true,underlined:false,hoverEvent:{action:'show_text',value:\"Memes are no match for this!\"}},{text:\"Meteor\",color:red,bold:false,italic:false,underlined:true,hoverEvent:{action:'show_text',value:\"Powerful, but be careful not to hurt yourself!\"}}]}"]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:written_book,Count:1b,tag:{display:{Name:"Book of Flame",Lore:[Contains powerful fire attacks. Can,also be of help up close.]},title:"Book of Flame",author:"???",generation:0,pages:["{text:\"Fireball\",color:red,bold:true,italic:false,underlined:false,hoverEvent:{action:'show_text',value:\"Shoot a fireball at 2 enemies!\"},clickEvent:{action:'run_command',value:\"/setblock 1781 112 -177 redstone_block\"},extra:[{text:\"Flame Shield\",color:red,bold:false,italic:true,underlined:false,hoverEvent:{action:'show_text',value:\"Memes are no match for this!\"}},{text:\"Meteor\",color:red,bold:false,italic:false,underlined:true,hoverEvent:{action:'show_text',value:\"Powerful, but be careful not to hurt yourself!\"}}]}"]}},buyB:{id:bone,Count:32b},sell:{id:written_book,Count:1b,tag:{display:{Name:"Book of Flame II",Lore:[If you want more firepower (heh),be sure to check this out!]},title:"Book of Flame II",author:"???",generation:0,pages:["{text:\"Fireball\",color:red,bold:true,italic:false,underlined:false,hoverEvent:{action:'show_text',value:\"Shoot a fireball at 2 enemies!\"},clickEvent:{action:'run_command',value:\"/setblock 1781 112 -177 redstone_block\"},extra:[{text:\"Flame Shield\",color:red,bold:false,italic:true,underlined:false,hoverEvent:{action:'show_text',value:\"Memes are no match for this!\"}},{text:\"Meteor\",color:red,bold:false,italic:false,underlined:true,hoverEvent:{action:'show_text',value:\"Powerful, but be careful not to hurt yourself!\"}}]}","{text:\"Fireball II\",color:red,bold:true,italic:false,underlined:false,hoverEvent:{action:'show_text',value:\"Shoot a fireball at 3 enemies! Way better, trust me.\"},clickEvent:{action:'run_command',value:\"/setblock 1788 112 -177 redstone_block\"},extra:[{text:\"Flame Shield II\",color:red,bold:false,italic:true,underlined:false,hoverEvent:{action:'show_text',value:\"Now with 22% more meme-stopping power!\"},clickEvent:{action:'run_command',value:\"/setblock 1788 112 -180 redstone_block\"}},{text:\"Meteor II\",color:red,bold:false,italic:false,underlined:true,hoverEvent:{action:'show_text',value:\"Hammer an enemy with explosive goodness!\"},clickEvent:{action:'run_command',value:\"/setblock 1788 112 -183 redstone_block\"}}]}"]}}}]}}
I was working on a new map recently (not horribly outdated like my last one), and one of its features would be a villager shop where players could buy upgrades. I was trying to make a trade, where a Written Book (made using a program to act like a book of fire magic) and a half-stack of bones would hand the player another Written Book with more powerful attacks, but for some reason the command doesn't work! Putting in the necessary items doesn't make the trade go through. Can anyone help me?
Note: The reason all the commands do is set Redstone Blocks is because, in the map, there would be command block systems in those places that would be activated by them.
[center][center]
Thank you so much! Would you like a mention in the final version of the map?
[center][center]
Would a sign near the shop that says "/thank @p[name=Maxaxik]" be good?
[center][center]