Jump to content

The essentials crash on server start up


chesaman12

Recommended Posts

I am currently trying to make a server for the essentials mod pack found here https://minecraft.curseforge.com/projects/the-essentials. I took out all mods that appeared to be client side, so betterfps, Fooddetails, IGW0mod, JEI and JEI addons, JourneyMap, Mousetweaks, Notenoughkeys, trashslot, waila and wawla. I took out the corresponding cfg files and have everything else. Here is the crash report I recieve:

---- Minecraft Crash Report ----

 

WARNING: coremods are present:

  CorePlugin (Fluxed Redstone-1.3.0.31.jar)

  RBLoadingPlugin (RealBench-1.2.0.jar)

  TransformerLoader (OpenComputers-MC1.8.9-1.6.0.4-rc.1.jar)

  LoadingPlugin (Bloodmoon-MC1.8.8-1.4.jar)

  FldLoadingPlugin (FastLeafDecay-1.8-1.6.jar)

  MovingWorldCoreMod (movingworld-MC1.8.9-V1.9-full.jar)

  IC2core (industrialcraft-2-2.3.249-ex18.jar)

  ThaumcraftLoader (Thaumcraft-1.8.9-5.2.4.jar)

  FMLPlugin (InventoryTweaks-1.60-40.jar)

  thaumicinfusion (ThaumicInfusion-1.8.9-4.88.jar)

  TweaksLoadingPlugin (CCTweaks-1.8.9-1.0.0.jar)

  LoadingPlugin (RandomThings-MC1.8.9-3.6.6.jar)

  EnderCorePlugin (EnderCore-1.8.9-0.3.0.14-beta.jar)

Contact their authors BEFORE contacting forge

 

// My bad.

 

Time: 8/24/16 11:04 PM

Description: Exception in server tick loop

 

net.minecraftforge.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/ItemMeshDefinition

at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:162)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:559)

at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:88)

at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:320)

at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:112)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/ItemMeshDefinition

at com.crashbox.rapidform.RapidForm.preInitBlockAndItems(RapidForm.java:144)

at com.crashbox.rapidform.RapidForm.preInit(RapidForm.java:77)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)

at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556)

... 5 more

Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.ItemMeshDefinition

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 33 more

Caused by: java.lang.NullPointerException

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.8.9

Operating System: Windows 10 (amd64) version 10.0

Java Version: 1.8.0_91, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 479037096 bytes (456 MB) / 1000341504 bytes (954 MB) up to 1897922560 bytes (1810 MB)

JVM Flags: 0 total;

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP 9.19 Powered by Forge 11.15.1.1890 121 mods loaded, 121 mods active

States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)

UCH FML{8.0.99.99} [Forge Mod Loader] (Forge.jar)

UCH Forge{11.15.1.1890} [Minecraft Forge] (Forge.jar)

UCH OpenComputers|Core{1.6.0.4-rc.1} [OpenComputers (Core)] (minecraft.jar)

UCH darkevilmac.movingworld.common.asm.coremod{} [MovingWorld CORE] (minecraft.jar)

UCH <CCTweaks ASM>{1.0.0} [<CCTweaks ASM>] (minecraft.jar)

UCH BuildCraft|Core{7.2.7} [buildCraft] (buildcraft-7.2.7.jar)

UCH BuildCraft|Energy{7.2.7} [bC Energy] (buildcraft-7.2.7.jar)

UCH ActuallyAdditions{1.8.9-r26} [Actually Additions] (ActuallyAdditions-1.8.9-r26.jar)

UCH adobeblocks{4.1.1.10} [Adobe Blocks] (AdobeBlocks-4.1.1.10.jar)

UCH adobeblocksvc{1.5} [Adobe Blocks 2 Version Checker] (AdobeBlocks-4.1.1.10.jar)

UCH advancedswords{1.1.1} [Advanced Swords] (advancedswords-1.1.1.jar)

UCH ac2{1.3.2 Beta} [Alchemy Craft 2] (alchemycraft2 v1.3.2.jar)

UCH MovingWorld{MC1.8.9-V1.9} [Moving World] (movingworld-MC1.8.9-V1.9-full.jar)

UCH ArchimedesShipsPlus{MC1.8.9-V1.9} [Archimedes' Ships Plus] (archimedesshipsplus-MC1.8.9-V1.9-full.jar)

UCH basemetals{1.8.0} [base Metals] (BaseMetals_1.8.9-1.8.0.jar)

UCH BetterAchievements{0.1.1} [better Achievements] (BetterAchievements-1.8.9-0.1.1.jar)

UCH betterbuilderswands{0.6.1} [better Builder's Wands] (BetterBuildersWands-0.6.1-1.8.9r105+18eaa0f.jar)

UCH BloodMagic{1.8.9-2.0.0-20} [blood Magic: Alchemical Wizardry] (BloodMagic-1.8.9-2.0.0-20.jar)

UCH Bloodmoon{1.2} [bloodmoon] (Bloodmoon-MC1.8.8-1.4.jar)

UCH bookshelfapi{2.3.7} [bookshelf] (Bookshelf-API-1.8.9-2.3.7.jar)

UCH Baubles{1.1.3.0} [baubles] (Baubles-1.8.9-1.1.3.0.jar)

UCH Thaumcraft{5.2.4} [Thaumcraft] (Thaumcraft-1.8.9-5.2.4.jar)

UCH Botania{r1.8-299} [botania] (Botania-unofficial.r1.8-299.jar)

UCH BuildCraft|Silicon{7.2.7} [bC Silicon] (buildcraft-7.2.7.jar)

UCH BuildCraft|Transport{7.2.7} [bC Transport] (buildcraft-7.2.7.jar)

UCH BuildCraft|Builders{7.2.7} [bC Builders] (buildcraft-7.2.7.jar)

UCH BuildCraft|Robotics{7.2.7} [bC Robotics] (buildcraft-7.2.7.jar)

UCH BuildCraft|Factory{7.2.7} [bC Factory] (buildcraft-7.2.7.jar)

UCH BuildersGuides{1.8.9-1.0.0} [builder's Guides] (buildersguides-1.8.9-1.0.0.jar)

UCH ComputerCraft{1.79} [ComputerCraft] (ComputerCraft1.79.jar)

UCH CCTweaks{1.0.0} [CCTweaks] (CCTweaks-1.8.9-1.0.0.jar)

UCH Chameleon{1.8.9-1.1.2} [Chameleon] (Chameleon-1.8.9-1.1.2.jar)

UCH ChemicalElementsOres{1.0.0} [ChemicalElementsOres] (ChemicalOresB.zip)

UCH chisel{@VERSION@} [Chisel] (Chisel-MC1.8.9-0.0.2.6.jar)

UCH mcmultipart{1.0.9} [MCMultiPart] (MCMultiPart-1.0.9-universal.jar)

UCH chiselsandbits{8.9} [Chisels & Bits] (chiselsandbits-8.9.jar)

UCH compasscoords{1.8.9-0.2.6} [Compass Co-ords] (CompassCoords-1.8.9-0.2.6.jar)

UCH ModName{1.0.0} [ModName] (CraftableGlowstone[1.8.9].jar)

UCH MineTweaker3{3.0.8} [MineTweaker 3] (CraftTweaker-1.8.9-3.0.8.jar)

UCH corundum{1.0} [Corundum Ore Mod] (Curundum-1.1(1.8.9).jar)

UCH poweradvantage{1.5.5} [Power Advantage] (PowerAdvantage-1.5.5.jar)

UCH electricadvantage{1.1.2} [Electric Advantage] (ElectricAdvantage-1.1.2.jar)

UCH endores{1.0-a.010} [End Ores] (End Ores-1.0-a.010.jar)

UCH endercore{1.8.9-0.3.0.14-beta} [EnderCore] (EnderCore-1.8.9-0.3.0.14-beta.jar)

UCH ShetiPhianCore{3.1.1} [shetiPhian-Core] (ShetiPhianCore-1.8.9-3.1.1.jar)

UCH EnderTanks{1.2.2} [EnderTanks] (EnderTanks-1.8.9-1.2.2.jar)

UCH enderutilities{0.5.6} [Ender Utilities] (enderutilities-1.8.9-0.5.6.jar)

UCH EverythingBlocks{1.1.4-1.8.9} [Everything Blocks] (EverythingBlocks-1.1.4-1.8.9.jar)

UCH ExtraBitManipulation{1.8.9-2.1.1} [Extra Bit Manipulation] (ExtraBitManipulation-1.8.9-2.1.1.jar)

UCH ExtraFood{0.7.51} [Extra Food] (ExtraFood-1.8.9-0.7.51.jar)

UCH ezstorage{1.0} [EZ Storage] (ezstorage-1.8.9-1.2.6.jar)

UCH fastleafdecay{1.6} [Fast Leaf Decay] (FastLeafDecay-1.8-1.6.jar)

UCH flatcoloredblocks{mc1.8.9-v1.8} [Flat Colored Blocks] (flatcoloredblocks-mc1.8.9-v1.8.jar)

UCH IC2{2.3.249-ex18} [industrialCraft 2] (industrialcraft-2-2.3.249-ex18.jar)

UCH reborncore{1.6.0.58} [RebornCore] (RebornCore-1.8.9-1.6.0.58-universal.jar)

UCH fluxedredstone{1.3.0.31} [FluxedRedstone] (Fluxed Redstone-1.3.0.31.jar)

UCH fluxedsolars{$GRADLEVERSION} [Fluxed Solars] (fluxedsolars-1.9.jar)

UCH fe{1.1} [Food Expansion] (FoodExpansion1.1-mc1.8.9.jar)

UCH foragecraft{1.3} [ForageCraft] (ForageCraft-1.3.jar)

UCH FTBL{2.0.2} [FTBLib] (FTBLib-1.8.9-2.0.2.jar)

UCH FTBU{2.0.2} [FTBUtilities] (FTBUtilities-1.8.9-2.0.2.jar)

UCH furnus{1.75} [Furnus] (Furnus-1.8.9-1.75.jar)

UCH geoactivity{2.2.3} [GeoActivity] (geoactivity-2.2.3.jar)

UCH techreborn{0.8.2.318} [TechReborn] (TechReborn-1.8.9-0.8.2.318-universal.jar)

UCH hammerz{1.8.9-0.1.5.18} [Hammerz] (Hammerz-1.8.9-0.1.5.18.jar)

UCH Harvest{1.8.9-1.0.0-2} [Harvest] (Harvest-1.8.9-1.0.0-2.jar)

UCH k4lib{1.8.9-1.0.18} [K4Lib] (k4lib-1.8.9-1.0.18-universal.jar)

UCH HydCraft{1.8.9-3.1.82} [Hydraulicraft] (HydCraft-1.8.9-3.1.82-universal.jar)

UCH Ice{1.1.5} [in Case of Emergency] (Ice-1.1.5.jar)

UCH intangible{0.0.25} [intangible] (intangible-1.8.9-0.0.25.jar)

UCH InventoryPets{1.4.5} [inventory Pets] (inventorypets-1.8.9-1.4.5.jar)

UCH inventorytweaks{1.60-40-e06e29a} [inventory Tweaks] (InventoryTweaks-1.60-40.jar)

UCH ironbackpacks{1.8.9-2.0.5} [iron Backpacks] (IronBackpacks-1.8.9-2.0.5.jar)

UCH IronChest{6.0.125.770} [iron Chest] (ironchest-1.8.9-6.0.125.770.jar)

UCH knightperipherals{1.8.9-2.3.1} [KnightPeripherals] (KnightPeripherals-1.8.9-2.3.1.jar)

UCH lteleporters{1.0.0} [Lemon's Simple Teleporters] (LemonsSimpleTeleporters-1.0.1.jar)

UCH lightningcraft{2.1.5} [LightningCraft] (lightningcraft-2.1.5-[1.8.9].jar)

UCH LunatriusCore{1.1.2.32} [LunatriusCore] (LunatriusCore-1.8.9-1.1.2.32-universal.jar)

UCH machinemod{1.8.9-1.1-Pre-ALPHA-Build-209} [TechStack's Heavy Machinery Mod] (MachineMod-1.8.9-1.1-Pre-ALPHA-Build-209.jar)

UCH mantle{1.8.9-0.9.2.jenkins102} [Mantle] (Mantle-1.8.9-0.9.2.jar)

UCH testdummy{1.0} [MmmMmmMmmMmm] (MmmMmmMmmMmm-1.9b.jar)

UCH moarsigns{2.1.0} [MoarSigns] (MoarSigns-1.8.9-2.1.0.jar)

UCH morearmor{1.8.9-1.2.0} [More Armor] (morearmor-1.8.9-1.2.0.jar)

UCH Morpheus{1.8.9-2.0.58} [Morpheus] (Morpheus-1.8.9-2.0.58.jar)

UCH tconstruct{1.8.9-2.2.1.jenkins1005} [Tinkers' Construct] (TConstruct-1.8.9-2.2.1.jar)

UCH MysticalCrops{1.1} [Mystical Crops] (MysticalCrops-1.3.2.jar)

UCH neotech{2.4.4} [NeoTech] (NeoTech-1.8.9-2.4.4.jar)

UCH NoSlime{0.1} [slimeless Flatworlds] (NoSlime-1.8.9-1.1.jar)

UCH notenoughwands{1.3.0} [Not Enough Wands] (notenoughwands-1.8.9-1.3.0.jar)

UCH OpenComputers{1.6.0.4-rc.1} [OpenComputers] (OpenComputers-MC1.8.9-1.6.0.4-rc.1.jar)

UCH fodc{1.7.2} [Ore Dictionary Converter] (OreDictionaryConverter-1.7.2.jar)

UCH pandp{0.1.2} [Parcels and Packages] (Parcels_And_Packages-0.1.2_HOTFIX.jar)

UCH PneumaticCraft{1.13.8-12} [PneumaticCraft] (PneumaticCraft-1.8.9-1.13.8-12-universal.jar)

UCH portablecrafting{1.8.9-1.1} [Portable Crafting] (PortableCrafting-1.8.9-1.1.jar)

UCH practicalities{2.0.0-b6} [Practicalities] (practicalities-1.8.9-2.0.0-b6.jar)

UCH progressiveautomation{1.6.44} [Progressive Automation] (ProgressiveAutomation-1.8.9-1.6.44.jar)

UCH Psi{beta-23} [Psi] (Psi-beta-23.jar)

UCH quantumflux{2.0.1} [QuantumFlux] (quantumflux-1.8.9-2.0.1.jar)

UCH randomthings{3.6.6} [Random Things] (RandomThings-MC1.8.9-3.6.6.jar)

UCE rapidform{1.1} [RapidForm] (rapidform-1.8.9-1.1.jar)

UCH rftools{4.23beta40} [RFTools] (rftools-1.8.9-4.23beta40.jar)

UCH rftoolsdim{4.22beta32} [RFTools Dimensions] (rftoolsdim-1.8.9-4.22beta32.jar)

UCH Roguelike{1.5.0} [Roguelike Dungeons] (RoguelikeDungeons-1.8.9-1.5.0.jar)

UCH routerreborn{1.8.9-3.0.5.14b_universal} [Router Reborn] (RouterReborn-1.8.9-3.0.5.14b_universal.jar)

UCH Schematica{1.7.7.143} [schematica] (Schematica-1.8.9-1.7.7.143-universal.jar)

UCH sem{1.4.5.3} [steam Engines Mod] (sem-mc1_8_9-1.4.5.3.jar)

UCH semmagie{1.4.5.3} [steam Engines Mod - Magie Addon] (sem-mc1_8_9-1.4.5.3.jar)

UCH SilentGems{1.3.13} [silent's Gems] (SilentsGems-1.8.9-1.3.13-111.jar)

UCH SimilsaxTranstructors{1.8.8.16} [similsax Transtructors] (SimilsaxTranstructors-1.8.8.16.jar)

UCH simplemachines{0.1} [simple Machines] (simplemachines-1.8.9-0.1.0.jar)

UCH steamadvantage{1.5.3} [steam Advantage] (SteamAdvantage-1.5.3.jar)

UCH StorageDrawers{1.8.9-2.6.4} [storage Drawers] (StorageDrawers-1.8.9-2.6.4.jar)

UCH substratum{1.1.0.1} [substratum] (Substratum-1.8.9-1.1.0.1.jar)

UCH thaumicinfusion{4.86} [Thaumic Infusion] (ThaumicInfusion-1.8.9-4.88.jar)

UCH thelittlethings{1.2.4} [The Little Things] (The Little Things-v.1.2.4-mc1.8.9.jar)

UCH ToolsOnTheGo{1.8.9} [Tools on the Go] (ToolsOnTheGo-1.8.9.1.2.1.jar)

UCE usefuldns{2.2.2} [usefulDNS] (usefuldns-1.8.9-2.2.2.jar)

UCH VeinMiner{0.31.4_build.unknown} [Vein Miner] (VeinMiner-1.8.9_0.31.4.unknown.jar)

UCH VeinMinerModSupport{0.31.4_build.unknown} [Mod Support] (VeinMiner-1.8.9_0.31.4.unknown.jar)

UCH wuestUtilities{1.0} [Wuest Utilities] (wuestUtilities-1.8.3.jar)

Loaded coremods (and transformers):

CorePlugin (Fluxed Redstone-1.3.0.31.jar)

 

RBLoadingPlugin (RealBench-1.2.0.jar)

  pw.prok.realbench.asm.RBTransformer

TransformerLoader (OpenComputers-MC1.8.9-1.6.0.4-rc.1.jar)

  li.cil.oc.common.asm.ClassTransformer

LoadingPlugin (Bloodmoon-MC1.8.8-1.4.jar)

  lumien.bloodmoon.asm.ClassTransformer

FldLoadingPlugin (FastLeafDecay-1.8-1.6.jar)

  com.olafski.fastleafdecay.FldTransformer

MovingWorldCoreMod (movingworld-MC1.8.9-V1.9-full.jar)

 

IC2core (industrialcraft-2-2.3.249-ex18.jar)

 

ThaumcraftLoader (Thaumcraft-1.8.9-5.2.4.jar)

 

FMLPlugin (InventoryTweaks-1.60-40.jar)

  invtweaks.forge.asm.ContainerTransformer

thaumicinfusion (ThaumicInfusion-1.8.9-4.88.jar)

  drunkmafia.thaumicinfusion.common.asm.BlockTransformer

  drunkmafia.thaumicinfusion.common.asm.WorldTransformer

TweaksLoadingPlugin (CCTweaks-1.8.9-1.0.0.jar)

  org.squiddev.cctweaks.core.asm.ASMTransformer

LoadingPlugin (RandomThings-MC1.8.9-3.6.6.jar)

  lumien.randomthings.asm.ClassTransformer

EnderCorePlugin (EnderCore-1.8.9-0.3.0.14-beta.jar)

  com.enderio.core.common.transform.EnderCoreTransformer

Pulsar/tconstruct loaded Pulses:

- TinkerCommons (Enabled/Forced)

- TinkerWorld (Enabled/Not Forced)

- TinkerTools (Enabled/Not Forced)

- TinkerSmeltery (Enabled/Not Forced)

- TinkerGadgets (Enabled/Not Forced)

- TinkerOredict (Enabled/Forced)

- TinkerIntegration (Enabled/Forced)

- TinkerFluids (Enabled/Forced)

- TinkerMaterials (Enabled/Forced)

- chiselsandbitsIntegration (Enabled/Not Forced)

- TinkerDebug (Enabled/Not Forced)

 

Profiler Position: N/A (disabled)

Is Modded: Definitely; Server brand changed to 'fml,forge'

Type: Dedicated Server (map_server.txt)

 

Any help on getting this server up and running would be great! Thank you.

Link to comment
Share on other sites

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • rp.crazyheal.xyz mods  
    • I'm developing a dimension, but it's kinda resource intensive so some times during player teleporting it lags behind making the player phase down into the void, so im trying to implement some kind of pregeneration to force the game loading a small set of chunks in the are the player will teleport to. Some of the things i've tried like using ServerLevel and ServerChunkCache methods like getChunk() dont actually trigger chunk generation if the chunk isn't already on persistent storage (already generated) or placing tickets, but that doesn't work either. Ideally i should be able to check when the task has ended too. I've peeked around some pregen engines, but they're too complex for my current understanding of the system of which I have just a basic understanding (how ServerLevel ,ServerChunkCache  and ChunkMap work) of. Any tips or other classes I should be looking into to understand how to do this correctly?
    • https://mclo.gs/4UC49Ao
    • Way back in the Forge 1.17 days, work started for adding JPMS (Java Platform Module Support) to ModLauncher and ForgeModLoader. This has been used internally by Forge and some libraries for a while now, but mods (those with mods.toml specifically) have not been able to take advantage of it. As of Forge 1.21.1 and 1.21.3, this is now possible!   What is JPMS and what does it mean for modders? JPMS is the Java Platform Module System, introduced in Java 9. It allows you to define modules, which are collections of packages and resources that can be exported or hidden from other modules. This allows for much more fine-tuned control over visibility, cleaner syntax for service declarations and support for sealed types across packages. For example, you might have a mod with a module called `com.example.mod` that exports `com.example.mod.api` and `com.example.mod.impl` to other mods, but hides `com.example.mod.internal` from them. This would allow you to have a clean API for other mods to use, while keeping your internal implementation details hidden from IDE hints, helping prevent accidental usage of internals that might break without prior notice. This is particularly useful if you'd like to use public records with module-private constructors or partially module-private record components, as you can create a sealed interface that only your record implements, having the interface be exported and the record hidden. It's also nice for declaring and using services, as you'll get compile-time errors from the Java compiler for typos and the like, rather than deferring to runtime errors. In more advanced cases, you can also have public methods that are only accessible to specific other modules -- handy if you want internal interactions between multiple of your own mods.   How do I bypass it? We understand there may be drama in implementing a system that prevents mods from accessing each other's internals when necessary (like when a mod is abandoned or you need to fix a compat issue) -- after all, we are already modding a game that doesn't have explicit support for Java mods yet. We have already thought of this and are offering APIs from day one to selectively bypass module restrictions. Let me be clear: Forge mods are not required to use JPMS. If you don't want to use it, you don't have to. The default behaviour is to have fully open, fully exported automatic modules. In Java, you can use the `Add-Opens` and `Add-Exports` manifest attributes to selectively bypass module restrictions of other mods at launch time, and we've added explicit support for these when loading your Forge mods. At compile-time, you can use existing solutions such as the extra-java-module-info Gradle plugin to deal with non-modular dependencies and add extra opens and exports to other modules. Here's an example on how to make the internal package `com.example.examplemod.internal` open to your mod in your build.gradle: tasks.named('jar', Jar) { manifest { attributes([ 'Add-Opens' : 'com.example.examplemod/com.example.examplemod.internal' 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors // (...) ]) } } With the above in your mod's jar manifest, you can now reflectively access the classes inside that internal package. Multiple entries are separated with a space, as per Java's official spec. You can also use Add-Exports to directly call without reflection, however you'd need to use the Gradle plugin mentioned earlier to be able to compile. The syntax for Add-Exports is the same as Add-Opens, and instructions for the compile-time step with the Gradle plugin are detailed later in this post. Remember to prefer the opens and exports keywords inside module-info.java for sources you control. The Add-Opens/Add-Exports attributes are only intended for forcing open other mods.   What else is new with module support? Previously, the runtime module name was always forced to the first mod ID in your `mods.toml` file and all packages were forced fully open and exported. Module names are now distinguished from mod IDs, meaning the module name in your module-info.java can be different from the mod ID in your `mods.toml`. This allows you to have a more descriptive module name that doesn't have to be the same as your mod ID, however we strongly recommend including your mod ID as part of your module name to aid troubleshooting. The `Automatic-Module-Name` manifest attribute is now also honoured, allowing you to specify a module name for your mod without needing to create a `module-info.java` file. This is particularly useful for mods that don't care about JPMS features but want to have a more descriptive module name and easier integration with other mods that do use JPMS.   How do I use it? The first step is to create a `module-info.java` file in your mod's source directory. This file should be in the same package as your main mod class, and should look something like this: open module com.example.examplemod { requires net.minecraftforge.eventbus; requires net.minecraftforge.fmlcore; requires net.minecraftforge.forge; requires net.minecraftforge.javafmlmod; requires net.minecraftforge.mergetool.api; requires org.slf4j; requires logging; } For now, we're leaving the whole module open to reflection, which is a good starting point. When we know we want to close something off, we can remove the open modifier from the module and open or export individual packages instead. Remember that you need to be open to Forge (module name net.minecraftforge.forge), otherwise it can't call your mod's constructor. Next is fixing modules in Gradle. While Forge and Java support modules properly, Gradle does not put automatic modules on the module path by default, meaning that the logging module (from com.mojang:logging) is not found. To fix this, add the Gradle plugin and add a compile-time module definition for that Mojang library: plugins { // (...) id 'org.gradlex.extra-java-module-info' version "1.9" } // (...) extraJavaModuleInfo { failOnMissingModuleInfo = false automaticModule("com.mojang:logging", "logging") } The automatic module override specified in your build.gradle should match the runtime one to avoid errors. You can do the same for any library or mod dependency that is missing either a module-info or explicit Automatic-Module-Name, however be aware that you may need to update your mod once said library adds one. That's all you need to get started with module support in your mods. You can learn more about modules and how to use them at dev.java.
    • Faire la mise à jour grâce à ce lien m'a aider personnellement, merci à @Paint_Ninja. https://www.amd.com/en/support 
  • Topics

×
×
  • Create New...

Important Information

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