-
Notifications
You must be signed in to change notification settings - Fork 53
Creating an Addon for Rats
Alexthe666 edited this page Oct 5, 2020
·
5 revisions
To add rats to your workspace environment (in order to create an addon for 7.0.0+), add the following to your build.gradle
:
...
repositories{
//Other mavens above or below
maven {
name = "CurseMaven"
url = "https://www.cursemaven.com"
}
}
...
...
dependencies {
// your minecraft version here
compile 'citadel:citadel:CITADEL_VERSION:deobf'
implementation fg.deobf("curse.maven:rats:RATS_FILE")
}
Where CITADEL_VERSION
is the version of citadel required by Rats, and RATS_FILE
is the file ID for the rats jar you want (this can be gotten from the curseforge URL, for https://www.curseforge.com/minecraft/mc-mods/rats/files/3072704 this would be 3072704). So for example,
...
dependencies {
// your minecraft version here
compile 'citadel:citadel:1.4.0:deobf'
implementation fg.deobf("curse.maven:rats:3072704")
}
...
Rebuild your environment and rats should work! Check out com.github.alexthe666.rats.api
package to view some events that apply to rats, and ItemRatUpgrade
should be somewhat self explanatory for how to add functional rat upgrades.