Jump to content

Recommended Posts

Posted

I keep trying to run forge, but I keep getting the error of " It looks like you are using an unsupported modified version of the game."

 

 

---- Minecraft Crash Report ----

WARNING: coremods are present:
  AppleCore (AppleCore-mc1.12.2-3.1.4.jar)
  IELoadingPlugin (ImmersiveEngineering-core-0.12-88.jar)
  TransformerLoader (OpenComputers-MC1.12.2-1.7.3.146.jar)
  llibrary (llibrary-core-1.0.8-1.12.2.jar)
  CTMCorePlugin (CTM-MC1.12.2-0.3.3.22.jar)
Contact their authors BEFORE contacting forge

// Don't be sad, have a hug! ❤️

Time: 1/20/19 4:17 PM
Description: Initializing game

java.lang.NoClassDefFoundError: com/raoulvdberge/refinedstorage/api/network/node/INetworkNode
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:526)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135)
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:466)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:377)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.ClassNotFoundException: com.raoulvdberge.refinedstorage.api.network.node.INetworkNode
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 38 more
Caused by: java.lang.NullPointerException


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

-- Head --
Thread: Client thread
Stacktrace:
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:526)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:218)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:196)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135)
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:593)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:466)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:377)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 428677368 bytes (408 MB) / 1073741824 bytes (1024 MB) up to 2147483648 bytes (2048 MB)
    JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.42 Powered by Forge 14.23.5.2768 63 mods loaded, 63 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

    | State | ID                        | Version                  | Source                                        | Signature                                |
    |:----- |:------------------------- |:------------------------ |:--------------------------------------------- |:---------------------------------------- |
    | UC    | minecraft                 | 1.12.2                   | minecraft.jar                                 | None                                     |
    | UC    | mcp                       | 9.42                     | minecraft.jar                                 | None                                     |
    | UC    | FML                       | 8.0.99.99                | forge-1.12.2-14.23.5.2768.jar                 | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | UC    | forge                     | 14.23.5.2768             | forge-1.12.2-14.23.5.2768.jar                 | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | UC    | opencomputers|core        | 1.7.3.146                | minecraft.jar                                 | None                                     |
    | UC    | fastbench                 | 1.6.0                    | FastWorkbench-1.12.2-1.6.0.jar                | None                                     |
    | UC    | actuallyadditions         | 1.12.2-r144              | ActuallyAdditions-1.12.2-r144.jar             | None                                     |
    | UC    | ctm                       | MC1.12.2-0.3.3.22        | CTM-MC1.12.2-0.3.3.22.jar                     | None                                     |
    | UC    | appliedenergistics2       | rv6-stable-6             | appliedenergistics2-rv6-stable-6.jar          | dfa4d3ac143316c6f32aa1a1beda1e34d42132e5 |
    | UC    | baubles                   | 1.5.2                    | Baubles-1.12-1.5.2.jar                        | None                                     |
    | UC    | mantle                    | 1.12-1.3.3.39            | Mantle-1.12-1.3.3.39.jar                      | None                                     |
    | UC    | chisel                    | MC1.12.2-0.2.1.35        | Chisel-MC1.12.2-0.2.1.35.jar                  | None                                     |
    | UC    | jei                       | 4.13.1.225               | jei_1.12.2-4.13.1.225.jar                     | None                                     |
    | UC    | tconstruct                | 1.12.2-2.12.0.115        | TConstruct-1.12.2-2.12.0.115.jar              | None                                     |
    | UC    | p455w0rdslib              | 2.0.36                   | p455w0rdslib-1.12.2-2.0.36.jar                | None                                     |
    | UC    | ae2wtlib                  | 1.0.6                    | AE2WTLib-1.12.2-1.0.6.jar                     | None                                     |
    | UC    | applecore                 | 3.1.4                    | AppleCore-mc1.12.2-3.1.4.jar                  | None                                     |
    | UC    | appleskin                 | 1.0.9                    | AppleSkin-mc1.12-1.0.9.jar                    | None                                     |
    | UC    | biomesoplenty             | 7.0.1.2419               | BiomesOPlenty-1.12.2-7.0.1.2419-universal.jar | None                                     |
    | UC    | chiselsandbits            | 14.29                    | chiselsandbits-14.29.jar                      | None                                     |
    | UC    | cyclopscore               | 1.0.1                    | CyclopsCore-1.12.2-1.0.1.jar                  | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |
    | UC    | commoncapabilities        | 2.0.0                    | CommonCapabilities-1.12.2-2.0.0.jar           | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |
    | UC    | conarm                    | 1.2.3                    | conarm-1.12.2-1.2.3.jar                       | 5d5b8aee896a4f5ea3f3114784742662a67ad32f |
    | UC    | cucumber                  | 1.1.3                    | Cucumber-1.12.2-1.1.3.jar                     | None                                     |
    | UC    | valkyrielib               | 1.12.2-2.0.19.1          | valkyrielib-1.12.2-2.0.19.1.jar               | None                                     |
    | UC    | environmentaltech         | 1.12.2-2.0.19.1          | environmentaltech-1.12.2-2.0.19.1.jar         | None                                     |
    | UC    | etlunar                   | 1.12.2-2.0.19.1          | etlunar-1.12.2-2.0.19.1.jar                   | None                                     |
    | UC    | extrautils2               | 1.0                      | extrautils2-1.12-1.9.8.jar                    | None                                     |
    | UC    | fastleafdecay             | v14                      | FastLeafDecay-v14.jar                         | None                                     |
    | UC    | waila                     | 1.8.26                   | Hwyla-1.8.26-B41_1.12.2.jar                   | None                                     |
    | UC    | immersiveengineering      | 0.12-88                  | ImmersiveEngineering-0.12-88.jar              | 4cb49fcde3b43048c9889e0a3d083225da926334 |
    | UC    | immersivepetroleum        | 1.1.9                    | immersivepetroleum-1.12.2-1.1.9.jar           | None                                     |
    | UC    | integrateddynamics        | 1.0.1                    | IntegratedDynamics-1.12.2-1.0.1.jar           | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |
    | UC    | integratedcrafting        | 1.0.0                    | IntegratedCrafting-1.12.2-1.0.0.jar           | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |
    | UC    | integrateddynamicscompat  | 1.0.0                    | IntegratedDynamics-1.12.2-1.0.1.jar           | None                                     |
    | UC    | integratedrest            | 1.1.0                    | IntegratedREST-1.12.2-1.1.0.jar               | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |
    | UC    | integratedterminals       | 1.0.1                    | IntegratedTerminals-1.12.2-1.0.1.jar          | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |
    | UC    | integratedterminalscompat | 1.0.0                    | IntegratedTerminals-1.12.2-1.0.1.jar          | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |
    | UC    | integratedtunnels         | 1.6.1                    | IntegratedTunnels-1.12.2-1.6.1.jar            | bd0353b3e8a2810d60dd584e256e364bc3bedd44 |
    | UC    | integratedtunnelscompat   | 1.0.0                    | IntegratedTunnels-1.12.2-1.6.1.jar            | None                                     |
    | UC    | harvestcraft              | 1.12.2zb                 | Pam's+HarvestCraft+1.12.2zb.jar               | None                                     |
    | UC    | jehc                      | 1.12.2                   | JEHC-1.12.2-1.6.2.0.jar                       | None                                     |
    | UC    | journeymap                | 1.12.2-5.5.3             | journeymap-1.12.2-5.5.3.jar                   | None                                     |
    | UC    | jeresources               | 0.8.5.27                 | JustEnoughResources-1.12.2-0.8.5.27.jar       | None                                     |
    | UC    | lootbags                  | 2.5.7                    | LootBags-1.12.2-2.5.7.jar                     | None                                     |
    | UC    | mekanism                  | 1.12.2-9.4.13.349        | Mekanism-1.12.2-9.4.13.349.jar                | None                                     |
    | UC    | mekanismgenerators        | 9.4.11                   | MekanismGenerators-1.12.2-9.4.13.349.jar      | None                                     |
    | UC    | mekanismtools             | 9.4.11                   | MekanismTools-1.12.2-9.4.13.349.jar           | None                                     |
    | UC    | mysticalagriculture       | 1.7.1                    | MysticalAgriculture-1.12.2-1.7.1.jar          | None                                     |
    | UC    | naturescompass            | 1.5.1                    | NaturesCompass-1.12.2-1.5.1.jar               | None                                     |
    | UC    | oreexcavation             | 1.4.133                  | OreExcavation-1.4.133.jar                     | None                                     |
    | UC    | oeintegration             | 2.3.4                    | oeintegration-2.3.4.jar                       | None                                     |
    | UC    | opencomputers             | 1.7.3.146                | OpenComputers-MC1.12.2-1.7.3.146.jar          | None                                     |
    | UC    | plustic                   | 6.5.4.2                  | plustic-6.5.4.2.jar                           | None                                     |
    | UC    | reborncore                | 3.13.2.411               | RebornCore-1.12.2-3.13.2.411-universal.jar    | 8727a3141c8ec7f173b87aa78b9b9807867c4e6b |
    | U     | rebornstorage             | 1.0.0                    | RebornStorage-1.12.2-3.3.2.79.jar             | None                                     |
    | U     | tinkertoolleveling        | 1.12.2-1.1.0.DEV.b23e769 | TinkerToolLeveling-1.12.2-1.1.0.jar           | None                                     |
    | U     | tlsywen                   | 1.0                      | tlsywen-1.1.jar                               | None                                     |
    | U     | torchmaster               | 1.7.1.74                 | torchmaster_1.12.2-1.7.1.74.jar               | None                                     |
    | U     | universalmodifiers        | 1.12.2-1.0.16.1          | valkyrielib-1.12.2-2.0.19.1.jar               | None                                     |
    | U     | wct                       | 3.11.88                  | WirelessCraftingTerminal-1.12.2-3.11.88.jar   | None                                     |
    | U     | llibrary                  | 1.7.15                   | llibrary-1.7.15-1.12.2.jar                    | None                                     |
    | U     | jurassicraft              | 2.1.20                   | JurassiCraft-1.12.2-2.1.20.jar                | None                                     |

    Loaded coremods (and transformers): 
