Skip to content

Latest commit

 

History

History
44 lines (41 loc) · 1.41 KB

File metadata and controls

44 lines (41 loc) · 1.41 KB

Setting up

1. Clone this repository into your workspace

git clone https://github.com/MinecraftTAS/TASmod.git

2. Import root project into your IDE

Eclipse

  1. Set your workspace folder to the parent folder of the TASmod folder, so if you have something like workspace/TASmod, set the workspace folder to "TASmod".
  2. Click File>Import then search for "Existing Gradle project" and click next
  3. Select the "TASmod" folder as a project root directory then click finish

IntelliJ

Use File>Open, then select the TASmod folder

3. Decompile Source

Run the gradle task genSources either in your IDE or by running

./gradlew genSources

Run Minecraft in Dev-Environment

Eclipse

  1. Run the gradle task eclipse
  2. Select the project, right click, then gradle>Refresh Gradle Project
  3. Select the TASmod_client.launch file then click the run button or press Ctrl+F11

IntelliJ

Run the gradle task runClient

Building

  1. Run the gradle task build
./gradlew build
  1. The generated jar is in build/libs

Formatting

The formatting configuration can be found in the formatting directory and can be imported into your IDE

Alternatively you can run the task

./gradlew spotlessCheck

To see if it fails and

./gradlew spotlessApply

to fix any formatting issues.