Mojira Archive
MC-251509

Patterned banners not stacking properly / banner loses "banner" ID when mined

The bug

I’ve noticed there are two ‘types’ of patterned banner that are unable to stack with each other. The first ‘type’ of patterned banner is a banner that has never been placed down before and has only existed in item form. The other ‘type’ of patterned banner is a banner that has been placed down and broken, even if they were previously stacked, they would now be unable to stack.

To reproduce

Make 2 identical banners (pattern doesn’t matter as long as they are identical), then place one of the banners down. When broken, the banner that has been placed is unable to stack with the other banner, they are only able to stack once you have placed down and broken the other banner too.

This works for any banner pattern.

This does not work for blank banners.

This has existed since 1.8 and is still happening in 1.18.2

Cause

From MC-256342: The banner, when mined, loses its BlockEntityTag "minecraft:banner" id, causing the NBTs of the items to no longer be identical and thus no longer stack.

Code analysis

Code analysis by Kevin can be found in duplicate MC-256994.

Fixed

DoubleQuicktime

2022-05-08, 03:41 PM

2024-03-21, 12:16 AM

2024-03-05, 12:16 PM

11

9

Confirmed

Normal

Platform

Block states, Items, Loot tables

1.18.2 - 1.20.41.18.2, 1.19.2, 22w46a, 1.19.3 Pre-release 1, 1.20.1, 23w31a, 1.20.4

24w09a