Made template for nightly builds.

nightly
MartinSVK12 1 month ago
parent 046e2759d6
commit e73e25bcf9

@ -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 {
@ -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"

@ -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

@ -3,12 +3,9 @@ package turniplabs.examplemod;
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
@ -16,18 +13,4 @@ public class ExampleMod implements ModInitializer, GameStartEntrypoint, RecipeEn
LOGGER.info("ExampleMod initialized.");
}
@Override
public void beforeGameStart() {
}
@Override
public void afterGameStart() {
}
@Override
public void onRecipesReady() {
}
}

@ -36,7 +36,7 @@
],
"depends": {
"minecraft": "7.1",
"minecraft": "*",
"fabricloader": ">=0.15.5"
},
"suggests": {

Loading…
Cancel
Save