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

Knockback Resistance on players is still affected by chance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 20w21a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Community Consensus
    • Category:
      Player
    • Mojang Priority:
      Normal

      Description

      What I expected to happen was...

      When I attack a player with a knockback resistance armor piece, they take less knockback on a scale.

       

      What actually happened was...:

      When I attacked a player, say with 50% knockback resistance, they would take 50% less knockback (so far correct), but also have a 50% chance to not take knockback  (which I don't believe is intended).

       

      Steps to Reproduce:

      1. Have a player wear a chestplate with knockback resistance on it. I used
        /replaceitem entity @p armor.chest leather_chestplate{AttributeModifiers:[{AttributeName:"generic.knockback_resistance",Name:"generic.knockback_resistance",Amount:0.5,Operation:0,UUID:[I;42853,1689024593,-201178,-1559272105]}]}
      2. Have another player hit the player wearing the chestplate several times (the problem is more easily seen when using an item with knockback on it)
      3. Some of the time the player with the chestplate will take half (assuming 50% knockback resistance, which shows as 5 in the description and is 0.5 in the command) the amount of knockback, while other times they will take no knockback.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              WeatherCats WeatherCats
              Votes:
              14 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: