0

I am currently running a minecraft 1.15 SMP (Java Edition) server with just worldguard and worldedit. I have a custom villager trader npc using the command below:

/summon villager -603 63 88 {VillagerData:{profession:cartographer,level:5,type:savanna},Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,CustomName:'{"text":"Token Redeemer","bold":true,"color":"aqua"}',ActiveEffects:[{Id:26,Amplifier:0,Duration:999999}],Rotation:[-180f,0f],Offers:{Recipes:[ {buy:{id:heart_of_the_sea,Count:3,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:golden_pickaxe,Count:1}, sell:{id:golden_pickaxe,Count:1,tag:{display:{Name:'{"text":"\u25c6 Gold Miner \u25c6","bold":true,"color":"yellow"}',Lore:["\"A softer approach to mining.\""]},Enchantments:[{id:efficiency,lvl:3},{id:unbreaking,lvl:3},{id:silk_touch,lvl:1},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:3,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:golden_shovel,Count:1}, sell:{id:golden_shovel,Count:1,tag:{display:{Name:'{"text":"\u25c6 Gold Digger \u25c6","bold":true,"color":"yellow"}',Lore:["\"She take my money!\""]},Enchantments:[{id:efficiency,lvl:3},{id:unbreaking,lvl:3},{id:fortune,lvl:2},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:3,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:golden_axe,Count:1}, sell:{id:golden_axe,Count:1,tag:{display:{Name:'{"text":"\u25c6 Midas Axe \u25c6","bold":true,"color":"yellow"}',Lore:["\"Wealth out the wazoo!\""]},Enchantments:[{id:efficiency,lvl:3},{id:unbreaking,lvl:3},{id:fortune,lvl:2},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:3,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:golden_sword,Count:1}, sell:{id:golden_sword,Count:1,tag:{display:{Name:'{"text":"\u25c6 Phoenix Blade \u25c6","bold":true,"color":"yellow"}',Lore:["\"From the ashes, another flame!\""]},Enchantments:[{id:sharpness,lvl:2},{id:knockback,lvl:1},{id:fire_aspect,lvl:2},{id:looting,lvl:2},{id:sweeping,lvl:2},{id:unbreaking,lvl:3},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:5,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:bow,Count:1}, sell:{id:bow,Count:1,tag:{display:{Name:'{"text":"\u25c6 Bow of Ulysses \u25c6","bold":true,"color":"gold"}',Lore:["\"Embued with the burning spirit of Ifrit.\""]},Enchantments:[{id:unbreaking,lvl:5},{id:power,lvl:5},{id:punch,lvl:2},{id:flame,lvl:1},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:5,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:iron_pickaxe,Count:1}, sell:{id:iron_pickaxe,Count:1,tag:{display:{Name:'{"text":"\u25c6 Chrome Pick \u25c6","bold":true,"color":"gold"}',Lore:["\"One swing badabing!\""]},Enchantments:[{id:unbreaking,lvl:5},{id:efficiency,lvl:4},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:5,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:iron_shovel,Count:1}, sell:{id:iron_shovel,Count:1,tag:{display:{Name:'{"text":"\u25c6 Shovel Knight \u25c6","bold":true,"color":"gold"}',Lore:["\"A shovel to slay them all...\""]},Enchantments:[{id:unbreaking,lvl:3},{id:efficiency,lvl:4},{id:knockback,lvl:3},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:5,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:iron_axe,Count:1}, sell:{id:iron_axe,Count:1,tag:{display:{Name:'{"text":"\u25c6 Aran Polearm \u25c6","bold":true,"color":"gold"}',Lore:["\"The power of Maha!\""]},Enchantments:[{id:unbreaking,lvl:5},{id:sharpness,lvl:3},{id:efficiency,lvl:4},{id:knockback,lvl:2},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:5,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:iron_sword,Count:1}, sell:{id:iron_sword,Count:1,tag:{display:{Name:'{"text":"\u25c6 Excalibur \u25c6","bold":true,"color":"gold"}',Lore:["\"Fabricated of fables.\""]},Enchantments:[{id:unbreaking,lvl:5},{id:sharpness,lvl:4},{id:knockback,lvl:1},{id:looting,lvl:2},{id:sweeping,lvl:2},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:10,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:crossbow,Count:1}, sell:{id:crossbow,Count:1,tag:{display:{Name:'{"text":"\u25c6 Fenrir \u25c6","bold":true,"color":"blue"}',Lore:["\"Odin's nightmare.\""]},Enchantments:[{id:multishot,lvl:1},{id:piercing,lvl:4},{id:quick_charge,lvl:5},{id:unbreaking,lvl:5},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:10,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:diamond_pickaxe,Count:1}, sell:{id:diamond_pickaxe,Count:1,tag:{display:{Name:'{"text":"\u25c6 Moonlight Pickaxe \u25c6","bold":true,"color":"blue"}',Lore:["\"Forged from the moon's glow.\""]},Enchantments:[{id:unbreaking,lvl:5},{id:efficiency,lvl:4},{id:knockback,lvl:2},{id:fortune,lvl:2},{id:mending,lvl:1}]}},rewardExp:0b,maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:10,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:diamond_shovel,Count:1}, sell:{id:diamond_shovel,Count:1,tag:{display:{Name:'{"text":"\u25c6 Stargaze Shovel \u25c6","bold":true,"color":"blue"}',Lore:["\"Forged from starlight.\""]},Enchantments:[{id:unbreaking,lvl:5},{id:efficiency,lvl:4},{id:knockback,lvl:3},{id:fortune,lvl:2},{id:mending,lvl:1}]}},maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:10,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:diamond_axe,Count:1}, sell:{id:diamond_axe,Count:1,tag:{display:{Name:'{"text":"\u25c6 Skyglass Axe \u25c6","bold":true,"color":"blue"}',Lore:["\"Forged from the sun's glow.\""]},Enchantments:[{id:unbreaking,lvl:5},{id:sharpness,lvl:4},{id:efficiency,lvl:4},{id:knockback,lvl:2},{id:mending,lvl:1}]}},maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:10,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:diamond_sword,Count:1}, sell:{id:diamond_sword,Count:1,tag:{display:{Name:'{"text":"\u25c6 Celestial Blade \u25c6","bold":true,"color":"blue"}',Lore:["\"Forged of moonlight and sunglow.\""]},Enchantments:[{id:sweeping,lvl:5},{id:fire_aspect,lvl:1},{id:unbreaking,lvl:5},{id:sharpness,lvl:5},{id:knockback,lvl:1},{id:looting,lvl:5},{id:mending,lvl:1}]}},maxUses:9999999}, {buy:{id:heart_of_the_sea,Count:25,tag:{display:{Name:'{"text":"Blank Token","bold":true,"color":"aqua"}'}}},buyB:{id:diamond_pickaxe,Count:1}, sell:{id:diamond_pickaxe,Count:1,tag:{display:{Name:'{"text":"\u25c6 End Game \u25c6","bold":true,"color":"aqua"}',Lore:["\"This is it.\""]},Enchantments:[{id:efficiency,lvl:5},{id:unbreaking,lvl:5},{id:fortune,lvl:3},{id:mending,lvl:1}]}},maxUses:9999999}]}}

My villager spawns with all the corresponding Lore, requirements, and everything looks good... except I cannot actually trade for the item. I have the correct ingredients and they auto-populate in the trade window, however when I click on the selling item the item disappears. Any clue if this is a bug or if my Lore tag is messed up?

  • 1
    Wow, that command is a monstrosity. Your problem sounds interesting, but please first try to reproduce it with a shorter command by taking out unnecessary details/parts and then insert that instead. – Fabian Röling Apr 7 at 21:32
-3

I suggest (since you are using spigot/paper/any plugin supporting server software) to just use the Shopkeepers plugin. It keeps the vanilla aesthetic, all it allows is for admins to easily set up trades by shift right-clicking on spawned in "shopkeepers" (villagers). Get it here: https://dev.bukkit.org/projects/shopkeepers

| improve this answer | |
  • 1
    That sounds suspiciously like ad. It also doesm't fix the issue, it might just (maybe) avoid the entire feature. – Fabian Röling Apr 8 at 5:12
  • @FabianRöling What on earth are you talking about? The plugin is free... why would I advertise it? I use it on my multiplayer server, so I thought pointing it out as an option would be beneficial. It solves the user's issue, just because it is not how you would have done it does not make it wrong.... – Samuurai Apr 8 at 7:17
  • 1
    No need for the salt Fabian. But Thanks for the answers! Ill try out the plugin. – Brandon Basix Apr 9 at 0:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.