AppleCore (AppleCore-mc1.12.2-3.1.4.jar)
  squeek.applecore.asm.TransformerModuleHandler
IELoadingPlugin (ImmersiveEngineering-core-0.12-88.jar)
  blusunrize.immersiveengineering.common.asm.IEClassTransformer
TransformerLoader (OpenComputers-MC1.12.2-1.7.3.146.jar)
  li.cil.oc.common.asm.ClassTransformer
llibrary (llibrary-core-1.0.8-1.12.2.jar)
  net.ilexiconn.llibrary.server.core.plugin.LLibraryTransformer
  net.ilexiconn.llibrary.server.core.patcher.LLibraryRuntimePatcher
CTMCorePlugin (CTM-MC1.12.2-0.3.3.22.jar)
  team.chisel.ctm.client.asm.CTMTransformer
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 416.34' Renderer: 'GeForce GTX 1050 Ti/PCIe/SSE2'
    AE2 Version: stable rv6-stable-6 for Forge 14.23.5.2768
    Pulsar/tconstruct loaded Pulses: 
        - TinkerCommons (Enabled/Forced)
        - TinkerWorld (Enabled/Not Forced)
        - TinkerTools (Enabled/Not Forced)
        - TinkerHarvestTools (Enabled/Forced)
        - TinkerMeleeWeapons (Enabled/Forced)
        - TinkerRangedWeapons (Enabled/Forced)
        - TinkerModifiers (Enabled/Forced)
        - TinkerSmeltery (Enabled/Not Forced)
        - TinkerGadgets (Enabled/Not Forced)
        - TinkerOredict (Enabled/Forced)
        - TinkerIntegration (Enabled/Forced)
        - TinkerFluids (Enabled/Forced)
        - TinkerMaterials (Enabled/Forced)
        - TinkerModelRegister (Enabled/Forced)
        - chiselIntegration (Enabled/Not Forced)
        - chiselsandbitsIntegration (Enabled/Not Forced)
        - wailaIntegration (Enabled/Not Forced)

    Launched Version: 1.12.2-forge1.12.2-14.23.5.2768
    LWJGL: 2.9.4
    OpenGL: GeForce GTX 1050 Ti/PCIe/SSE2 GL version 4.6.0 NVIDIA 416.34, NVIDIA Corporation
    GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: 
    Current Language: English (US)
    Profiler Position: N/A (d

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

    • just rewatched the tutorial and my code is exactly the same as kaupenjoe's.  the item is added into the game but like i said to start it doesnt have a texture or a proper name for whatever reason.
    • yes the name is en_us.json and it is in resources -> assests -> testmod -> lang folders.  i have checked my code and am pretty confident that the code itself is correct.  i even tried loading the project in eclipse and it has the same problems, I think i will just rewatch the whole tutorial and will give an update on the situation.
    • same error, I also tried removing Valkyrian skies as well because I noticed it coming up a lot in the debug log errors
    • Hey man,    i have only been modding Minecraft for a few days but maybe I can help you. First of all make sure to follow every step of Kaupenjoe's tutorial, I found it to been very helpful and complete. The game uses the raw translation key for the item (in your case "item.testmod.alexandrite") if it can't find the correct lang file. Make sure it's name is "en_us.json" and it is saved under "ressources" -> "assets" -> "testmod".
    • whenever I try to get this item to render into the game it appears with the not texture purple and black squares and calls itself by the lang translation file path instead of the name i gave it.   { "item.testmod.alexandrite": "Alexandrite" } this is the lang json file package net.Hurst.testmod.item; import net.Hurst.testmod.TestMod; import net.minecraft.world.item.Item; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModItems { public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, TestMod.MOD_ID); public static final RegistryObject<Item> ALEXANDRITE = ITEMS.register("alexandrite", () -> new Item(new Item.Properties())); public static void register(IEventBus eventBus){ ITEMS.register(eventBus); } } this is my ModItems.java file package net.Hurst.testmod; import com.mojang.logging.LogUtils; import net.Hurst.testmod.item.ModItems; import net.minecraft.world.item.CreativeModeTabs; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.BuildCreativeModeTabContentsEvent; import net.minecraftforge.event.server.ServerStartingEvent; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.ModLoadingContext; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.config.ModConfig; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import org.slf4j.Logger; // The value here should match an entry in the META-INF/mods.toml file @Mod(TestMod.MOD_ID) public class TestMod { public static final String MOD_ID = "testmod"; private static final Logger LOGGER = LogUtils.getLogger(); public TestMod() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); modEventBus.addListener(this::commonSetup); ModItems.register(modEventBus); MinecraftForge.EVENT_BUS.register(this); modEventBus.addListener(this::addCreative); ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, Config.SPEC); } private void commonSetup(final FMLCommonSetupEvent event) { } // Add the example block item to the building blocks tab private void addCreative(BuildCreativeModeTabContentsEvent event) { if(event.getTabKey() == CreativeModeTabs.INGREDIENTS){ event.accept(ModItems.ALEXANDRITE); } } // You can use SubscribeEvent and let the Event Bus discover methods to call @SubscribeEvent public void onServerStarting(ServerStartingEvent event) { } // You can use EventBusSubscriber to automatically register all static methods in the class annotated with @SubscribeEvent @Mod.EventBusSubscriber(modid = MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) public static class ClientModEvents { @SubscribeEvent public static void onClientSetup(FMLClientSetupEvent event) { } } } this is my TestMod.java file { "parent": "minecraft:item/generated", "textures": { "layer0": "testmod:item/generated" } } this is my model file for the item. I am using intellij 2025.1.2 with fdk 1.21 and java 21 I would appreciate the help.
  • Topics

×
×
  • Create New...

Important Information

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