1.0.1
This commit is contained in:
60
neoforge/build.gradle
Normal file
60
neoforge/build.gradle
Normal 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
|
||||
}
|
||||
|
||||
1
neoforge/gradle.properties
Normal file
1
neoforge/gradle.properties
Normal file
@@ -0,0 +1 @@
|
||||
loom.platform = neoforge
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
BIN
neoforge/src/main/resources/META-INF/icon.png
Normal file
BIN
neoforge/src/main/resources/META-INF/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 92 KiB |
38
neoforge/src/main/resources/META-INF/neoforge.mods.toml
Normal file
38
neoforge/src/main/resources/META-INF/neoforge.mods.toml
Normal 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"
|
||||
BIN
neoforge/src/main/resources/more_spear_enchantments/icon.png
Normal file
BIN
neoforge/src/main/resources/more_spear_enchantments/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 92 KiB |
Reference in New Issue
Block a user