mojira.dev
MC-301259

Shelf align_items_to_bottom in block entity data doesn't work

So I decided to check out the shelf change but I can’t get the items to align to bottom. The changelog said it was moved to be in the block entity but when I give myself the item below, the shelf contents are always in the middle

/give @p oak_shelf[
  minecraft:block_entity_data={
    id:"shelf",
    align_items_to_bottom: 1b
  },
  minecraft:container=[
    {slot:1, item:{id:"minecraft:oak_planks", Count:1b}}
  ]
]

Environment

Windows 10

Linked issues

Attachments

Comments 2

It also doesn’t work when modifying the entity data by using this command (assuming the block is placed at 0/0/0)

/data modify block 0 0 0 "align_items_to_bottom" set value 1

when you do

/data get block 0 0 0

afterwards it correctly says that the property is set to true.
Also if you close and reopen the world, and then redo the /data get command, it still says that the property is true, but the rendering still shows items in the middle of the Shelf

Can confirm.
Interestingly, the item position does change, but not in an intended way.

[media]

Daisy Eseyad

Timur Nazarov

Confirmed

Platform

Important

Commands, Rendering

25w34b

Future Update

Retrieved