This commit is contained in:
2026-01-01 23:31:01 -06:00
parent c36cbcea0d
commit 23dfcdc369
49 changed files with 1631 additions and 0 deletions

60
neoforge/build.gradle Normal file
View File

@@ -0,0 +1,60 @@
plugins {
id 'com.gradleup.shadow'
}
architectury {
platformSetupLoomIde()
neoForge()
}
configurations {
common {
canBeResolved = true
canBeConsumed = false
}
compileClasspath.extendsFrom common
runtimeClasspath.extendsFrom common
developmentNeoForge.extendsFrom common
// Files in this configuration will be bundled into your mod using the Shadow plugin.
// Don't use the `shadow` configuration from the plugin itself as it's meant for excluding files.
shadowBundle {
canBeResolved = true
canBeConsumed = false
}
}
repositories {
maven {
name = 'NeoForged'
url = 'https://maven.neoforged.net/releases'
}
}
dependencies {
neoForge "net.neoforged:neoforge:$rootProject.neoforge_version"
// Architectury API. This is optional, and you can comment it out if you don't need it.
modImplementation "dev.architectury:architectury-neoforge:$rootProject.architectury_api_version"
common(project(path: ':common', configuration: 'namedElements')) { transitive = false }
shadowBundle project(path: ':common', configuration: 'transformProductionNeoForge')
}
processResources {
inputs.property 'version', project.version
filesMatching('META-INF/neoforge.mods.toml') {
expand version: inputs.properties.version
}
}
shadowJar {
configurations = [project.configurations.shadowBundle]
archiveClassifier = 'dev-shadow'
}
remapJar {
inputFile.set shadowJar.archiveFile
}

View File

@@ -0,0 +1 @@
loom.platform = neoforge

View File

@@ -0,0 +1,14 @@
package dev.sillyangel.more_spear_enchantments.neoforge;
import net.neoforged.fml.common.Mod;
import dev.sillyangel.more_spear_enchantments.MoreSpearEnchantments;
@Mod(MoreSpearEnchantments.MOD_ID)
public final class MoreSpearEnchantmentsNeoForge {
public MoreSpearEnchantmentsNeoForge() {
// Run our common setup.
MoreSpearEnchantments.init();
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@@ -0,0 +1,38 @@
modLoader = "javafml"
loaderVersion = "[10,)"
issueTrackerURL = "https://git.sillyangel.dev/angel/more-spear-enchants-neoforge/issues"
license = "MIT"
[[mods]]
modId = "more_spear_enchantments"
version = "${version}"
displayName = "More Spear Enchantments"
authors = "sillyangel"
description = '''
more enchantments for the newly added spear from the Mounts of Mayhem update.
'''
logoFile = "icon.png"
[[dependencies.more_spear_enchantments]]
modId = "neoforge"
type = "required"
versionRange = "[21.11,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.more_spear_enchantments]]
modId = "minecraft"
type = "required"
versionRange = "[1.21.11,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.more_spear_enchantments]]
modId = "architectury"
type = "required"
versionRange = "[19.0.1,)"
ordering = "AFTER"
side = "BOTH"
[[mixins]]
config = "more_spear_enchantments.mixins.json"

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB