Skip to content

Commit

Permalink
Template for 1.7.7.0_02
Browse files Browse the repository at this point in the history
  • Loading branch information
UselessBullets committed Feb 18, 2024
1 parent af003ba commit a705156
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 30 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Template for making Babric mods for BTA!

## Prerequisites
- JDK for Java 17 ([Eclipse Temurin](https://adoptium.net/temurin/releases/) recommended)
- [Intellij IDEA](https://www.jetbrains.com/idea/download/) (Scroll down for the free community edition, if using linux **DO NOT** use the flatpak distribution)
- IntelliJ IDEA
- Minecraft Development plugin (Optional, but highly recommended)

## Setup instructions
Expand All @@ -26,12 +26,3 @@ Template for making Babric mods for BTA!
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!

## Tips

1. If you haven't already you should join the BTA modding discord! https://discord.gg/FTUNJhswBT
2. You can set your username when launching the client run configuration by setting `--username <username>` in your program arguments.
3. When launching the server run configuration you may want to remove the `nogui` program argument in order to see the regular server GUI.
4. In Intellij you can double press shift or press ctrl+N to search class files, change the search from the default `Project Files` to `All Places` you can easily explore the classes for you dependencies and even BTA itself.
5. In Intellij if ctrl+left click on a field or method you can quickly get information on when and where that field or method is assign or used.

4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ 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}"

include(implementation(annotationProcessor("com.github.llamalad7.mixinextras:mixinextras-fabric:0.2.0-beta.9")))

modImplementation "ModMenu:ModMenu:2.0.3"

implementation "org.slf4j:slf4j-api:1.8.0-beta4"
Expand All @@ -98,8 +96,6 @@ dependencies {
implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
implementation("org.apache.logging.log4j:log4j-api:${log4jVersion}")
implementation("org.apache.logging.log4j:log4j-1.2-api:${log4jVersion}")

include(implementation("org.apache.commons:commons-lang3:3.12.0"))
}

java {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
org.gradle.jvmargs=-Xmx2G

# BTA
bta_version=7.1-pre1a
bta_version=7.1-pre1

# Loader
loader_version=0.14.19-babric.3-bta

# HalpLibe
halplibe_version=3.3.3
halplibe_version=3.0.2

# Mod
mod_version=1.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/turniplabs/examplemod/ExampleMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import turniplabs.halplibe.helper.BlockBuilder;
import turniplabs.halplibe.util.GameStartEntrypoint;
import turniplabs.halplibe.util.RecipeEntrypoint;


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.");
Expand Down
16 changes: 3 additions & 13 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,14 @@
"sources": ""
},

"icon": "icon.png",
"license": "CC0-1.0",

"environment": "*",
"entrypoints": {
"main": [
"turniplabs.examplemod.ExampleMod"
],
"beforeGameStart": [
"turniplabs.examplemod.ExampleMod"
],
"afterGameStart": [
"turniplabs.examplemod.ExampleMod"
],
"recipesReady": [
"turniplabs.examplemod.ExampleMod"
]
},
"turniplabs.examplemod.ExampleMod"
]
},
"mixins": [
"examplemod.mixins.json"
],
Expand Down
Binary file removed src/main/resources/icon.png
Binary file not shown.

0 comments on commit a705156

Please sign in to comment.