1.7.7.0_02
UselessBullets 9 months ago
parent a7051568c9
commit 072f8ee7b2

@ -10,9 +10,9 @@ Template for making Babric mods for BTA!
- Minecraft Development plugin (Optional, but highly recommended) - Minecraft Development plugin (Optional, but highly recommended)
## Setup instructions ## 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 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. 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`. 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/`. 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`. 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!

@ -85,7 +85,7 @@ dependencies {
// If you do not need Halplibe you can comment this line out or delete this line // 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 "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.slf4j:slf4j-api:1.8.0-beta4"
implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0" implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0"

@ -1,13 +1,13 @@
org.gradle.jvmargs=-Xmx2G org.gradle.jvmargs=-Xmx2G
# BTA # BTA
bta_version=7.1-pre1 bta_version=1.7.7.0_02
# Loader # Loader
loader_version=0.14.19-babric.3-bta loader_version=0.14.19-babric.1-bta
# HalpLibe # HalpLibe
halplibe_version=3.0.2 halplibe_version=2.8.0
# Mod # Mod
mod_version=1.0.0 mod_version=1.0.0

@ -3,11 +3,8 @@ package turniplabs.examplemod;
import net.fabricmc.api.ModInitializer; import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import turniplabs.halplibe.util.GameStartEntrypoint;
import turniplabs.halplibe.util.RecipeEntrypoint;
public class ExampleMod implements ModInitializer {
public class ExampleMod implements ModInitializer, GameStartEntrypoint, RecipeEntrypoint {
public static final String MOD_ID = "examplemod"; public static final String MOD_ID = "examplemod";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID); public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@ -15,19 +12,4 @@ public class ExampleMod implements ModInitializer, GameStartEntrypoint, RecipeEn
public void onInitialize() { public void onInitialize() {
LOGGER.info("ExampleMod initialized."); LOGGER.info("ExampleMod initialized.");
} }
@Override
public void beforeGameStart() {
}
@Override
public void afterGameStart() {
}
@Override
public void onRecipesReady() {
}
} }

Loading…
Cancel
Save