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

Execute unless entity selector nbt inventory slot bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16.5, 1.17, 1.17.1 Pre-release 3, 1.17.1
    • Win 10 pro
      CPU = i5 8600k 6 cores 4.50Ghz
      GPU = GTX 1080
      Ram = 16 Go 3000Mhz
      Storage = HDD

      8Go of ram allowed for Minecraft
    • Unconfirmed
    • Creative
    • (Unassigned)

      I want to dectect if a player got empty slot 9 if true give an arrow.

      I use the following command on a repeating command block :

      /execute unless entity @p[nbt={Inventory:[{id:"minecraft:arrow",Slot:9b,Count:1b,tag:{display:{Name:"

      {\"text\":\"arrow\"}

      "}}}]}] run item replace entity @p container.9 minecraft:arrow{display:{Name:"

      {\"text\":\"arrow\"}

      "}}

       

      The command work, but there is a bug, when i SHIFT+ Right Clic on the arrow to place in active slot form 0-8, the arrow is placed on slot but there is no new arrow placed on the slot 9 (at the 2nd time, the first works). I have to place new item on slot 9 to refresh and an new arrow is placed on slot 9.

      But when i Right clic on slot 9 arrow to place it on an other slot, there is a new arrow placed on the 9 slot. So i think this is a bug.

      I tried to remove tags but it's the same problem. I'm on a solo creative world.

      Edit : command update to 1.17

        1. 2021-03-18_17.55.07.png
          390 kB
          Foucault Yoann
        2. 2021-03-18_17.55.39.png
          420 kB
          Foucault Yoann
        3. 2021-03-18_17.55.51.png
          609 kB
          Foucault Yoann
        4. 2021-03-18_17.55.57.png
          398 kB
          Foucault Yoann
        5. 2021-03-18_17.56.03.png
          393 kB
          Foucault Yoann
        6. 2021-03-18_17.56.08.png
          395 kB
          Foucault Yoann
        7. 2021-03-18_17.56.16.png
          398 kB
          Foucault Yoann
        8. 2021-03-18_17.56.19.png
          396 kB
          Foucault Yoann
        9. 2021-03-18_17.56.26.png
          392 kB
          Foucault Yoann
        10. 2021-03-18_17.56.29.png
          395 kB
          Foucault Yoann

            Unassigned Unassigned
            LeBarbuYoyo Foucault Yoann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: