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

Attribute detection with nbt data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.16 Pre-release 3
    • None
    • Plausible
    • Commands

      When using the /data command to detect attributes, it doesn't list all of the attributes that it probably should. In previous versions of Minecraft, it would list all of an entity's attributes if they had any, but in the 1.16 snapshot versions, it lists less than it should. An attribute that doesn't appear in the 1.16 snapshots version only seems to appear if its tinkered with, like with the /data merge command or the /attribute command.

      Normally it would show all of an entity's attributes, but in the 1.16 snapshots, from what I've seen, it only gives generic.follow_range, generic.knockback_resistance, generic.movement_speed, and attributes that are unique to specific mobs, like zombie.spawn_reinforcements. This is a problem because I can no longer detect mobs that have an attack damage attribute with the @e[nbt={Attributes:[

      {Name:"generic.attack_damage"}

      ]}] selector and other things of this sort.

      This is what it should look like:

      This is what it looks like in 1.16 pre-release 3

      To do this, I just typed in
      /data get entity @e[type=zombie, sort=nearest] Attributes

        1. 2020-06-11_12.53.30.png
          262 kB
          P1Gamer
        2. 2020-06-11_12.56.52.png
          370 kB
          P1Gamer

            Unassigned Unassigned
            P1Gamer P1Gamer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: