Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed May 1, 2024
1 parent 82afd1d commit ae4f4ef
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 29 deletions.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,19 @@ base {

repositories {
mavenCentral()
maven { url = uri("https://maven.shedaniel.me/") }
maven { url = uri("https://maven.terraformersmc.com/releases/") }
}

dependencies {
minecraft(libs.minecraft)
mappings(libs.yarn)
modImplementation(libs.bundles.fabric)

modImplementation(libs.cloth.config)

implementation(libs.bundles.night.config)
include(libs.bundles.night.config)
}

java {
Expand Down
21 changes: 16 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
[versions]
maven-group = "band.kessokuteatime"
archives-name = "modid"
archives-name = "nightautoconfig"
mod = "1.0.0"
loader = "fabric"

minecraft = "1.20"
yarn = "1.20+build.1"
minecraft = "1.18"
yarn = "1.18+build.1"
fabric-loader = "0.15.10"
fabric-api = "0.83.0+1.20"
fabric-api = "0.44.0+1.18"
fabric-loom = "1.6-SNAPSHOT"
modpublisher = "2.1.0"

cloth-config = "6.5.116"
night-config = "3.6.0"

# id
id-modrinth = "id"
id-curseforge = "id"

# display
display-name = "Example"
display-name = "Night Auto Config"
display-loader = "Fabric"
display-version = "1.20.x"

Expand All @@ -26,9 +29,17 @@ yarn = { group = "net.fabricmc", name = "yarn", version.ref = "yarn" }
fabric-loader = { group = "net.fabricmc", name = "fabric-loader", version.ref = "fabric-loader" }
fabric-api = { group = "net.fabricmc.fabric-api", name = "fabric-api", version.ref = "fabric-api" }

cloth-config = { group = "me.shedaniel.cloth", name = "cloth-config-fabric", version.ref = "cloth-config" }

night-config-json = { group = "com.electronwill.night-config", name = "json", version.ref = "night-config" }
night-config-toml = { group = "com.electronwill.night-config", name = "toml", version.ref = "night-config" }
night-config-hocon = { group = "com.electronwill.night-config", name = "hocon", version.ref = "night-config" }
night-config-yaml = { group = "com.electronwill.night-config", name = "yaml", version.ref = "night-config" }

[plugins]
fabric-loom = { id = "fabric-loom", version.ref = "fabric-loom" }
modpublisher = { id = "com.hypherionmc.modutils.modpublisher", version.ref = "modpublisher" }

[bundles]
fabric = ["fabric-loader", "fabric-api"]
night-config = ["night-config-json", "night-config-toml", "night-config-hocon", "night-config-yaml"]
14 changes: 0 additions & 14 deletions src/main/java/band/kessokuteatime/modid/ExampleMod.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package band.kessokuteatime.nightautoconfig;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class NightAutoConfig implements ClientModInitializer {
public static final String NAME = "Night Auto Config", ID = "nightautoconfig";
public static final Logger LOGGER = LoggerFactory.getLogger(ID);

@Override
public void onInitializeClient() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package band.kessokuteatime.nightautoconfig.serializers;

public class JsonNightConfigSerializer {
}
File renamed without changes
22 changes: 13 additions & 9 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"id": "modid",
"id": "nightautoconfig",
"version": "${version}",

"name": "${display.name}",
Expand All @@ -10,27 +10,31 @@
"KrLite"
],
"contact": {
"homepage": "https://modrinth.com/mod/modid",
"sources": "https://github.com/KessokuTeaTime/Example-Mod",
"issues": "https://github.com/KessokuTeaTime/Example-Mod/issues"
"homepage": "https://modrinth.com/mod/night-auto-config",
"sources": "https://github.com/KessokuTeaTime/Night-Auto-Config",
"issues": "https://github.com/KessokuTeaTime/Night-Auto-Config/issues"
},

"license": "GPL-3.0",
"icon": "assets/modid/icon.png",
"icon": "assets/nightautoconfig/icon.png",

"environment": "*",
"entrypoints": {
"main": [
"band.kessoku.modid.ExampleMod"
"client": [
"band.kessokuteatime.nightautoconfig.NightAutoConfig"
]
},
"mixins": [
"modid.mixins.json"
],

"custom": {
"modmenu": {
"badges": ["library"]
}
},
"depends": {
"fabricloader": "*",
"fabric-api": "*",
"cloth-config": ">=6",
"minecraft": "1.20.x"
},
"suggests": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/modid.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"minVersion": "0.8",
"package": "band.kessokuteatime.modid.mixin",
"package": "band.kessokuteatime.nightautoconfig.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
],
Expand Down

0 comments on commit ae4f4ef

Please sign in to comment.