Skip to content

Commit

Permalink
Update to 7.1-pre1.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSVK12 committed Dec 15, 2023
1 parent 86f813a commit 537eb5e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,7 @@ 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. 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`.
4. 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!
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!
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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.0"
modImplementation "ModMenu:ModMenu:2.0.3"

implementation "org.slf4j:slf4j-api:1.8.0-beta4"
implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0"
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
org.gradle.jvmargs=-Xmx2G

# BTA
bta_version=1.7.7.0_02
bta_version=7.1-pre1

# Loader
loader_version=0.14.19-babric.1-bta
loader_version=0.14.19-babric.2-bta

# HalpLibe
halplibe_version=2.4.0
halplibe_version=3.0.0

# Mod
mod_version=1.0.0
Expand Down
19 changes: 18 additions & 1 deletion src/main/java/turniplabs/examplemod/ExampleMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,31 @@
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 {
public class ExampleMod implements ModInitializer, GameStartEntrypoint, RecipeEntrypoint {
public static final String MOD_ID = "examplemod";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

@Override
public void onInitialize() {
LOGGER.info("ExampleMod initialized.");
}

@Override
public void beforeGameStart() {

}

@Override
public void afterGameStart() {

}

@Override
public void onRecipesReady() {

}
}

0 comments on commit 537eb5e

Please sign in to comment.