Skip to content

Commit

Permalink
KLib-BlockEntity...
Browse files Browse the repository at this point in the history
Fixed some grammatical errors in mod description.
  • Loading branch information
Chemiofitor4096 committed Nov 1, 2024
1 parent 832924b commit 80157f7
Show file tree
Hide file tree
Showing 16 changed files with 123 additions and 7 deletions.
12 changes: 12 additions & 0 deletions blockentity/common/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apply from: rootProject.file("gradle/scripts/klib-common.gradle")

base.archivesName = rootProject.name + "-blockentity"

kessoku {
module("base", "common")
module("platform", "common")
}

dependencies {
implementation libs.aj4j
}
Binary file added blockentity/common/src/main/resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions blockentity/fabric/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import net.fabricmc.loom.util.ModPlatform

apply from: rootProject.file("gradle/scripts/klib-fabric.gradle")

base.archivesName = rootProject.name + "-blockentity"

kessoku {
module("base", "common")

common("blockentity", ModPlatform.FABRIC)
shadowBundle("blockentity", ModPlatform.FABRIC)
}

dependencies {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package band.kessoku.lib.impl.blockentity.fabric;

import net.fabricmc.api.ModInitializer;

public class KessokuBlockEntityFabric implements ModInitializer {
@Override
public void onInitialize() {

}
}
36 changes: 36 additions & 0 deletions blockentity/fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"schemaVersion": 1,
"id": "kessoku_blockentity",
"version": "${version}",
"name": "Kessoku Block Entity",
"description": "Common blockentity API.",
"authors": [
"Kessoku Tea Time"
],
"contact": {
"homepage": "https://modrinth.com/mod/kessoku-lib",
"sources": "https://github.com/KessokuTeaTime/KessokuLib",
"issues": "https://github.com/KessokuTeaTime/KessokuLib/issues"
},
"license": "LGPL-3.0-only",
"icon": "icon.png",
"entrypoints": {
"main": [
"band.kessoku.lib.impl.blockentity.fabric.KessokuBlockEntityFabric"
]
},
"environment": "*",
"depends": {
"fabricloader": ">=0.16.0",
"minecraft": "1.21",
"java": ">=21",
"fabric-api": "*"
},
"custom": {
"modmenu": {
"badges": [
"library"
]
}
}
}
12 changes: 12 additions & 0 deletions blockentity/neo/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import net.fabricmc.loom.util.ModPlatform

apply from: rootProject.file("gradle/scripts/klib-neo.gradle")

base.archivesName = rootProject.name + "-entrypoint"

kessoku {
module("base", "common")

common("blockentity", ModPlatform.NEOFORGE)
shadowBundle("blockentity", ModPlatform.NEOFORGE)
}
1 change: 1 addition & 0 deletions blockentity/neo/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
loom.platform=neoforge
29 changes: 29 additions & 0 deletions blockentity/neo/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
modLoader = "javafml"
loaderVersion = "[4,)"
license = "LGPL-3.0-only"
issueTrackerURL = "https://github.com/KessokuTeaTime/KessokuLib/issues"

[[mods]]
modId = "kessoku_blockentity"
version = "${version}"
displayName = "Kessoku Block Entity"
description = '''
Common blockentity API.
'''
logoFile = "icon.png"
authors = "Kessoku Tea Time"
displayURL = "https://modrinth.com/mod/kessoku-lib"

[[dependencies.kessoku_blockentity]]
modId = "neoforge"
type = "required"
versionRange = "[21.0,)"
ordering = "NONE"
side = "BOTH"

[[dependencies.kessoku_blockentity]]
modId = "minecraft"
type = "required"
versionRange = "[1.21,)"
ordering = "NONE"
side = "BOTH"
2 changes: 1 addition & 1 deletion entrypoint/fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "kessoku_platform",
"version": "${version}",
"name": "Kessoku Platform",
"description": "Provide some basic API.",
"description": "Common entrypoint API.",
"authors": [
"Kessoku Tea Time"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ modId = "kessoku_entrypoint"
version = "${version}"
displayName = "Kessoku Entrypoint"
description = '''
Provide common entrypoint API.
Common entrypoint API.
'''
logoFile = "icon.png"
authors = "Kessoku Tea Time"
Expand Down
2 changes: 1 addition & 1 deletion event-base/fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "kessoku_event_base",
"version": "${version}",
"name": "Kessoku Event Base",
"description": "Provide basic API for event system.",
"description": "Basic API for an event system.",
"authors": [
"Kessoku Tea Time"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ modId = "kessoku_event_base"
version = "${version}"
displayName = "Kessoku Event Base"
description = '''
Provide basic API for event system.
Basic API for an event system.
'''
logoFile = "icon.png"
authors = "Kessoku Tea Time"
Expand Down
2 changes: 1 addition & 1 deletion platform/fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "kessoku_platform",
"version": "${version}",
"name": "Kessoku Platform",
"description": "Provide common loader API.",
"description": "The next generation cross-platform modular Minecraft modding API.",
"authors": [
"Kessoku Tea Time"
],
Expand Down
2 changes: 1 addition & 1 deletion registry/fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "kessoku_registry",
"version": "${version}",
"name": "Kessoku Registry",
"description": "Provide registry-related API.",
"description": "A Registry-related API.",
"authors": [
"Kessoku Tea Time"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ modId = "kessoku_registry"
version = "${version}"
displayName = "Kessoku Registry"
description = '''
Provide Registry-related API.
A Registry-related API.
'''
logoFile = "icon.png"
authors = "Kessoku Tea Time"
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ includeModule("keybinding") // Keybinding API
includeModule("config") // Config API
includeModule("entrypoint") // Entrypoint API
includeModule("entity-events") // Entity Events
includeModule("blockentity") // Block Entity

void includeWrapper(String platform) {
include("wrapper/$platform")
Expand Down

0 comments on commit 80157f7

Please sign in to comment.