Remove tabs

pull/7/head
Bigjango13 5 months ago
parent a19ac50922
commit fcbbf81218

@ -1,6 +1,6 @@
plugins { plugins {
id 'babric-loom' version '1.4.+' id 'babric-loom' version '1.4.+'
id 'java' id 'java'
} }
group = project.mod_group group = project.mod_group
@ -8,118 +8,118 @@ archivesBaseName = project.mod_name
version = project.mod_version version = project.mod_version
loom { loom {
gluedMinecraftJar() gluedMinecraftJar()
noIntermediateMappings() noIntermediateMappings()
customMinecraftManifest.set("https://github.com/Turnip-Labs/bta-manifest-repo/releases/download/v${project.bta_version}/${project.bta_version}.json") customMinecraftManifest.set("https://github.com/Turnip-Labs/bta-manifest-repo/releases/download/v${project.bta_version}/${project.bta_version}.json")
} }
repositories { repositories {
mavenCentral() mavenCentral()
maven { url = "https://jitpack.io" } maven { url = "https://jitpack.io" }
maven { maven {
name = 'Babric' name = 'Babric'
url = 'https://maven.glass-launcher.net/babric' url = 'https://maven.glass-launcher.net/babric'
} }
maven { maven {
name = 'Fabric' name = 'Fabric'
url = 'https://maven.fabricmc.net/' url = 'https://maven.fabricmc.net/'
} }
ivy { ivy {
url = "https://github.com/Better-than-Adventure" url = "https://github.com/Better-than-Adventure"
patternLayout { patternLayout {
artifact "[organisation]/releases/download/v[revision]/[module].jar" artifact "[organisation]/releases/download/v[revision]/[module].jar"
m2compatible = true m2compatible = true
} }
metadataSources { artifact() } metadataSources { artifact() }
} }
ivy { ivy {
url = "https://github.com/Turnip-Labs" url = "https://github.com/Turnip-Labs"
patternLayout { patternLayout {
artifact "[organisation]/releases/download/v[revision]/[module]-[revision].jar" artifact "[organisation]/releases/download/v[revision]/[module]-[revision].jar"
m2compatible = true m2compatible = true
} }
metadataSources { artifact() } metadataSources { artifact() }
} }
ivy { ivy {
url = "https://github.com/Turnip-Labs" url = "https://github.com/Turnip-Labs"
patternLayout { patternLayout {
artifact "[organisation]/releases/download/[revision]/[module]-[revision].jar" artifact "[organisation]/releases/download/[revision]/[module]-[revision].jar"
m2compatible = true m2compatible = true
} }
metadataSources { artifact() } metadataSources { artifact() }
} }
ivy { ivy {
url = "https://github.com/Turnip-Labs" url = "https://github.com/Turnip-Labs"
patternLayout { patternLayout {
artifact "[organisation]/releases/download/[revision]/[module]-bta-[revision].jar" artifact "[organisation]/releases/download/[revision]/[module]-bta-[revision].jar"
m2compatible = true m2compatible = true
} }
metadataSources { artifact() } metadataSources { artifact() }
} }
ivy { ivy {
url = "https://piston-data.mojang.com" url = "https://piston-data.mojang.com"
patternLayout { patternLayout {
artifact "v1/[organisation]/[revision]/[module].jar" artifact "v1/[organisation]/[revision]/[module].jar"
m2compatible = true m2compatible = true
} }
metadataSources { artifact() } metadataSources { artifact() }
} }
ivy { ivy {
url = "https://github.com/MartinSVK12" url = "https://github.com/MartinSVK12"
patternLayout { patternLayout {
artifact "[organisation]/releases/download/[revision]/[module]-[revision].jar" artifact "[organisation]/releases/download/[revision]/[module]-[revision].jar"
m2compatible = true m2compatible = true
} }
metadataSources { artifact() } metadataSources { artifact() }
} }
} }
dependencies { dependencies {
minecraft "bta-download-repo:bta:${project.bta_version}" minecraft "bta-download-repo:bta:${project.bta_version}"
mappings loom.layered() {} mappings loom.layered() {}
modRuntimeOnly "objects:client:43db9b498cb67058d2e12d394e6507722e71bb45" // https://piston-data.mojang.com/v1/objects/43db9b498cb67058d2e12d394e6507722e71bb45/client.jar modRuntimeOnly "objects:client:43db9b498cb67058d2e12d394e6507722e71bb45" // https://piston-data.mojang.com/v1/objects/43db9b498cb67058d2e12d394e6507722e71bb45/client.jar
modImplementation "fabric-loader:fabric-loader:${project.loader_version}" modImplementation "fabric-loader:fabric-loader:${project.loader_version}"
// Helper library // Helper library
// 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:${project.mod_menu_version}" modImplementation "ModMenu:ModMenu:${project.mod_menu_version}"
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"
implementation 'com.google.guava:guava:33.0.0-jre' implementation 'com.google.guava:guava:33.0.0-jre'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1' implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
var log4jVersion = "2.20.0" var log4jVersion = "2.20.0"
implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}") implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
implementation("org.apache.logging.log4j:log4j-api:${log4jVersion}") implementation("org.apache.logging.log4j:log4j-api:${log4jVersion}")
implementation("org.apache.logging.log4j:log4j-1.2-api:${log4jVersion}") implementation("org.apache.logging.log4j:log4j-1.2-api:${log4jVersion}")
include(implementation("org.apache.commons:commons-lang3:3.12.0")) include(implementation("org.apache.commons:commons-lang3:3.12.0"))
} }
java { java {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar() withSourcesJar()
} }
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
options.release.set 8 options.release.set 8
} }
jar { jar {
from("LICENSE") { from("LICENSE") {
rename { "${it}_${archivesBaseName}" } rename { "${it}_${archivesBaseName}" }
} }
} }
processResources { processResources {
inputs.property "version", version inputs.property "version", version
filesMatching("fabric.mod.json") { filesMatching("fabric.mod.json") {
expand "version": version expand "version": version
} }
} }

@ -11,28 +11,29 @@ import turniplabs.halplibe.util.RecipeEntrypoint;
public class ExampleMod implements ModInitializer, GameStartEntrypoint, RecipeEntrypoint { 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);
@Override @Override
public void onInitialize() { public void onInitialize() {
LOGGER.info("ExampleMod initialized."); LOGGER.info("ExampleMod initialized.");
} }
@Override @Override
public void beforeGameStart() { public void beforeGameStart() {
} }
@Override @Override
public void afterGameStart() { public void afterGameStart() {
} }
@Override @Override
public void onRecipesReady() { public void onRecipesReady() {
} }
@Override @Override
public void initNamespaces() { public void initNamespaces() {
} }
} }

@ -13,30 +13,30 @@
"sources": "" "sources": ""
}, },
"icon": "icon.png", "icon": "icon.png",
"license": "CC0-1.0", "license": "CC0-1.0",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
"main": [ "main": [
"turniplabs.examplemod.ExampleMod" "turniplabs.examplemod.ExampleMod"
], ],
"beforeGameStart": [ "beforeGameStart": [
"turniplabs.examplemod.ExampleMod" "turniplabs.examplemod.ExampleMod"
], ],
"afterGameStart": [ "afterGameStart": [
"turniplabs.examplemod.ExampleMod" "turniplabs.examplemod.ExampleMod"
], ],
"recipesReady": [ "recipesReady": [
"turniplabs.examplemod.ExampleMod" "turniplabs.examplemod.ExampleMod"
] ]
}, },
"mixins": [ "mixins": [
"examplemod.mixins.json" "examplemod.mixins.json"
], ],
"depends": { "depends": {
"minecraft": "~7.1", "minecraft": "~7.1",
"fabricloader": ">=0.15.5" "fabricloader": ">=0.15.5"
}, },
"suggests": { "suggests": {

Loading…
Cancel
Save