Mojira Archive
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

Video
Sleeping Villager Scale.mp4

Notes:

  1. Relations
    MC-267418 MC-267372
  2. This affects any entity which can sleep, which is currently villagers, and players.

Fixed

[Mod] Jiingy

[Mojang] Gegy

2023-12-18, 10:15 PM

2024-01-16, 04:04 PM

2024-01-16, 04:04 PM

5

4

Confirmed

Normal

Platform

Commands, Entities

attribute, rendering, scale, villager

23w51b

24w03a