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

Absorption Amount cannot be set to 2049 or higher

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.2 Pre-release 2, 1.20.2 Pre-Release 4, 1.20.2, 1.20.4, 1.21
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      What I expected to happen was...
      Attacking mobs with AbsorptionAmount set to 2049 or higher will still be calculated correctly as in previous versions
      What actually happened was...
      Even if AbsorptionAmount is set to 2049 or higher, it will be treated as if it were 2048.

      Step to reproduce

      Run the following commands in order.

      /summon creeper
      /attribute @e[type=creeper,limit=1] minecraft:generic.max_absorption base set 20000
      /data modify entity @e[type=minecraft:creeper,limit=1] AbsorptionAmount set value 20000f

       

      Then attack the mob and get the data using the command below.

      /data get entity @e[distance=0.5..,sort=nearest,limit=1] AbsorptionAmount

      Data is displayed as damage based on 2048, not 20000.

       

      In previous versions, it was possible to set a value much larger than 2048 because the maximum value was not tied to an Attribute, but this is no longer possible in the current version.

            Unassigned Unassigned
            Chuzume Amura Yuka
            Votes:
            14 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              CHK: