Nyveon/MCStructureCleaner

[Feature Request] Tag name regex/wildcards

StormDragon-64 opened this issue · 6 comments

I thought by tag you meant namespace, but I put in the tag "repurposed_structures" (the mod I deleted) and it keeps saying 0 tags were removed. What does it actually mean by tag?

By tag it means the exact name of the structure as defined in the region file.

To find them you can use a tool like NBTExplorer, go to the region folder, then in a .mca file open a chunk -> level -> structures -> references.

There you will see the vanilla ones, and sometimes the modded ones. You may have to check multiple different chunks to find the tags you are looking for. To use the tool, you just write the tag name exactly as it appears there.

Example:
image

Hope that clear everything up! I'm happy to answer any other questions as well c:

So if I wanted to delete all references to awesome dungeons structures, the tag would be "awesomedungeon"?
image

Oh, I have to type the entire name of the tag manually, so for the first one it would be "awesomedungeon:abandoned_oak_palace". Thats annoying. I wanted to remove all awesome dungeon structures. Is there a way I can do this easier or copy the name of all the tags quickly?

I think the only easier way to do it, would be to let the script remove all non vanilla tags (the default if you don't provide a tag). That will only work if you have no mods that add structure tags though, otherwise it will remove those too.

Is there a way to only remove structures that don't have mods for them? Or maybe you could make it so in your program I can have the tag as something like "repurposed_structures:*" and it will remove any tag that begins with repurposed_structures:. Maybe in 1.6?

The proposed feature of this issue is for more advanced tag selection parameters, I might implement this one day.