mojira.dev
MC-271020

enchantment_glint_override=true does not cause pick block to avoid replacing that item

Summary:
As per MC-224072, which is intentional, when an item in the hotbar is enchanted, pick block avoids replacing that item if your hotbar is full. It will instead replace a different item in the hotbar. If all items in the hotbar are enchanted, it will replace the item that you have selected. Before 24w09a items with an empty enchantments NBT tag which still show the enchantment glint were avoided to be replaced by pick block too. This meant that you could give an empty enchantments NBT tag to all items in the hotbar to "fix" MC-224072 as it will always cause your selected item to be replaced. Now with the component system added in 24w09a you need to use enchantment_glint_override=true to have items that have enchantment glint without actually having enchantments. However these items will not be avoided to be replaced by pick block, making command creations that add the enchantment glint to all items in the hotbar useless. Relates to MC-224072, MC-269553 and MC-268802.

Steps to reproduce:
If you want to skip the upgrading process, you can just use the following command and attempt to replace it using pick block directly:

/give @s minecraft:moss_block[enchantment_glint_override=true]
  1. Start version 1.20.4

  2. /give @p moss_block{Enchantments:[{}]} 1
  3. Make sure the moss block is in your hotbar and place items into every other hotbar slot

  4. Hold the moss with the enchantment glint in your hand

  5. Use pick block

  6. Notice that a different item than the moss with the enchantment glint was replaced

  7. Upgrade the world to the latest version

  8. Replace the item that you obtained using pick block with another item

  9. Hold the moss block with the enchantment glint in your hand again

  10. Use pick block again

Observed results:
The moss with the enchantment glint was replaced unlike in previous versions.

Expected results:
Pick block should replace a different item, since the moss block has an enchantment glint.

Video:
1.20.5 Release Candidate 2

[media]

1.20.4

[media]

Linked issues

Attachments

Comments 4

Per "We want to ensure that no functionality is lost without a suitable alternative, but due to the undocumented nature of these techniques, we have very likely not caught everything!" on https://www.minecraft.net/en-us/article/minecraft-snapshot-24w09a this should be fixed, since it makes it impossible to make a command creation that makes it so that you always replace the item in your hand when using pick block without actually adding enchantments to items unlike in previous versions.

I think maybe it would be nice to
https://feedback.minecraft.net/hc/en-us/community/posts/360075980871

"(Bedrock parity) Pick block should not avoid replacing enchanted items"

after all, it was “fixed” as a replacement for this “function”.

Can confirm that the moss block is not prioritized, but Mojang does not support version hopping. This is because it creates bugs. Bugs are to be expected if you're messing with versions.

@unknown, "version hopping" is very much supported as long as it's upgrading, not downgrading.

Apart from that, this issue is unrelated to "version hopping".

Please don't leave comments if you don't know what's going on.

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

[Mod] EVGENSYPERPRO

(Unassigned)

Plausible

(Unassigned)

1.20.5 Release Candidate 2

Retrieved