HomeJavaModsRitchie's Projectile Library
Ritchie's Projectile Library
ModsJava

Ritchie's Projectile Library

by rbasamoyai · on CurseForge

⬇ Download on CurseForge

Ritchie's Projectile Library

Code reused in multiple projects by rbasamoyai.

Adds the following features:


Depending on RPL

First, add the following maven to your repositories block:

repositories {
    //...
    maven { // Ritchie's Projectile Library
        url = "https://maven.realrobotix.me/master/"
        content {
            includeGroup("com.rbasamoyai") // THIS IS IMPORTANT
        }
    }
}

RPL artefacts are formatted as follows:

ritchiesprojectilelib-<rpl_version>+mc.<minecraft_version>-<rpl_platform>-build.<rpl_build_number>

where rpl_version is the version of Ritchie's Projectile Library, minecraft_version is the Minecraft version, platform is the modloader platform, of which forge, fabric, and common JARs are provided, and build_number is the build number.

The latest build can be found in the GitHub actions history: https://github.com/Wagers-of-Industrial-Warfare/RitchiesProjectileLib/actions

Depending on your build.gradle setup, add one of the following to your dependencies block:

ForgeGradle (1.18.2-1.20.1)

implementation fg.deobf("com.rbasamoyai:ritchiesprojectilelib:<rpl_version>+mc.<minecraft_version>-forge-build.<rpl_build_number>") { transitive = false }

Loom (Fabric/Architectury)

modImplementation("com.rbasamoyai:ritchiesprojectilelib:<rpl_version>+mc.<minecraft_version>-<rpl_platform>-build.<rpl_build_number>") { transitive = false }

rpl_platform should either be common, forge, or fabric depending on the Architectury subproject you add the mod to. For Fabric, only use fabric.


Including RPL in your mod jar

To include RPL in your mod JAR, add the appropriate code to the dependencies block:

ForgeGradle (1.18.2-1.20.1)

jarJar("com.rbasamoyai:ritchiesprojectilelib:${rpl_version}+mc.${minecraft_version}-forge-build.${rpl_build_number}") {
    transitive = false
    jarJar.ranged(it, '[2.0.0,2.0.1)') // Change this based on rpl_version. jarJar.pin seems to not work.
}
// Same as the previous section
implementation fg.deobf("com.rbasamoyai:ritchiesprojectilelib:${rpl_version}+${minecraft_version}-forge") { transitive = false }

For more information on how to setup Jar-in-Jar in ForgeGradle, go to https://docs.minecraftforge.net/en/fg-5.x/dependencies/jarinjar/.

Loom (Fabric/Architectury)

// Change the previous section
modImplementation(include("com.rbasamoyai:ritchiesprojectilelib:${rpl_version}+mc.${minecraft_version}-${rpl_platform}-build.${rpl_build_number}")) { transitive = false }
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Ritchie's Projectile Library is a free Minecraft Java mod. Compatible with Minecraft 1.21.1, 1.20.1. Downloaded 10,767,372 times (via CurseForge). Download it and open it directly in the game.

Explore more