RPdepent
This is a simple Minecraft mod that checks whether the resource pack dependencies are present in your installed mods.
RPdepent

<center><p><a href="[https://discord.gg/YqKBQtWE9T](https://discord.gg/4QMrEGJgN6"><img width="165"src="https://img.shields.io/discord/1419254781309882460?logo=Discord&logoColor=white&label=Discord&color=728ADA" alt="Discord Server"></a> <img width="125" src="https://img.shields.io/badge/GPLv3-license-grey?logoSize=150&labelColor=%23BD0000" alt="license"> <a href="https://codeberg.org/Axolotl_cpp/RPdepent"><img width="155" src="https://img.shields.io/badge/codeberg-repo-blue?logo=codeberg" alt="codeberg repo"></a> <img width="240" alt="Modrinth Version" src="https://img.shields.io/modrinth/v/Xsd9LVPA?label=Mod%20version"> </center>
#

for resource pack and data pack creators: you just need to put in the root of your resource pack/data pack a file named "RPD.toml", like this:

and inside the file you need to do something like this: ```toml [[Mods]] id = "coolMod" version = "1.2"
[[Mods]] id = "anotherCoolMod" version = "3.23" ```
to be noted:
the empty line between one mod and another is necessary, so configs like:
```toml [[Mods]] id = "coolMod" version = "1.2" [[Mods]] id = "anotherCoolMod" version = "3.23" ``` and ```toml [[Mods]] id = "coolMod" version = "1.2" id = "anotherCoolMod" version = "3.23" ``` are WRONG!
you can also write "any" instead of the version to allow any mod version to be used
```toml [[Mods]] id = "coolMod" version = "any"
[[Mods]] id = "anotherCoolMod" version = "3.23" ```
Mods alternatives
with this you can have multiple alternatives for a mod ```toml [[Mods]] id = "coolmod" version = "any"
[[Mods.Alternatives]] #the indentation is highly suggested first = {id = "mod", version = "1.21"} second = {id = "boringmod", version = "0.2"}
[[Mods]] id = "leggenadarymod" version = "any"
[[Mods.Alternatives]] # but as shown here, not necessary potato = {id = "normalmod", version = "1.21"} ```
i suggest to use the indentation because it's more understandable for you and whoever read the file after you
this is the legacy config to allow alternative mods
i highly suggest you to use the new method, this one is here only for retro-compatibility ```toml [[Mods]] id = "coolMod||lessCoolMod" version = "any"
[[Mods]] id = "boringMod||epicMod||suckerMod" version = "any" ``` so RPdepent will check if there is at least 1 of the mods be aware that it's suggested to just put "any" in the version field since you can't decide (yet) the version for each of them
TO BE NOTED:
it's highly suggested to just use "any" in the version field since there is no ">", "<" , ">=", "<=" operator, it's impossible to do with mods versions
how to build
You just need to clone the repository on your IDE and run the gradle task "build" # Icons made by Cyber, thank you Cyber :p