Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-82168

Search for default data tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8.7
    • None
    • All
    • Unconfirmed

      Realize this isn't exactly a bug, I more see it as a possible oversight.

      /clear MikeyCarter minecraft:chest 0 0 {display:{Name:Test}}

      So I can test if a player has a chest in their hand named Test. But what if I want to clear the items the other way. Clear all items using the default name? Another place this would be useful... clear all tools without enchantments. I can clear the ones with enchantments... but can't clear the un-enchanted items.

      None of these work.
      /clear MikeyCarter minecraft:chest 0 0 {display:{Name:}}
      /clear MikeyCarter minecraft:chest 0 0 {display:{Name:''}}
      /clear MikeyCarter minecraft:chest 0 0 {display:{Name:""}}
      /clear MikeyCarter minecraft:chest 0 0 {display:{Name:minecraft:chest}}
      /clear MikeyCarter minecraft:chest 0 0 {display:{Name:Chest}}

      What's the default name?

            Unassigned Unassigned
            MikeyCarter G. Michael Carter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: