EnderTurret / PatchedMod

A Minecraft mod that adds the ability to patch Json files for resource and data packs.
GNU Lesser General Public License v2.1
2 stars 0 forks source link

[Feature Request] Patch target multiple paths #12

Closed SettingDust closed 6 months ago

SettingDust commented 12 months ago

When I'm clear structures in the structure set. All the patch are exactly same. But I have to copy them again and again. That's painful. I think a prop or a manifest of a patch is useful.

EnderTurret commented 11 months ago

(Side note: this issue affects only the mod, since the library has no knowledge of where the files and patches are coming from.)

I've noticed that there are circumstances where one wants a patch to apply to multiple targets (I know because I've wanted to do that before). The main problem with implementing this is I need to decide how I want to implement it. I expect I'm going to need to think on this for a while, since I need to come up with a way to allow the same patch to target multiple files without hurting discoverability (as right now, you can tell what file a patch patches based purely on the patch's filename, but adding multiple targets breaks that guarantee).

SettingDust commented 9 months ago

How about mcmeta file for .json.patch? For discoverability, a mcmeta file will be notable for viewers to know it's a special patch instead of the normal one

EnderTurret commented 6 months ago

This has now been implemented as of version 5.1.0+1.20.4.