Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7741

Vanilla ItemComponent in commands can't remove components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    •  CraftBukkit version 4198-Spigot-146439e-0a0229b
    • none
    • Yes

      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)

            md_5 md_5
            ShaneBee Shane Bee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: