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

Villager GUI closes instantly when using custom trades on a villager with no profession and with AI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.14.4, 19w42a, 1.15.1, 1.15.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2, 21w03a, 1.16.5, 1.17.1, 1.18.1, 1.18.2, 22w12a, 1.19, 1.19.2, 22w42a, 23w03a, 1.20.1, 23w45a, 1.21
    • Confirmed
    • Commands, Trading
    • Low
    • Platform

      when adding custom trades to a villager with no profession and no trades using /data modify, when he is clicked, the gui appears and closes instantly, the trade is there because the villager will have the item holding behavior and if there is a lag spike during the click, the gui might be visible for a second

       

      exact command:

      /data modify entity (villager) Offers.Recipes append value 
      {maxUses: 10000,
      buyB: {id: "minecraft:stone", Count: 1b},
      buy: {id: "minecraft:stone", Count: 1b},
      sell: {id: "minecraft:stone", Count: 1b},
      xp: 0, uses: 0, specialPrice: 0, rewardExp: 0b}
      

      this only affects villagers without a profession and with AI

      /summon command
      /summon villager ~ ~ ~ {VillagerData:{profession:"minecraft:none"},Offers:{Recipes:[{maxUses:100,buyB:{id:stone,Count:1b},buy:{id:stone,Count:1b},sell:{id:stone,Count:1b}}]}}
      

        1. MC-164353.mp4
          3.96 MB
        2. MC-164353.png
          MC-164353.png
          947 kB
        3. _BugTracker_ (1.21).png
          _BugTracker_ (1.21).png
          352 kB

            Unassigned Unassigned
            Breakmit marius jaegler
            Votes:
            14 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: