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

Rendering offset of sleeping entities does not account for scale attribute

XMLWordPrintable

    • Confirmed
    • Commands, Entities
    • Normal
    • Platform

      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.

            gegy1000 [Mojang] Gegy
            Jingy [Mod] Jiingy
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: