IItemStack.clearTag();
slava110 opened this issue ยท 4 comments
Feature request name
Method to remove NBT tags from itemstack
Feature request description
Add IItemStack.withoutTag()
or IItemStack.clearTag()
or allow null values in IItemStack.withTag(@Nullable tag)
to remove NBT tag from itemstack
Feature request reason
Might be useful for recipe transformers & event handlers. For me it's useful because we want to remove empty NBT tags from items but I think there are more cases when it will be useful
Game Version
1.12+