mojira.dev
MC-140397

When combining two enchanted unbreakable items, the result will be two stacked items

The Bug

When two enchanted & 'Unbreakable' items are combined in the grindstone GUI, the output is two stacked unenchanted items.

Steps to reproduce:

  1. Run this command twice:

    /give @s netherite_sword[enchantments={levels:{'unbreaking':3}},minecraft:unbreakable={show_in_tooltip:true}]
  2. Place down a grindstone

  3. Combine the two sword items

Expected & Observed Results:

❌ - The enchantments will be removed from the items as expected, but the unstackable items will be stacked together.
✔ - The items would not stack, as in all other cases of gameplay they are unable to.

Videos & Screenshots:

Screenshots

[media]

[media]

Video(s)

[media]

Linked issues

Attachments

Comments 17

the grindstone removes enchantments from tools, and - if damaged - combines their health. Here both swords have full health, so you get both back. I think this is correct.

You can combine the enchantments using anvil.

I was not trying to combine the enchantments. I was just testing out the grindstone functionality. I tried out with swords that weren't of full durability and also got the same result.

Either way, the output should not be a stack of ́2 diamond swords I guess.

This issue is not consistent though, sometimes Minecraft produces the 2 swords and other times it doesn't.

I'm able to reproduce this in 1.14.4 by using two identical swords with the `Unbreakable` tag.

Based off @Andrio Celos comment, from testing it appears that currently it is required that the swords be both unbreakable and have an enchantment. Not possible otherwise. A sword that will work in 20w30a can be given by the command /give @s diamond_sword{Unbreakable:1,Enchantments:[{lvl:1,id:"sharpness"}]}

I am unable to reproduce this issue in 20w51a.

7 more comments

Can confirm in 1.18.2 and 22w13a.

Can confirm in 1.19.

Can confirm in 1.19.2.

Can confirm in 1.19.4-pre1 and 1.19.3

Requesting ownership of this issue as the original issue poster has been inactive since 2019.

Low Ji Yuan

[Mod] Jingy

(Unassigned)

Confirmed

Platform

Low

Commands

enchantment, grindstone, item

Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, 1.16 Release Candidate 1, 1.16, ..., 1.19.4 Pre-release 1, 1.19.4, 1.20.1, 1.20.4, 24w09a

24w10a

Retrieved