Currently not stable and under heavy development!
A Forge implementation of the Sponge API. It is licensed under the MIT License.
- Homepage
- Source
- Issues
- SpongeAPI Wiki
- Sponge Wiki
- Community Chat: #sponge on irc.esper.net
- Development Chat: #spongedev on irc.esper.net
- Java 6
The following steps will ensure your project is cloned properly.
git clone git@github.com:SpongePowered/Sponge.git
cd Sponge
git submodule update --init --recursive
cp scripts/pre-commit .git/hooks
Note: If you do not have Gradle installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any 'gradle' command.
For Eclipse
- Run
gradle setupDecompWorkspace --refresh-dependencies
- Make sure you have the Gradle plugin installed (Help > Eclipse Marketplace > Gradle Integration Plugin)
- Import Sponge as a Gradle project (File > Import)
- Select the root folder for Sponge and click Build Model
- Check Sponge when it finishes building and click Finish
For IntelliJ
- Run
gradle setupDecompWorkspace --refresh-dependencies
- Make sure you have the Gradle plugin enabled (File > Settings > Plugins).
- Click File > Import Module and select the build.gradle file for Sponge.
Note: The following is aimed to help you setup run configurations for Eclipse and IntelliJ, if you do not want to be able to run Sponge directly from your IDE then you can skip this.
For Eclipse
- Go to Run > Run Configurations.
- Right-click Java Application and select New.
- Set the current project.
- Set the name as
Sponge (Client)
and apply the information for Client below. - Repeat step 1 through 4, then set the name as
Sponge (Server)
and apply the information for Server below. - When launching the server for the first time, it will shutdown by itself. You will need to modify the server.properties to set onlinemode=false and modify the eula.txt to set eula=true (this means you agree to the Mojang EULA, if you do not wish to do this then you cannot run the server)
For IntelliJ
- Go to Run > Edit Configurations.
- Click the green + button and select Application.
- Set the name as
Sponge (Client)
and apply the information for Client below. - Repeat step 2 and set the name as
Sponge (Server)
and apply the information for Server below. - When launching the server for the first time, it will shutdown by itself. You will need to modify the server.properties to set onlinemode=false and modify the eula.txt to set eula=true (this means you agree to the Mojang EULA, if you do not wish to do this then you cannot run the server).
Client
Property | Value |
---|---|
Main class | GradleStart |
VM options | -Djava.library.path="../../build/natives" -Dfml.coreMods.load=org.spongepowered.mod.SpongeCoremod |
Working directory | ./run/client (Included in project) |
Module classpath | Sponge (IntelliJ Only) |
Server
Property | Value |
---|---|
Main class | GradleStartServer |
VM Options | -Dfml.coreMods.load=org.spongepowered.mod.SpongeCoremod |
Working directory | ./run/server (Included in project) |
Module classpath | Sponge (IntelliJ Only) |
Note: If you do not have Gradle installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any 'gradle' command.
In order to build Sponge you simply need to run the gradle
command. You can find the compiled JAR file in ./build/libs
labeled similarly to 'sponge-x.x.x-SNAPSHOT.jar'.
Are you a talented programmer looking to contribute some code? We'd love the help!
- Open a pull request with your changes, following our guidelines.
- Please follow the above guidelines for your pull request(s) to be accepted.