[SPIGOT-4885] Cannot use empty enchantment tag in an item (Vanilla Datapack) Created: 07/May/19  Updated: 07/May/19  Resolved: 07/May/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Wasinthorn Suksri Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: DataPacks, enchantment, nbt

Attachments: PNG File 55248122-b608dd00-527b-11e9-93d9-efdc4c8d2923.png     PNG File 55248123-b608dd00-527b-11e9-9d23-cf239df26781.png    
Issue Links:
Relates
relates to SPIGOT-2991 Spigot filters invalid enchants from ... Resolved
Version: git-Spigot-1a3504a-dfa7583 (MC: 1.13.2) / git-Spigot-1eece4f-d203283 (MC: 1.14)
Guidelines Read: Yes

 Description   

When you using /give @s diamond{Enchantments:[{}]} command, you can create a fake glowing effect. Currently vanilla has no function or tag that make the fake glowing enchantment to an item.

 

But when using Spigot. A diamond that you given using command from above, it's looks like normal item.

 

Original Bug Report : https://github.com/PaperMC/Paper/issues/1923



 Comments   
Comment by md_5 [ 07/May/19 ]

The fact that this happens in Vanilla is essentially a bug in Vanilla.

It is also not something that is imo compatible with Spigot as a plugin API.

Consider if Spigot were to handle having a list of enchantments that is empty. How then would a plugin be able to remove enchantments including the empty tag, or distinguish the case having no enchantments vs "having no enchantments".

Generated at Tue Apr 15 09:41:48 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.