Skip to content

Commit

Permalink
Update properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kikugie committed Jul 29, 2024
1 parent 0db27dd commit 49a399d
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 26 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ pluginManagement {
}

plugins {
id("dev.kikugie.stonecutter") version "0.4"
id("dev.kikugie.stonecutter") version "0.4."
}

extensions.configure<StonecutterSettings> {
kotlinController = true
centralScript = "build.gradle.kts"

shared {
versions("1.20.1", "1.20.4", "1.20.6")
versions("1.20.1", "1.20.4", "1.20.6", "1.21")
}
create(rootProject)
}
Expand Down
36 changes: 17 additions & 19 deletions src/main/java/com/example/TemplateMod.java
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
package com.example;

import net.fabricmc.api.ModInitializer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TemplateMod implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
public static final Logger LOGGER = LoggerFactory.getLogger("template");
public static final String VERSION = /*$ mod_version*/ "0.1.0";

public static final String VERSION = /*$ mod_version*/ "0.1.0";

@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.
@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.

LOGGER.info("Hello Fabric world!");
LOGGER.info("Hello Fabric world!");

//? if !release
LOGGER.warn("I'm still a template!");
//? if !release
LOGGER.warn("I'm still a template!");

//? if fapi: <0.95 {
LOGGER.info("Fabric API is old on this version");
LOGGER.info("Please update!");
//?}
}
//? if fapi: <0.95 {
LOGGER.info("Fabric API is old on this version");
LOGGER.info("Please update!");
//?}
}
}
2 changes: 1 addition & 1 deletion stonecutter.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("dev.kikugie.stonecutter")
id("fabric-loom") version "1.6-SNAPSHOT" apply false
id("fabric-loom") version "1.7-SNAPSHOT" apply false
//id("dev.kikugie.j52j") version "1.0" apply false // Enables asset processing by writing json5 files
//id("me.modmuss50.mod-publish-plugin") version "0.5.+" apply false // Publishes builds to hosting websites
}
Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.1/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
deps.yarn_build=10
deps.fabric_api=0.91.0+1.20.1
deps.fabric_api=0.92.2+1.20.1

mod.mc_dep=>=1.20 <=1.20.1
mod.mc_title=1.20.1
Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.4/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
deps.yarn_build=3
deps.fabric_api=0.93.1+1.20.4
deps.fabric_api=0.97.1+1.20.4

mod.mc_dep=1.20.4
mod.mc_title=1.20.4
Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.6/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
deps.yarn_build=3
deps.fabric_api=0.99.4+1.20.6
deps.fabric_api=0.100.8+1.20.6

mod.mc_dep=1.20.6
mod.mc_title=1.20.6
Expand Down
6 changes: 6 additions & 0 deletions versions/1.21/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
deps.yarn_build=9
deps.fabric_api=0.100.8+1.21

mod.mc_dep=1.21
mod.mc_title=1.21
mod.mc_targets=1.21

0 comments on commit 49a399d

Please sign in to comment.