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

Ocelots, cats and other fall-damage-immune mobs do not use the generic.fall_damage_multiplier attribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 24w13a
    • None
    • Unconfirmed
    • (Unassigned)

      The bug

      24w06a introduces minecraft:fall_damage_multiplier, an attribute that can be used to change how susceptible a given entity is to fall damage. Setting this to zero will forbid that entity from being damaged by falling. However, it being a greater value than zero will not permit mobs normally immune to fall damage to receive it, and mobs immune to fall damage have it set to 1.0 by default, which is unexpected.

      Affected entities

      • minecraft:blaze
      • minecraft:cat
      • minecraft:chicken
      • minecraft:iron_golen
      • minecraft:ocelot
      • minecraft:snow_golem
      • minecraft:wither

      I am not sure if flying mobs, or non-mob entities, should be included here.

      How to reproduce

      1. Spawn a cat, ocelot, chicken or other mob unaffected by fall damage
      2. Run the /attribute command to get its UUID and query its generic.fall_damage_multiplier value

      Expected results

      The value would be 0.0.

      Actual results

      The value is 1.0.

      How to fix

      Make all cats, ocelots, etc. susceptible to fall damage if the attribute is not zero, and have this attribute set to zero for them by default.

        1. 2024-04-01_16.09.10.png
          2024-04-01_16.09.10.png
          215 kB
        2. 2024-04-01_16.10.08.png
          2024-04-01_16.10.08.png
          188 kB
        3. 2024-04-01_16.10.49.png
          2024-04-01_16.10.49.png
          191 kB
        4. 2024-04-01_16.19.06.png
          2024-04-01_16.19.06.png
          349 kB
        5. 2024-04-01_16.19.29.png
          2024-04-01_16.19.29.png
          187 kB
        6. 2024-04-01_16.19.57.png
          2024-04-01_16.19.57.png
          189 kB
        7. 2024-04-01_16.20.23.png
          2024-04-01_16.20.23.png
          218 kB

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: