Jump to content

Recommended Posts

Posted

Hello! I'm in the process of setting up a forge server with a bunch of mods. When running the shell script to start up the server, an error shows saying that there are several missing mandatory dependencies, but the dep names are all unhelpfully listed as "forge". Is there a way to know what exactly I'm missing?

[main/ERROR] [ne.mi.fm.lo.ModSorter/LOADING]: Missing mandatory dependencies: forge, forge, forge, forge, forge, forge, forge...

Pastebin of full crash report: https://pastebin.com/HHpM7Q0H

Posted

They should all be the correct version; I installed them all using the Forge client. I'm running forge 1.19.2 with Java 17
 

[opc@mc-server ~]$ ls mc-forge-server/mods
 ad_astra-forge-1.19.2-1.12.7.jar                   jei-1.19.2-forge-11.6.0.1018.jar
 AE2WTLib-12.9.7.jar                                JER-Integration-4.4.1.jar
 appleskin-forge-mc1.19-2.4.2.jar                   JustEnoughResources-1.19.2-1.2.2.236.jar
 appliedenergistics2-forge-12.9.8.jar               Kiwi-1.19.1-forge-8.3.4.jar
 Architects-Palette-1.19.2-1.3.3.jar                kleeslabs-forge-1.19.2-12.3.0.jar
 architectury-6.5.85-forge.jar                      letmedespawn-1.18.x-1.19.x-forge-1.0.3.jar
 AttributeFix-Forge-1.19.2-17.2.7.jar               mcw-bridges-2.1.1-mc1.19.2forge.jar
 balm-forge-1.19.2-4.6.0.jar                        memoryleakfix-forge-1.17+-1.0.0.jar
 BetterAdvancements-1.19.2-0.2.2.142.jar            modnametooltip-1.20.1-1.20.0.jar
 Bookshelf-Forge-1.19.2-16.3.20.jar                 moonlight-1.19.2-2.2.46-forge.jar
 Botania-1.19.2-440-FORGE.jar                       MouseTweaks-forge-mc1.19-2.23.jar
 botarium-forge-1.19.2-1.8.2.jar                    NaturesCompass-1.19.2-1.10.0-forge.jar
 caelus-forge-1.19.2-3.0.0.6.jar                    netherportalfix-forge-1.19-10.0.1.jar
 canary-mc1.19.2-0.2.8.jar                          NethersDelight-1.19-3.1.jar
 carryon-forge-1.19.2-2.1.1.21.jar                  notenoughanimations-forge-1.6.2-mc1.19.2.jar
 chunksending-1.19.2-2.7.jar                        notreepunching-forge-1.19.2-6.0.0.jar
 cloth-config-8.3.103-forge.jar                     open-parties-and-claims-forge-1.19.2-0.20.1.jar
 Clumps-forge-1.19.2-9.0.0+14.jar                   Patchouli-1.19.2-77.jar
 cofh_core-1.19.2-10.3.0.46.jar                     Placebo-1.19.2-7.3.3.jar
 collective-1.19.2-6.66.jar                         polymorph-forge-0.46.4+1.19.2.jar
 connectivity-1.19.2-4.6.jar                        PuzzlesLib-v4.4.3-1.19.2-Forge.jar
 Controlling-forge-1.19.2-10.0+7.jar                resourcefulconfig-forge-1.19.2-1.0.20.jar
 corpse-1.19.2-1.0.0.jar                            resourcefullib-forge-1.19.2-1.1.24.jar
 create-1.19.2-0.5.1.e.jar                          revampedwolf-1.19.2-4.0.0.jar
 CullLessLeaves-Reforged-1.0.5.jar                  rubidium_extras-1.19.2_v1.4.3.jar
 culturaldelights-1.19.2-0.15.4.jar                 rubidium-mc1.19.2-0.6.2c.jar
 cupboard-1.19.2-2.1.jar                            Searchables-forge-1.19.2-1.0.2.jar
 curios-forge-1.19.2-5.1.4.1.jar                    SereneSeasons-1.19.2-8.1.0.24.jar
'Decorative Blocks-forge-1.19.2-3.0.0.jar'          ShieldExpansion-1.19.2-1.1.6.jar
 Delightful-1.19.2-3.4.1.jar                        smoothchunk-1.19.2-3.4.jar
 deuf-1.19.2-1.3.jar                                SnowRealMagic-1.19.2-forge-6.5.4.jar
 DiagonalFences-v4.2.6-1.19.2-Forge.jar             snowundertrees-1.19.2-1.3.1.jar
 EasyAnvils-v4.0.11-1.19.2-Forge.jar                solapplepie-1.19.2-2.2.0.jar
 EasyMagic-v4.3.3-1.19.2-Forge.jar                  structureessentials-1.19.2-3.1.jar
 elevatorid-1.19.2-1.8.9.jar                        structure_gel-1.19.2-2.7.3.jar
 elytraslot-forge-6.1.1+1.19.2.jar                  the-conjurer-1.19.2-1.1.5.jar
 EnchantmentDescriptions-Forge-1.19.2-13.0.14.jar   thermal_cultivation-1.19.2-10.3.0.19.jar
 entityculling-forge-1.6.1-mc1.19.2.jar             thermal_dynamics-1.19.2-10.3.0.20.jar
 everycomp-1.19.2-2.5.10.jar                        thermal_expansion-1.19.2-10.3.1.25.jar
 explorify-forge-1.19-1.3.0.jar                     thermal_foundation-1.19.2-10.3.1.57.jar
 FarmersDelight-1.19.2-1.2.3.jar                    thermal_innovation-1.19.2-10.3.0.20.jar
 FarmersRespite-1.19-2.0.jar                        thermal_locomotion-1.19.2-10.3.0.16.jar
 FastWorkbench-1.19.2-7.1.4.jar                     Tips-Forge-1.19.2-8.0.27.jar
 ferritecore-5.0.3-forge.jar                        twilightforest-1.19.2-4.2.1518-universal.jar
 handcrafted-forge-1.19.2-2.0.6.jar                 upgradedcore-1.19.2-4.1.0.1-release.jar
 Highlighter-1.19.1-1.1.4.jar                       upgradednetherite-1.19.2-5.1.0.9-release.jar
 Iceberg-1.19.2-forge-1.1.4.jar                     villagernames-1.19.2-5.2.jar
 illagersweararmor-1.2.7-1.19.2.jar                 VisualWorkbench-v4.2.4-1.19.2-Forge.jar
 invhud.forge.1.19-3.4.7.jar                        waystones-forge-1.19.2-11.4.1.jar
 ironchest-1.19.2-14.2.7.jar                        xptome-1.19-2.1.7.jar
[opc@mc-server ~]$

 

Posted

It might also be worth mentioning that the client runs this modpack with no issues, (minus the server-only mods: Clumps, Chunk Sending, Server Performance - Smooth Chunk Save, DEUF - Duplicate Entity UUID Fix, Let Me Despawn, Structure Essentials). 

Perhaps it's the version of Java I'm using? I installed Java 17.0 headless:

[opc@mc-server ~]$ java -version
java version "17.0.8" 2023-07-18 LTS
Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)

 

Posted
1 minute ago, TileEntity said:

Always add the new log

[opc@mc-server mc-forge-server]$ sh run.sh
[20:45:55] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.1.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853]
[20:45:55] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.8 by Oracle Corporation; OS Linux arch aarch64 version 5.15.0-105.125.6.2.1.el8uek.aarch64
[20:45:56] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/opc/mc-forge-server/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER
[20:45:56] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/opc/mc-forge-server/libraries/net/minecraftforge/fmlcore/1.19.2-43.1.0/fmlcore-1.19.2-43.1.0.jar is missing mods.toml file
[20:45:57] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/opc/mc-forge-server/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.1.0/javafmllanguage-1.19.2-43.1.0.jar is missing mods.toml file
[20:45:57] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/opc/mc-forge-server/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.1.0/lowcodelanguage-1.19.2-43.1.0.jar is missing mods.toml file
[20:45:57] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/opc/mc-forge-server/libraries/net/minecraftforge/mclanguage/1.19.2-43.1.0/mclanguage-1.19.2-43.1.0.jar is missing mods.toml file
[20:45:57] [main/INFO] [ne.mi.fm.lo.mo.JarInJarDependencyLocator/]: Found 6 dependencies adding them to mods collection
[20:45:57] [main/ERROR] [ne.mi.fm.lo.ModSorter/LOADING]: Missing mandatory dependencies: forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge, forge
[20:46:01] [main/INFO] [mixin/]: Compatibility level set to JAVA_17
[20:46:02] [main/INFO] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeserver' with arguments []
[20:46:02] [main/INFO] [Rubidium/]: Loaded configuration file for Rubidium: 30 options available, 0 override(s) found
[20:46:02] [main/WARN] [CanaryConfig/]: Option 'mixin.world.block_entity_ticking.world_border' requires 'mixin.util.world_border_listener=true' but found 'false'. Setting 'mixin.world.block_entity_ticking.world_border=false'.
[20:46:02] [main/INFO] [Canary/]: Loaded configuration file for Canary: 124 options available, 0 override(s) found
[20:46:02] [main/INFO] [co.cu.Cupboard/]: Loaded config for: structureessentials.json
[20:46:03] [main/WARN] [mixin/]: Error loading class: vazkii/quark/addons/oddities/inventory/BackpackMenu (java.lang.ClassNotFoundException: vazkii.quark.addons.oddities.inventory.BackpackMenu)
[20:46:03] [main/INFO] [memoryleakfix/]: [MemoryLeakFix] Will be applying 2 memory leak fixes!
[20:46:03] [main/INFO] [memoryleakfix/]: [MemoryLeakFix] Currently enabled memory leak fixes: [entityMemoriesLeak, biomeTemperatureLeak]
[20:46:07] [main/WARN] [mixin/]: Error loading class: net/minecraftforge/common/capabilities/ForgeCapabilities (java.lang.ClassNotFoundException: net.minecraftforge.common.capabilities.ForgeCapabilities)
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:32)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:106)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
	at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:29)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
	... 7 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:119)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219)
	at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
	at TRANSFORMER/[email protected]/net.minecraft.world.level.block.Blocks.<clinit>(Blocks.java:227)
	at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.carver.CarverDebugSettings.<clinit>(CarverDebugSettings.java:9)
	at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.carver.CarverConfiguration.m_224838_(CarverConfiguration.java:20)
	at MC-BOOTSTRAP/[email protected]/com.mojang.serialization.codecs.RecordCodecBuilder.mapCodec(RecordCodecBuilder.java:76)
	at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.carver.CarverConfiguration.<clinit>(CarverConfiguration.java:16)
	at TRANSFORMER/[email protected]/net.minecraft.world.level.levelgen.carver.WorldCarver.<clinit>(WorldCarver.java:32)
	at TRANSFORMER/[email protected]/net.minecraft.data.worldgen.Carvers.<clinit>(Carvers.java:21)
	at TRANSFORMER/[email protected]/net.minecraft.data.BuiltinRegistries.m_236012_(BuiltinRegistries.java:53)
	at TRANSFORMER/[email protected]/net.minecraft.data.BuiltinRegistries.m_236009_(BuiltinRegistries.java:87)
	at TRANSFORMER/[email protected]/net.minecraft.data.BuiltinRegistries.m_236004_(BuiltinRegistries.java:114)
	at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721)
	at TRANSFORMER/[email protected]/net.minecraft.data.BuiltinRegistries.<clinit>(BuiltinRegistries.java:113)
	at TRANSFORMER/[email protected]/net.minecraft.core.Registry.<clinit>(Registry.java:665)
	at TRANSFORMER/[email protected]/net.minecraft.server.Bootstrap.m_135870_(Bootstrap.java:43)
	at TRANSFORMER/[email protected]/net.minecraft.server.Main.main(Main.java:110)
	... 13 more
Caused by: org.spongepowered.asm.mixin.throwables.ClassMetadataNotFoundException: net.minecraftforge.common.capabilities.ForgeCapabilities
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transformField(MixinPreProcessorStandard.java:771)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transform(MixinPreProcessorStandard.java:741)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:310)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:280)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1288)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:292)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365)
	at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363)
	... 49 more

 

Posted

Wait ... there are client-side-only mods in your servers mods folder

 

Maybe these:
 

appleskin
Controlling
EnchantmentDescriptions
invhud
modnametooltip
MouseTweaks
notenoughanimations
rubidium_extras
rubidium
Searchables
Tips-Forge
VisualWorkbench

 

 

 

 

Try my Modpack

spacer.png

>>Link to Curseforge<<

Posted

It looks like something's trying to access a file from the Quark mod. I didn't include it in my pack, but also don't see it listed as a dep for any of the other mods.

[20:46:03] [main/WARN] [mixin/]: Error loading class: vazkii/quark/addons/oddities/inventory/BackpackMenu (java.lang.ClassNotFoundException: vazkii.quark.addons.oddities.inventory.BackpackMenu)

 

Posted
11 minutes ago, TileEntity said:

Wait ... there are client-side-only mods in your servers mods folder

 

Maybe these:
 

appleskin
Controlling
EnchantmentDescriptions
invhud
modnametooltip
MouseTweaks
notenoughanimations
rubidium_extras
rubidium
Searchables
Tips-Forge
VisualWorkbench

 

 

 

 

I don't believe that's the issue. Some of those ☝️ need to be on both server an client (appleskin, tips). For ones that didn't specify, I tried removing them but the number of missing "forge" deps is the same: https://pastebin.com/zj20xz5B

Posted

I appreciate your suggestions! Well, I tried removing all my mods. With no mods the server started up just fine. When I added back one mod (ad astra and its deps, listed below), I no longer see the "missing dependencies" warning, but it still crashes with a similar error.

Pastebin of crash log - https://pastebin.com/RUV9DjQa

Included mods:

ad_astra-forge-1.19.2-1.12.7.jar  
botarium-forge-1.19.2-1.8.2.jar   
resourcefulconfig-forge-1.19.2-1.0.20.jar
resourcefullib-forge-1.19.2-1.1.24.jar

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • that happens every time I enter a new dimension.
    • This is the last line before the crash: [ebwizardry]: Synchronising spell emitters for PixelTraveler But I have no idea what this means
    • What in particular? I barely used that mod this time around, and it's never been a problem in the past.
    • Im trying to build my mod using shade since i use the luaj library however i keep getting this error Reason: Task ':reobfJar' uses this output of task ':shadowJar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. So i try adding reobfJar.dependsOn shadowJar  Could not get unknown property 'reobfJar' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. my gradle file plugins { id 'eclipse' id 'idea' id 'maven-publish' id 'net.minecraftforge.gradle' version '[6.0,6.2)' id 'com.github.johnrengelman.shadow' version '7.1.2' id 'org.spongepowered.mixin' version '0.7.+' } apply plugin: 'net.minecraftforge.gradle' apply plugin: 'org.spongepowered.mixin' apply plugin: 'com.github.johnrengelman.shadow' version = mod_version group = mod_group_id base { archivesName = mod_id } // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. java.toolchain.languageVersion = JavaLanguageVersion.of(17) //jarJar.enable() println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" minecraft { mappings channel: mapping_channel, version: mapping_version copyIdeResources = true runs { configureEach { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' arg "-mixin.config=derp.mixin.json" mods { "${mod_id}" { source sourceSets.main } } } client { // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', mod_id } server { property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } gameTestServer { property 'forge.enabledGameTestNamespaces', mod_id } data { workingDirectory project.file('run-data') args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') } } } sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { flatDir { dirs './libs' } maven { url = "https://jitpack.io" } } configurations { shade implementation.extendsFrom shade } dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" implementation 'org.luaj:luaj-jse-3.0.2' implementation fg.deobf("com.github.Virtuoel:Pehkui:${pehkui_version}") annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' minecraftLibrary 'luaj:luaj-jse:3.0.2' shade 'luaj:luaj-jse:3.0.2' } // Example for how to get properties into the manifest for reading at runtime. tasks.named('jar', Jar).configure { manifest { attributes([ 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors, 'Specification-Version' : '1', // We are version 1 of ourselves 'Implementation-Title' : project.name, 'Implementation-Version' : project.jar.archiveVersion, 'Implementation-Vendor' : mod_authors, 'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"), "TweakClass" : "org.spongepowered.asm.launch.MixinTweaker", "TweakOrder" : 0, "MixinConfigs" : "derp.mixin.json" ]) } rename 'mixin.refmap.json', 'derp.mixin-refmap.json' } shadowJar { archiveClassifier = '' configurations = [project.configurations.shade] finalizedBy 'reobfShadowJar' } assemble.dependsOn shadowJar reobf { re shadowJar {} } publishing { publications { mavenJava(MavenPublication) { artifact jar } } repositories { maven { url "file://${project.projectDir}/mcmodsrepo" } } } my entire project:https://github.com/kevin051606/DERP-Mod/tree/Derp-1.0-1.20
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.