mojira.dev
MC-307550

summoning llama and set Strength make it have too many max health

Confirmed in both 1.21.11, 26.1.2 and snapshot 3.

How to reproduce:

  1. Open a superflat world with a biome where llamas cannot spawn naturally.

  2. run the following command(* can be any 1-5 numbers)

    summon llama ~ ~ ~ {Strength:*}
  3. Run the following command to get the health of the llama:

    /data get entity @n[type=llama] Health
  4. Also run the following command to get the max_health of llama

    /attribute @n[type=llama] minecraft:max_health get
  5. Observe the command output of steps 3 and 4

Expected result: The llama has the max health with 15-30, just like llamas that are naturally spawned

Actual result: The llama has 53 Health and max_health

Linked issues

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

CWT

(Unassigned)

Unconfirmed

26.1.2

Retrieved