You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 belowmaven {
name = "CurseMaven"url = "https://www.cursemaven.com"
}
}
...
...
dependencies {
// your minecraft version herecompile'citadel:citadel:CITADEL_VERSION:deobf'implementationfg.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 herecompile'citadel:citadel:1.4.0:deobf'implementationfg.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.