Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

FIXED: addArmourMaterial is currently broken so I fixed it by mannually adding a enum. Thank you so much Choonster for you quick answer and this sollution.

 

Hello I've made custom armour for my mod and it worked perfect for 1.9 but not for 1.9.4.

 

Error:

Description: There was a severe problem during mod loading that has caused the game to fail

 

net.minecraftforge.fml.common.LoaderException: java.lang.ExceptionInInitializerError

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

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

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:249)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:475)

at net.minecraft.client.Minecraft.run(Minecraft.java:384)

at net.minecraft.client.main.Main.main(Main.java:118)

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.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

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.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)

at GradleStart.main(GradleStart.java:26)

Caused by: java.lang.ExceptionInInitializerError

at mod.proxy.CommonProxy.preInit(CommonProxy.java:12)

at mod.proxy.ClientProxy.preInit(ClientProxy.java:13)

at mod.Main.preInit(Main.java:23)

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:563)

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.sendEventToModContainer(LoadController.java:228)

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

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:135)

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

... 16 more

Caused by: java.lang.RuntimeException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [i, int, net.minecraft.util.SoundEvent)

at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:347)

at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:217)

at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:203)

at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:189)

at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:63)

at mod.ModElements.<clinit>(ModElements.java:60)

... 46 more

Caused by: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [i, int, net.minecraft.util.SoundEvent)

at java.lang.Class.getConstructor0(Unknown Source)

at java.lang.Class.getDeclaredConstructor(Unknown Source)

at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:145)

at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:154)

at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:337)

... 51 more

Code:

public static ArmorMaterial amethystArmour = EnumHelper.addArmorMaterial("amethyst", "mm:amethyst", 42,

new int[] { 4, 9, 5, 4 }, 15, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND);

public static ArmorMaterial copperArmour = EnumHelper.addArmorMaterial("copper", "mm:copper", 13,

new int[] { 2, 7, 4, 1 }, 15, SoundEvents.ITEM_ARMOR_EQUIP_IRON);

public static ArmorMaterial bronzeArmour = EnumHelper.addArmorMaterial("bronze", "mm:bronze", 16,

new int[] { 3, 6, 4, 2 }, 15, SoundEvents.ITEM_ARMOR_EQUIP_IRON);

 

Please answer if you know any sollution to this

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.