-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
109 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
val modId: String by project | ||
val minecraftVersion: String = libs.versions.minecraft.get() | ||
val neoforgeVersion: String = libs.versions.neoforge.platform.get() | ||
val architecturyVersion: String = libs.versions.architectury.get() | ||
|
||
loom { | ||
accessWidenerPath.set(project(":common").loom.accessWidenerPath) | ||
} | ||
|
||
repositories { | ||
maven("https://maven.neoforged.net/releases") | ||
} | ||
|
||
dependencies { | ||
neoForge(libs.neoforge.platform) | ||
modImplementation(libs.neoforge.architectury) | ||
} | ||
|
||
tasks { | ||
processResources { | ||
val properties = mapOf( | ||
"version" to project.version, | ||
"minecraftVersion" to minecraftVersion, | ||
"neoforgeVersion" to neoforgeVersion, | ||
"architecturyVersion" to architecturyVersion | ||
) | ||
inputs.properties(properties) | ||
filesMatching("META-INF/mods.toml") { | ||
expand(properties) | ||
} | ||
} | ||
|
||
remapJar { | ||
atAccessWideners.add("${modId}.accesswidener") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
loom.platform = neoforge |
16 changes: 16 additions & 0 deletions
16
neoforge/src/main/java/li/cil/manual/client/neoforge/MarkdownManualNeoForge.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package li.cil.manual.client.neoforge; | ||
|
||
import li.cil.manual.api.util.Constants; | ||
import li.cil.manual.client.ClientSetup; | ||
import net.neoforged.api.distmarker.Dist; | ||
import net.neoforged.fml.common.Mod; | ||
import net.neoforged.fml.loading.FMLEnvironment; | ||
|
||
@Mod(Constants.MOD_ID) | ||
public final class MarkdownManualNeoForge { | ||
public MarkdownManualNeoForge() { | ||
if (FMLEnvironment.dist == Dist.CLIENT) { | ||
ClientSetup.initialize(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
modLoader = "javafml" | ||
loaderVersion = "[2,)" | ||
issueTrackerURL = "https://github.com/MightyPirates/MarkdownManual/issues" | ||
license = "MIT" | ||
|
||
[[mods]] | ||
modId = "markdown_manual" | ||
version = "${version}" | ||
displayName = "Markdown Manual" | ||
authors = "Sangar" | ||
description = ''' | ||
Library mod providing a convenient way of defining in-game manuals. | ||
''' | ||
|
||
[[dependencies.markdown_manual]] | ||
modId = "neoforge" | ||
type = "required" | ||
versionRange = "[${neoforgeVersion},)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.markdown_manual]] | ||
modId = "minecraft" | ||
type = "required" | ||
versionRange = "${minecraftVersion}" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.markdown_manual]] | ||
modId = "architectury" | ||
type = "required" | ||
versionRange = "[${architecturyVersion},)" | ||
ordering = "AFTER" | ||
side = "BOTH" | ||
|
||
[mc-publish] | ||
modrinth = "nPQ9xkPg" | ||
curseforge = 502485 | ||
dependencies = [ | ||
"architectury@>=${architecturyVersion}(required){modrinth:lhGA9TYQ}{curseforge:419699}" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"pack": { | ||
"description": "Markdown Manual", | ||
"pack_format": 8 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters