Option to add custom files to assets folder

Status
Fixed
Issue description

So I am making a project using the mod patchouli, which allows the modder to quickly make a guidebook with json script. I made a test bool and it didn't show up in game. I tried again and it still did not show up. This time I opened the assets folder while I run the client, and it seems like mcreator overwrites the assets folder every time, deleting extra folders/files. So I locked base mod files, but the same thing still happened. I kindly request Pylo to add a option to lock mod assets folder or even better, not overwrite it at all.

Thank you for reading my long block of text. I hope you will consider my suggestion.

Issue comments

I kindly request Pylo to add a option to lock mod assets folder or even better, not overwrite it at all.

Due to the way our generator works this is not possible. What is possible is that we add new folder <workspace dir>/assets and make it so that assets from this folder are copied into assets folder of the mods upon build.

When generating you didn't need to create the folder each time and you didn't have to delete it as a dev you picked that option but yes adding a custom folder what includes custom assets and code would be very useful.

Due to the way our generator works this is not possible. What is possible is that we add new folder <workspace dir>/assets and make it so that assets from this folder are copied into assets folder of the mods upon build.

I take this back, I have found a way to sync files without having to delete them so now only folders synced from textures and sounds folder will be deleted, but all other custom files will be kept.

Yeah! I will be able to make a real book using Patchouli, not a lot of GUI. Best feature of the snapshot and one of the update. :)

I remember this was the main issue when I was trying to add Patchouli support to RaolCraft back in 2018...

I remember I found a workaround by simply adding the Patchouli files after exporting the mod, but opening the book still made the game crash... Somehow XD

Time goes fast...