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

generic.knockbackResistance is percentage chance to ignore knockback, rather than being scaled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.7.4, Minecraft 14w18b, 1.14.4, 19w46b
    • Fix Version/s: 20w06a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      With the example bellow, the player who is holding/wearing the helmet rarely gets knocked, while most of the time he/she receives no knockback at all. This is of course not the intended result, as the player should be knocked back 50% as much as normal.

      give @p 314 1 0 {AttributeModifiers:[

      {AttributeName:"generic.knockbackResistance",Name:"generic.knockbackResistance",Amount:0.5,Operation:0,UUIDLeast:894654,UUIDMost:2872}

      ]}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dustinmaxim Dustin Held
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: