Skip to content

Commit

Permalink
Made template for nightly builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSVK12 committed Apr 14, 2024
1 parent 046e275 commit e73e25b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 28 deletions.
19 changes: 15 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version = project.mod_version
loom {
gluedMinecraftJar()
noIntermediateMappings()
customMinecraftManifest.set("https://github.com/Turnip-Labs/bta-manifest-repo/releases/download/v${project.bta_version}/${project.bta_version}.json")
customMinecraftManifest.set("https://nightly.betterthanadventure.net/bta-${project.bta_version}-manifest.json")
}

repositories {
Expand Down Expand Up @@ -72,20 +72,31 @@ repositories {
}
metadataSources { artifact() }
}
ivy {
url = "https://nightly.betterthanadventure.net"
patternLayout {
artifact "/bta-[revision]-client.jar"
m2compatible = true
}
metadataSources { artifact() }
}
}

dependencies {
minecraft "bta-download-repo:bta:${project.bta_version}"
minecraft "::${project.bta_version}"
mappings loom.layered() {}

modRuntimeOnly "objects:client:43db9b498cb67058d2e12d394e6507722e71bb45" // https://piston-data.mojang.com/v1/objects/43db9b498cb67058d2e12d394e6507722e71bb45/client.jar
modImplementation "fabric-loader:fabric-loader:${project.loader_version}"

// Nightly builds are highly unstable, it is very likely that even these base mods might not work!
// Uncomment at your own risk.

// Helper library
// 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:${project.mod_menu_version}"
//modImplementation "ModMenu:ModMenu:${project.mod_menu_version}"

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

# BTA
bta_version=7.1
bta_version=nightly-2024-04-14

# Loader & Mod Menu
# Loader
loader_version=0.15.6-babric.4-bta
mod_menu_version=2.0.5

# HalpLibe
halplibe_version=3.5.2
# Nightly builds are highly unstable, it is very likely that even these base mods might not work!
# Uncomment at your own risk.

# Other Mods
# mod_menu_version=2.0.5
# halplibe_version=3.5.2

# Mod
mod_version=1.0.0
Expand Down
19 changes: 1 addition & 18 deletions src/main/java/turniplabs/examplemod/ExampleMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +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 class ExampleMod implements ModInitializer {
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() {

}
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],

"depends": {
"minecraft": "7.1",
"minecraft": "*",
"fabricloader": ">=0.15.5"
},
"suggests": {
Expand Down

0 comments on commit e73e25b

Please sign in to comment.