From 8b7ce8588ee3ffe6e983209d40224a5c39c74802 Mon Sep 17 00:00:00 2001 From: azurelmao <58854399+azurelmao@users.noreply.github.com> Date: Sun, 20 Aug 2023 13:05:10 +0200 Subject: [PATCH] Update instructions --- README.md | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index f61db0a..0fffa40 100644 --- a/README.md +++ b/README.md @@ -9,22 +9,25 @@ Template for making Babric mods for BTA! ## Setup instructions -1. Download or clone this repository and put it somewhere. -``` -git clone https://github.com/Turnip-Labs/bta-example-mod.git -``` +1. Click the `Use this template` button on this repo's page above. Choose `Create a new respository`, you will be redirected to a new page. Enter your repo's name and description, and hit `Create repository`. + To get your project, open IntelliJ and click `Get from VCS`. Select `Repository URL` and enter your repo's url -2. Import the project in IntelliJ IDEA, close it and open it again. +2. After the project has finished importing, close it and open it again. + If that does not work, open the right sidebar with `Gradle` on it, open `Tasks` > `fabric` and run `ideaSyncTask`. +3. Create a new run configuration by going in `Run > Edit Configurations`. + Then click on the plus icon and select Gradle. In the `Tasks and Arguments` field enter `build`. + Running it will build your finished jar files and put them in `build/libs/`. -3. Create a new run configuration by going in `Run > Edit Configurations` - Then click on the plus icon and select Gradle. In the `Tasks and Arguments` field enter `build` - Running it will build your finished jar files and put them in `build/libs/` +4. While in the same place, select the Client and Server run configurations and edit the VM options under the SDK selection. + ![image](https://github.com/Turnip-Labs/bta-example-mod/assets/58854399/2d45551d-83e3-4a75-b0e6-acdbb95b8114) -4. Open `File > Settings` and head to `Build, Execution, Development > Build Tools > Gradle` - Make sure `Build and run using` and `Run tests using` is set to `Gradle` + Click the double arrow icon to expand the list, and append `-Dfabric.gameVersion=1.7.7.0` to the end. -5. **Make sure your Client and Server run configurations have `-Dfabric.gameVersion=1.7.7.0` in `VM options`!** + ![image](https://github.com/Turnip-Labs/bta-example-mod/assets/58854399/e4eb8a22-d88a-41ef-8fb2-e37c66e18585) + +5. Lastly, open `File` > `Settings` and head to `Build, Execution, Development` > `Build Tools` > `Gradle`. + Make sure `Build and run using` and `Run tests using` is set to `Gradle`. 6. Done! Now, all that's left is to change every mention of `examplemod` and `turniplabs` to your own mod id and mod group, respectively. Happy modding!