mojira.dev
MC-82168

Search for default data tags

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?

Comments 1

This site is for bug reports only; feature suggestions are not accepted.

G. Michael Carter

(Unassigned)

Unconfirmed

Minecraft 1.8.7

Retrieved