NBTExplorer icon indicating copy to clipboard operation
NBTExplorer copied to clipboard

Replacement tool

Open Gartosz opened this issue 4 years ago • 5 comments

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 avatar Sep 03 '20 08:09 Gartosz

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

Gartosz avatar Sep 03 '20 08:09 Gartosz

you could try ctrl+h (find & replace)

5ynt4x-3rr0r avatar Sep 08 '20 16:09 5ynt4x-3rr0r

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

Gartosz avatar Sep 08 '20 17:09 Gartosz

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.

BlasterM5 avatar May 08 '21 16:05 BlasterM5

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:

  • A String Tag Rule with: K (as Tag Name), StartsWith (in the drop-down list) and adopther (as Tag Value).
  • A Int Tag Rule with: V (as Tag Name) and Any (in the drop-down list)

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 .

user21760 avatar Aug 18 '21 01:08 user21760