A mod to enable a Minecraft client to connect to multiple server versions.
- Download and run the Fabric installer.
- Click the "vanilla" button, leave the other settings as they are, and click "download installer".
- Note: this step may vary if you aren't using the vanilla launcher or an old version of Minecraft.
- Download multiconnect from the releases page
and move it to the mods folder (
.minecraft/mods
).
This section is for when you are developing your own mod and want to use the multiconnect API, or run multiconnect alongside your mod in the IDE. Aside from the first step, you ONLY need to follow the steps applicable to you and your mod.
- Add a
repositores {}
block in yourbuild.gradle
(if there isn't already one), and add Earthcomputer's Bintray mods repository:repositories { maven { url 'https://dl.bintray.com/earthcomputer/mods' } }
- Note: this repositories block is NOT the same as the one inside the
buildscript {}
block.
- Note: this repositories block is NOT the same as the one inside the
- If you want to use the API inside your mod, you will have to jar-in-jar it for the release and add it to the classpath. To do this, add the following to your
dependencies {}
block:dependencies { // ... modCompile('net.earthcomputer.multiconnect:<version>:api') { transitive = false } include('net.earthcomputer:multiconnect:<version>:api') { transitive = false } }
- Note: replace
<version>
with the version of multiconnect you want to depend on. - Note: SKIP this step if your mod is NOT using the API in any way.
- Note: replace
- If you want to run multiconnect in the IDE alongside your mod, add the following to your
dependencies {}
block:dependencies { // ... modCompile('net.earthcomputer:multiconnect:<version>') { transitive = false } }
- Clone the repository
git clone https://github.com/Earthcomputer/multiconnect cd multiconnect
- Generate the Minecraft source code
./gradlew genSources
- Note: on Windows, use
gradlew
rather than./gradlew
.
- Note: on Windows, use
- Generate the IDE project depending on which IDE you prefer
./gradlew idea # For IntelliJ IDEA ./gradlew eclipse # For Eclipse
- Import the project in your IDE and edit the code
- After testing in the IDE, build a JAR to test whether it works outside the IDE too
The mod JAR may be found in the
./gradlew build
build/libs
directory - Create a pull request
so that your changes can be integrated into multiconnect
- Note: for large contributions, create an issue before doing all that work, to ask whether your pull request is likely to be accepted