-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
d3e40f1
commit ab62662
Showing
15 changed files
with
148 additions
and
77 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -25,7 +25,6 @@ | |
] | ||
}, | ||
"mixins": [ | ||
"drop_confirm.mixins.json", | ||
"drop_confirm-common.mixins.json" | ||
], | ||
"depends": { | ||
|
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,68 @@ | ||
plugins { | ||
id "com.github.johnrengelman.shadow" version "7.1.2" | ||
} | ||
|
||
architectury { | ||
platformSetupLoomIde() | ||
forge() | ||
} | ||
|
||
loom { | ||
accessWidenerPath = project(":common").loom.accessWidenerPath | ||
|
||
forge { | ||
mixinConfig "drop_confirm-common.mixins.json" | ||
} | ||
} | ||
|
||
configurations { | ||
common | ||
shadowCommon // Don't use shadow from the shadow plugin since it *excludes* files. | ||
compileClasspath.extendsFrom common | ||
runtimeClasspath.extendsFrom common | ||
developmentForge.extendsFrom common | ||
} | ||
|
||
dependencies { | ||
forge "net.minecraftforge:forge:${rootProject.forge_version}" | ||
// Remove the next line if you don't want to depend on the API | ||
modApi "dev.architectury:architectury-forge:${rootProject.architectury_version}" | ||
|
||
common(project(path: ":common", configuration: "namedElements")) { transitive false } | ||
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false } | ||
|
||
modImplementation("dev.tcl:the-config-lib-forge:$rootProject.tcl_version") | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
|
||
filesMatching("META-INF/mods.toml") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
shadowJar { | ||
exclude "fabric.mod.json" | ||
exclude "architectury.common.json" | ||
|
||
configurations = [project.configurations.shadowCommon] | ||
archiveClassifier = "dev-shadow" | ||
} | ||
|
||
remapJar { | ||
input.set shadowJar.archiveFile | ||
dependsOn shadowJar | ||
} | ||
|
||
sourcesJar { | ||
def commonSources = project(":common").sourcesJar | ||
dependsOn commonSources | ||
from commonSources.archiveFile.map { zipTree(it) } | ||
} | ||
|
||
components.java { | ||
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) { | ||
skip() | ||
} | ||
} |
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=forge |
16 changes: 16 additions & 0 deletions
16
forge/src/main/java/xyz/pupbrained/forge/DropConfirmForge.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 xyz.pupbrained.forge; | ||
|
||
import net.minecraftforge.client.ConfigScreenHandler; | ||
import net.minecraftforge.fml.ModLoadingContext; | ||
import net.minecraftforge.fml.common.Mod; | ||
import xyz.pupbrained.DropConfirm; | ||
import xyz.pupbrained.config.DropConfirmConfig; | ||
|
||
@Mod(DropConfirm.MOD_ID) | ||
public class DropConfirmForge { | ||
public DropConfirmForge() { | ||
ModLoadingContext.get().registerExtensionPoint(ConfigScreenHandler.ConfigScreenFactory.class, () -> | ||
new ConfigScreenHandler.ConfigScreenFactory((client, parent) -> DropConfirmConfig.createScreen(parent))); | ||
DropConfirm.init(); | ||
} | ||
} |
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,45 @@ | ||
modLoader = "javafml" | ||
loaderVersion = "[49,)" | ||
#issueTrackerURL = "" | ||
license = "Unlicense" | ||
|
||
[[mods]] | ||
modId = "drop_confirm" | ||
version = "${version}" | ||
displayName = "DropConfirm" | ||
authors = "pupbrained" | ||
description = ''' | ||
Think twice before you drop. | ||
''' | ||
logoFile = "icon.png" | ||
|
||
[[dependencies.drop_confirm]] | ||
modId = "forge" | ||
mandatory = true | ||
versionRange = "[49,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.drop_confirm]] | ||
modId = "minecraft" | ||
mandatory = true | ||
versionRange = "[1.20.4,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.drop_confirm]] | ||
modId = "architectury" | ||
mandatory = true | ||
versionRange = "[11.0.9,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.drop_confirm]] | ||
modId = "the_config_lib" | ||
mandatory = true | ||
versionRange = "[4.0.0-SNAPSHOT,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[mixins]] | ||
config = "drop_confirm-common.mixins.json" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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": "DropConfirm", | ||
"pack_format": 15 | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
org.gradle.jvmargs=-Xmx2048M | ||
minecraft_version=1.20.4 | ||
enabled_platforms=fabric,neoforge | ||
enabled_platforms=fabric,neoforge,forge | ||
archives_base_name=drop_confirm | ||
mod_version=2.0.0 | ||
maven_group=xyz.pupbrained | ||
architectury_version=11.0.9 | ||
fabric_loader_version=0.15.3 | ||
fabric_api_version=0.91.3+1.20.4 | ||
neoforge_version=20.4.55-beta | ||
forge_version=1.20.4-49.0.3 | ||
yarn_mappings=1.20.4+build.3 | ||
yarn_mappings_patch=1.20.4+build.1 | ||
tcl_version=4.0.0-SNAPSHOT |
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 was deleted.
Oops, something went wrong.
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