Installing Actor
Installing Actor is simple and straightforward.
You just have to add Actor as a dependency in the module where you write your mod code.
How to add the Dependency
Generally you could download the .jar from Modrinth and place it in your environment's mods folder.
But this is generally not good practice and it's way more elegant to add it as a dependency in your build.gradle file.
First you want to look up your version string on Modrinth.
This string depends on your Minecraft version and the Mod Loader you use.
Such a string may look like this: Actor-v1.0.0-fabric+mc1.21.11.
If you found your version string, these next few steps are recommended:
Edit your gradle.properties to include this line:
actor_version=YOUR_VERSION_STRINGEdit your `build.gradle` to include this:
repositories {
// ... Other Repos
maven { url = "https://api.modrinth.com/maven" }
}
dependencies {
// ... Other Dependencies
modImplementation "maven.modrinth:actor:${actor_version}" // Fabric / Quilt
implementation "maven.modrinth:actor:${actor_version}" // Forge / NeoForge
}And that's it.
Now you just have to refresh your Gradle Project and you should be able to use Actor in your mod.
WARNING
If you plan on publishing your mod, you should add Actor as a required dependency of your mod.
Adding sub-mods (dependencies) is loader-specific and will not be discussed here.
For that please refer to the docs of the Mod Loader of your choice.