imported>Ambos |
imported>Ambos |
Line 37: |
Line 37: |
|
| |
|
| === Set up the development environment === | | === Set up the development environment === |
| | | Download or clone the [https://github.com/Turnip-Labs/bta-example-mod BTA Babric Example Mod] (or [https://github.com/Turnip-Labs/bta-example-mod-kotlin BTA Babric Example Mod Kotlin]) repository and follow the setup instructions |
| # Download or clone the [https://github.com/Turnip-Labs/bta-example-mod BTA Babric Example Mod] (or [https://github.com/Turnip-Labs/bta-example-mod-kotlin BTA Babric Example Mod Kotlin]) and put it somewhere: <code>git clone <nowiki>https://github.com/Turnip-Labs/bta-minimal-mod.git</nowiki></code>
| |
| # Import the project in IntelliJ IDEA, close it and open it again.
| |
| # Create a new run configuration by going in <code>Run > Edit Configurations</code>. Then click on the plus icon and select Gradle. In the <code>Tasks and Arguments</code> field enter <code>build</code>. Running it will build your finished jar files and put them in <code>build/libs/</code>
| |
| # Open <code>File > Settings</code> and head to <code>Build, Execution, Development > Build Tools > Gradle</code>. Change <code>Build and run using</code> and <code>Run tests using</code> to <code>IntelliJ IDEA</code>
| |
| # Open <code>File > Project Structure</code>, select <code>Project</code> and set <code>Compiler output</code> to your project's path/out.
| |
| # Make sure your Client and Server run configurations have <code>-Dfabric.gameVersion=1.7.7.0</code> in <code>VM options</code> (even for 1.7.7.0_01)
| |
| # Done. Now all that's left is to change every mention of <code>examplemod</code> to your own mod id.
| |
|
| |
|
| == Resources == | | == Resources == |