Skip to content

RTLSponge/SpongeVanilla

 
 

Repository files navigation

SpongeVanilla Build Status

Currently not stable and under heavy development!

SpongeVanilla is the SpongeAPI implementation for Vanilla Minecraft.

Prerequisites

Cloning

The following steps will ensure your project is cloned properly.

  1. git clone --recursive https://github.com/SpongePowered/SpongeVanilla.git
  2. cd SpongeVanilla
  3. cp scripts/pre-commit .git/hooks

Setup

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.

Before you are able to build SpongeVanilla, you must first prepare the environment:

  • Run gradle setupDecompWorkspace --refresh-dependencies

Note: You may substitute setupDecompWorkspace for setupCIWorkspace when building on a CI such as Jenkins.

IDE Setup

For Eclipse

  1. Run gradle eclipse
  2. Import SpongeVanilla as an existing project (File > Import > General)
  3. Select the root folder for SpongeVanilla and make sure Search for nested projects is enabled
  4. Check SpongeVanilla when it finishes building and click Finish

For IntelliJ

  1. Make sure you have the Gradle plugin enabled (File > Settings > Plugins).
  2. Click File > New > Project from Existing Sources > Gradle and select the root folder for SpongeVanilla.

Running

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 SpongeVanilla directly from your IDE then you can skip this.

For Eclipse

  1. Go to Run > Run Configurations.
  2. Right-click Java Application and select New.
  3. Set the current project.
  4. Set the name as Sponge (vanilla/server) and apply the information for Server below.
  5. When launching the server for the first time, it will shutdown by itself. You will need to modify 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

  1. Go to Run > Edit Configurations.
  2. Click the green + button and select Application.
  3. Set the name as Sponge (vanilla/server) and apply the information for Server below.
  4. When launching the server for the first time, it will shutdown by itself. You will need to modify 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).

Server

Property Value
Main class GradleStartServer
Program arguments --noCoreSearch
Working directory ./run (Included in project)
Module classpath SpongeVanilla (IntelliJ Only)

Building

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.

Note: You must Setup the environment before you can build SpongeVanilla.

In order to build SpongeVanilla you simply need to run the gradle command. You can find the compiled JAR files in ./build/libs but in most cases you'll only need 'spongevanilla-x.x.x-x.x-x.jar'.

Updating your Clone

The following steps will update your clone with the official repo.

  1. git remote add upstream git@github.com:SpongePowered/SpongeVanilla.git
  2. git pull --rebase upstream master
  3. git submodule update --recursive

FAQ

A dependency was added, but my IDE is missing it! How do I add it?

If a new dependency was added, you can just restart your IDE and the Gradle plugin for that IDE should pull in the new dependencies.

Contributing

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.

Help! Things are not working!

Some issues can be resolved by deleting the '.gradle' folder in your user directory and running through the setup steps again, or even running gradle cleanCache and running through the setup again. Otherwise if you are having trouble with something that the README does not cover, feel free to join our IRC channel and ask for assistance.

About

The SpongeAPI implementation for Vanilla Minecraft.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%