mojira.dev
MC-259936

Equipping armor in hand via right-click equips entire stack

The bug

Holding a stack of (yarn) ArmorItem and right clicking it equips the whole stack, while opening the inventory and clicking with the item on an armor slot equips only one.

Steps to reproduce

  1. Get a stack of armor equippable items:

    /summon item ~ ~ ~ {Item:{id:diamond_chestplate,Count:64}}
  2. First, open your inventory, and click an armor slot with the item.
    → ✔ Observe that only one gets inserted and only one can be inserted.

  3. Run the command again.

  4. Put the stack in your main hand and right click.
    → ❌ Observe that the whole stack gets inserted.

This can be fixed by either equipping one when right click equipping or equipping the whole stack when clicking, thus bypassing the "only one inserted" when clicking on the slot

Attachments

Comments 3

Stacked armor is not obtainable in survival (without using other bugs) and is not supported in the game.

You can get stacked armor using commands, this is just as valid as MC-107746 was, which got fixed.
Reopen for Mojang to decide.

With the recent changes to item stacks in the latest snapshot 24w12a, I would like to request a review of this ticket to ensure it's resolution is still up to date with the latest changes in the game. Going based off of reason given in turbos comment, stacked armor is now at least partially (if not entirely a supported feature), and can be obtained with commands now:

[media]

Requested resolution of the ticket would be to either resolve it as Working as Intended, or to reopen the ticket if the behavior is not expected or intentional.

PatrickMSM

gegy

Confirmed

Platform

Low

Inventory, Items

1.19.3, 1.20.2, 23w42a

24w36a

Retrieved