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

Attribute entity_interaction_range is classified as 'generic', but has no effect on mobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w03a
    • 23w51b
    • None
    • Confirmed
    • Commands, Entities
    • Important
    • Platform

      Mobs don't seem to be affected by the attribute generic.entity_interaction_range.

      How to reproduce

      1. Try summoning a zombie with the entity_interaction_range set to 0
        /summon zombie ~ ~ ~ {Attributes:[{Name:"generic.entity_interaction_range",Base:0}]}
        
      2. The zombie will still be able to hit you.
      3. Conversely, if you set this value to something really high like 100, the zombie will still need to get up close before it attacks.

            gegy1000 [Mojang] Gegy
            stormconure Conure
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: