This mod/gradle plugin allows for hotswapping of a mod on a forge/fabric instance remotely, this means you don't have to host the server within your IDE or session.
- place jar as mod on forge/fabric
- edit
mchotswap.properties
in the minecraft folder
apiKey=changeme!
port=25401
- add task to gradle:
// settings.gradle
pluginManagement {
repositories {
maven {
url = "https://maven.wagyourtail.xyz/releases"
}
maven {
url = "https://maven.wagyourtail.xyz/snapshots"
}
mavenCentral()
}
}
// build.gradle
plugin {
id "xyz.wagyourtail.mchotswap" version "1.0.0-SNAPSHOT"
}
tasks.register("hotswapUpload", UploadToDevServer) {
inputFile = tasks.remapJar.outputs.files.singleFile
modid = "modid"
serverUrl = "http://localhost:25401"
serverKey = "changeme!"
}
hotswapUpload.dependsOn remapJar
- profit