Custom Enchantment Disappears When You Merge Objects.
Exemple :
Give Item with enchantments custom.
/give Hardel minecraft:diamond_sword{Enchantments:[{id:"minecraft:Test"}]}
Merge this item with another item in a anvil exemple with "enchanted book fire aspect".
Make a "/data get" and look enchantment "test" is gone.
Linked issues
is duplicated by 2
Attachments
Comments 10
The duplicates say otherwise, @unknown.
Besides, if Mojang didn’t think this was proper technical behavior, then why would they fix the bug with crashing when you use custom enchantments? (MC-130169) Let the devs decide, not just you.
Why would they fix a crash that can’t be accessed in normal creative or survival mode? They didn’t fix another bug for years, MC-113127, which was a crash with custom enchantments. Obviously something’s changed, and they believe this is intended behavior now, or something. Neither of us can be sure, so let the devs decide!
Why mark something as invalid, when we could have a better working technical feature. 🙂
It's a little disingenuous of you to suggest that "fixing" MC-113127 is evidence that invalid enchantments are apparently supported now. You said it yourself, the fix was done by wiping said invalid enchantments.
It seems a whole lot like they’re supported. Why else would they fix the crash bug?
It’d be helpful for lots of datapack makers to allow them to have to be able to have custom enchantment glows without having to have other enchantments on the item.
I said the bug was fixed, but I believe in the wrong way. These enchantments should be able to persist, as what would be the harm in them? You’ve given them to yourself, so they’re obviously not affecting survival.
Why else would they fix the crash bug?
Because commands shouldn't make the player crash, even if they're invalid.
Ahh, that makes much more sense. Sorry for the trouble, I just really want easy custom enchantments. :/
Yeah, I know. But what if I want custom enchantments that actually have the enchantment glow, and can be combined with no ill affects with already enchanted items?
Ie.
diamond_sword{display:{Lore:[“enchant”]},tag:1b,Enchantments:[{id:”minecraft:power”,lvl:1s}],HideFlags:5b}
plus
diamond_sword{Enchantments:[{id:”minecraft:sharpness”,lvl:5s}]}
Doesn’t work, because HideFlags plus enchantments hides all the enchantments, and if I were to use a custom enchantment tag, when renaming the item, the glow vanishes.
There’s really no way to have a custom enchantment with glow without also having a ‘dummy’ enchantment which must stay visible. That’s why I believe the duplicate I made, MC-132818, is valid, while this issue is invalid. Custom enchantments don’t work when combined with other valid enchantments, but should work when sinply renaming an item.
Catch my drift, @unknown? 😛
"Custom enchantments" are not a thing.