Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267767

Custom villagers have extreme trouble trying to trade potions.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.20.4
    • None
    • Unconfirmed
    • (Unassigned)

      I have many custom villagers on my Minecraft server, all of them work except one of the villagers which trades the server currency for potions. I give myself the custom potions and trade it to the villager and it works fine, however when I first move the potion in my inventory or manually put the potion into the trading slot with my mouse, then when I try to take the trade item, his XP goes up but the trade fails. For a split second the trade actually works but then the items go back into the slots.

      _Command for the villager: /summon villager ~ ~-0.5 ~ {OnGround:1b,NoGravity:1b,Silent:1b,Invulnerable:1b,NoAI:1b,CanPickUpLoot:0b,Xp:1000,Rotation:[-180F,0F],VillagerData:

      {profession:"minecraft:fletcher"}

      ,Offers:{Recipes:[{maxUses:2147483646,uses:1,buy:{id:"minecraft:potion",Count:1b,tag:{display:{Name:'

      {"text":"Alus","color":"dark_red","bold":true,"italic":true}

      '},custom_potion_effects:[\{id:"minecraft:nausea",amplifier:1b,duration:1200}],Potion:"minecraft:mundane",CustomPotionColor:10570496}},sell:{id:"minecraft:blue_dye",Count:1b,tag:{display:{Name:'

      {"text":"10 BLUs","color":"dark_blue","bold":true,"italic":true}

      '}}}},{maxUses:2147483646,uses:1,buy:{id:"minecraft:potion",Count:1b,tag:{display:{Name:'

      {"text":"Vynas","color":"dark_purple","bold":true,"italic":true}

      '},custom_potion_effects:[\{id:"minecraft:slowness",amplifier:0b,duration:1200}],Potion:"minecraft:mundane",CustomPotionColor:10551296}},sell:{id:"minecraft:blue_dye",Count:2b,tag:{display:{Name:'

      {"text":"10 BLUs","color":"dark_blue","bold":true,"italic":true}

      '}}}},{maxUses:2147483646,uses:1,buy:{id:"minecraft:potion",Count:1b,tag:{display:{Name:'

      {"text":"Samanė","color":"gold","bold":true,"italic":true}

      '},custom_potion_effects:[\{id:"minecraft:blindness",amplifier:1b,duration:1200}],Potion:"minecraft:mundane",CustomPotionColor:16777215}},sell:{id:"minecraft:blue_dye",Count:1b,tag:{display:{Name:'

      {"text":"50 BLUs","color":"dark_blue","bold":true,"italic":true}

      '}}}}]}}_

       

      _Command used to give myself the custom potion (Only tested of 2 of the potions but they both have the same problem, figured the 3rd one is also not going to work.): /give @p potion{display:{Name:'

      {"text":"Vynas","color":"dark_purple","bold":true,"italic":true}

      '},custom_potion_effects:[\{id:"minecraft:slowness",amplifier:0b,duration:1200}],Potion:"minecraft:mundane",CustomPotionColor:10551296} 1_

            Unassigned Unassigned
            snaigusas snaigusas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: