• Recently Browsing

    No registered users viewing this page.

  • Posts

    • My minecraft forge 1.12.2 keeps on crashing. In the mod folder I have- Baubles mod 1.12.2, BiomesOPlenty-1.12.2-7.0.1.2427, Ferdinands-Flowers-Mod- 1.12.2, Thuamcraft- 1.12.2-6.1, WearableBackpacks-1.12.2-3.1.4 and lastly XaerosWorldMap_1.12.2-1.4.10.1. My Java is updated to recent.   Here's the error log: ---- Minecraft Crash Report ---- WARNING: coremods are present: Contact their authors BEFORE contacting forge // Uh... Did I do that? Time: 8/7/20 4:14 PM Description: Initializing game java.lang.NoClassDefFoundError: net/minecraftforge/fml/event/lifecycle/FMLClientSetupEvent     at java.lang.Class.getDeclaredMethods0(Native Method)     at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)     at java.lang.Class.getDeclaredMethods(Class.java:1975)     at net.minecraftforge.fml.common.FMLModContainer.gatherAnnotations(FMLModContainer.java:387)     at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:582)     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.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: net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent     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)     ... 41 more Caused by: java.lang.NullPointerException     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)     ... 43 more 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.getDeclaredMethods0(Native Method)     at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)     at java.lang.Class.getDeclaredMethods(Class.java:1975)     at net.minecraftforge.fml.common.FMLModContainer.gatherAnnotations(FMLModContainer.java:387)     at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:582)     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.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)  
    • The fuck is wrong with:     public void fill(NonNullList<ItemStack> items) {         items.add(                 InitItems.PISTOL_COLT_1911.get(),                 InitItems.BULLET_CAL_45.get(),                 InitItems.PISTOL_CAL_45_PROTOTYPE_BASIC.get(),                 InitItems.BARREL_CAL_45_LIGHT.get(),                  InitItems.BARREL_CAL_45_MEDIUM.get(),                  InitItems.BARREL_CAL_45_HEAVY.get(),                 InitItems.MAG_CAL_45_SMALL.get(),                 InitItems.MAG_CAL_45_BIG.get(),                 InitItems.MAG_CAL_45_DRUM.get(),                 InitItems.MAG_CAL_45_BOX.get(),                 InitItems.GUN_BODY_LIGHT.get(),                 InitItems.GUN_BODY_MEDIUM.get(),                 InitItems.GUN_BODY_HEAVY.get(),                 InitItems.PIPE_CAL_45.get(),                 InitItems.GUN_GRIP.get(),                 InitItems.GUN_BUTT.get(),                 InitItems.ARMORED_GLASS_ITEM_BLOCK.get()         );      }  
    • is this ok now? I'm using the first List I had, List<Item>, because you said the issue was in the "static" initializing thing.   I'm creating a new SortedItemList object in CommonSetup so I can get the predifined List for the Comparator, then I use the Mod Class instance field to access that mod object's Comparator field.   its still working as expected ingame at least 😅     Overriden method in the ItemGroup class:  
    • So it is! XD So after a number of iterations I finally fixed part of my problem. I found that any Event not located under the .client namespace is a server event. So I just had to make sure event.getWorld().isRemote was false. The problem I have now is that item.damageItem() does not work whereas item.setDamage does. I am currently using setDamage and just adding the value that way, which is arguably simpler, but I would like to know why damageItem was failing. My updated code is here running on a server event: PlayerEntity player = event.getPlayer(); if(player.getHeldItemMainhand().isDamageable()) { Consumer<PlayerEntity> pl = (p) -> LOGGER.info(p); LOGGER.info(player.getHeldItemMainhand().getDamage()); //this line of code works //player.getHeldItemMainhand().setDamage(player.getHeldItemMainhand().getDamage() - 8); //this one does not player.getHeldItemMainhand().damageItem(-8,player,pl); LOGGER.info(player.getHeldItemMainhand().getDamage()); }
    • Back from testing, that was indeed it, thank you both for everything, mark this problem as Solved! 😄
  • Topics

  • Who's Online (See full list)