From 072f8ee7b25738c640656836f76dec55d6557ae2 Mon Sep 17 00:00:00 2001 From: UselessBullets <80850784+UselessBullets@users.noreply.github.com> Date: Sun, 18 Feb 2024 01:13:06 -0600 Subject: [PATCH] Fixes --- README.md | 16 +++++++++++---- build.gradle | 2 +- gradle.properties | 6 +++--- .../turniplabs/examplemod/ExampleMod.java | 20 +------------------ 4 files changed, 17 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 1fb2663..3f604a9 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ Template for making Babric mods for BTA! - Minecraft Development plugin (Optional, but highly recommended) ## Setup instructions - -1. Click the `Use this template` button on this repo's page above. Choose `Create a new repository`, you will be redirected to a new page. Enter your repo's name and description, and hit `Create repository`. + +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 IDEA and click `Get from VCS`. Select `Repository URL` and enter your repo's url 2. After the project has finished importing, close it and open it again. @@ -22,7 +22,15 @@ Template for making Babric mods for BTA! 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. Lastly, open `File` > `Settings` and head to `Build, Execution, Development` > `Build Tools` > `Gradle`. +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) + + Click the double arrow icon to expand the list, and append `-Dfabric.gameVersion=1.7.7.0` to the end. + + ![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`. -5. 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! +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! diff --git a/build.gradle b/build.gradle index e25656b..3bfd973 100644 --- a/build.gradle +++ b/build.gradle @@ -85,7 +85,7 @@ dependencies { // If you do not need Halplibe you can comment this line out or delete this line modImplementation "com.github.Turnip-Labs:bta-halplibe:${project.halplibe_version}" - modImplementation "ModMenu:ModMenu:2.0.3" + modImplementation "ModMenu:ModMenu:2.0.0" implementation "org.slf4j:slf4j-api:1.8.0-beta4" implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0" diff --git a/gradle.properties b/gradle.properties index b65e29d..2b156f0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,13 +1,13 @@ org.gradle.jvmargs=-Xmx2G # BTA -bta_version=7.1-pre1 +bta_version=1.7.7.0_02 # Loader -loader_version=0.14.19-babric.3-bta +loader_version=0.14.19-babric.1-bta # HalpLibe -halplibe_version=3.0.2 +halplibe_version=2.8.0 # Mod mod_version=1.0.0 diff --git a/src/main/java/turniplabs/examplemod/ExampleMod.java b/src/main/java/turniplabs/examplemod/ExampleMod.java index 3397625..ddcda5e 100644 --- a/src/main/java/turniplabs/examplemod/ExampleMod.java +++ b/src/main/java/turniplabs/examplemod/ExampleMod.java @@ -3,11 +3,8 @@ package turniplabs.examplemod; import net.fabricmc.api.ModInitializer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import turniplabs.halplibe.util.GameStartEntrypoint; -import turniplabs.halplibe.util.RecipeEntrypoint; - -public class ExampleMod implements ModInitializer, GameStartEntrypoint, RecipeEntrypoint { +public class ExampleMod implements ModInitializer { public static final String MOD_ID = "examplemod"; public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID); @@ -15,19 +12,4 @@ public class ExampleMod implements ModInitializer, GameStartEntrypoint, RecipeEn public void onInitialize() { LOGGER.info("ExampleMod initialized."); } - - @Override - public void beforeGameStart() { - - } - - @Override - public void afterGameStart() { - - } - - @Override - public void onRecipesReady() { - - } }