jaquadro / NBTExplorer

A graphical NBT editor for all Minecraft NBT data sources
http://www.minecraftforum.net/topic/840677-nbtexplorer-nbt-editor-for-windows-and-mac/
MIT License
2.26k stars 278 forks source link

Replacement tool #104

Open Gartosz opened 4 years ago

Gartosz commented 4 years ago

Hello, can someone help me using find&replace option? I wanted to delete all ids entries of mods which doesn't exist on my world, but are in the registry(I know which ones they are), but I don't know what rule should I implement. image

Gartosz commented 4 years ago

For example I would like to find every tag starting with adopther and delete both name and id, but not manually. Is that possble?

5ynt4x-3rr0r commented 4 years ago

you could try ctrl+h (find & replace)

Gartosz commented 4 years ago

I tried and post is about helping me using it as I don't understand what to type in it.

BlasterM5 commented 3 years ago

My question too. I've tried Find and Replace several times, and there is no information about how to make it delete stuff en masse.

user21760 commented 3 years ago

For example I would like to find every tag starting with adopther and delete both name and id, but not manually. Is that possble?

Are "K" and "V" the tag names for name and id in each group (Compound tag)? If so, add the following Search Rules to search for a pair of tags that matches your conditions:

And to delete every pair matched, enable the checkbox "Delete matched tags before applying replacements". Then use "Find Next" + "Replace" to delete a pair, or "Replace all" to delete all of the matches. The Compound Tag that contained those deleted would remain. The missing feature to delete Compound tags has been requested in #101 .