[SPIGOT-7741] Vanilla ItemComponent in commands can't remove components Created: 13/Jun/24  Updated: 25/Dec/24  Resolved: 14/Jun/24

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

Type: Bug Priority: Minor
Reporter: Shane Bee Assignee: md_5
Resolution: Fixed Votes: 0
Labels: None

Version:  CraftBukkit version 4198-Spigot-146439e-0a0229b
Plugin: none
Guidelines Read: Yes

 Description   

Minecraft added a feature where you could remove components when giving items, by adding a "!" prefix to the component. This appears to not work on Spigot

Test Commands:
`/give ShaneBee minecraft:diamond_axe`
`/give ShaneBee minecraft:diamond_axe[!minecraft:attribute_modifiers]`

You will notice both items say "9 components" and the second item still has the attribute modifiers.
I tested this in vanilla and can confirm it works in vanilla (the component gets removed in vanilla)



 Comments   
Comment by Shane Bee [ 14/Jun/24 ]

thank you!

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