mojira.dev
MC-267427

Rendering offset of sleeping entities does not account for scale attribute

Entities with a modified generic.scale attribute are not rendered as expected when sleeping. This applies to mobs being bigger, or smaller than usual, both with different (but similar) behavior.

Steps to Reproduce:

  1. Spawn a villager

  2. Place a bed near it

  3. Set time to night

    /time set night
  4. Modify the villager's scale attribute
    (A value of 2 is not required)

    /attribute @e[type=villager,limit=1,sort=nearest] minecraft:generic.scale base set 2

Observed & Expected Results:

❌ - The entity will be rendered far from the bed they are sleeping in, appearing to float above, or even inside the ground.
✔ - The entity would be be centered on the top of the bed, only with a difference in size.

Screenshots/Videos:

Screenshot

[media]

Video

[media]

Notes:

  1. Relations
    MC-267418 MC-267372

  2. This affects any entity which can sleep, which is currently villagers, and players.

Linked issues

Attachments

Comments 0

No comments.

[Mod] Jingy

gegy

Confirmed

Platform

Normal

Commands, Entities

attribute, rendering, scale, villager

23w51b

24w03a

Retrieved