Jump to content

Minecraft forge won't work


TimTheTimeLord

Recommended Posts

I was using optifine but I wanted some other mods so I installed forge and it won't work well.

I have done some research but can't find anything. Here is my log:

 

[13:14:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[13:14:02] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[13:14:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[13:14:02] [main/INFO] [FML]: Forge Mod Loader version 12.18.2.2151 for Minecraft 1.10.2 loading

[13:14:02] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.6.0_65, running on Mac OS X:x86_64:10.6.8, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: java.lang.UnsupportedClassVersionError: invtweaks/forge/asm/FMLPlugin : Unsupported major.minor version 52.0

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.lang.ClassLoader.defineClass1(Native Method)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.security.AccessController.doPrivileged(Native Method)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:117)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.lang.Class.forName0(Native Method)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at java.lang.Class.forName(Class.java:249)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraftforge.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:552)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:423)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:253)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:102)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:79)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:41)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:138)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:115)

[13:14:03] [main/INFO] [sTDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:configureForClientLaunch:41]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

[13:14:03] [main/ERROR] [FML]: An error occurred trying to configure the minecraft home at /Users/Lena/Library/Application Support/minecraft for Forge Mod Loader

java.lang.UnsupportedClassVersionError: invtweaks/forge/asm/FMLPlugin : Unsupported major.minor version 52.0

at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.6.0_65]

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) ~[?:1.6.0_65]

at java.lang.ClassLoader.defineClass(ClassLoader.java:621) ~[?:1.6.0_65]

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) ~[?:1.6.0_65]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) ~[?:1.6.0_65]

at java.net.URLClassLoader.access$000(URLClassLoader.java:58) ~[?:1.6.0_65]

at java.net.URLClassLoader$1.run(URLClassLoader.java:197) ~[?:1.6.0_65]

at java.security.AccessController.doPrivileged(Native Method) ~[?:1.6.0_65]

at java.net.URLClassLoader.findClass(URLClassLoader.java:190) ~[?:1.6.0_65]

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:117) ~[launchwrapper-1.12.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[?:1.6.0_65]

at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[?:1.6.0_65]

at java.lang.Class.forName0(Native Method) ~[?:1.6.0_65]

at java.lang.Class.forName(Class.java:249) ~[?:1.6.0_65]

at net.minecraftforge.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:552) ~[forge-1.10.2-12.18.2.2151.jar:?]

at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:423) ~[forge-1.10.2-12.18.2.2151.jar:?]

at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:253) ~[forge-1.10.2-12.18.2.2151.jar:?]

at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:102) [forge-1.10.2-12.18.2.2151.jar:?]

at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:79) [forge-1.10.2-12.18.2.2151.jar:?]

at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:41) [forge-1.10.2-12.18.2.2151.jar:?]

at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:138) [forge-1.10.2-12.18.2.2151.jar:?]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

Exception in thread "main"

 

 

 

Here's one when I took out inventory tweaks

---- Minecraft Crash Report ----

 

*** ATTENTION: detected classes with unsupported format ***

*** DO NOT SUBMIT THIS CRASH REPORT TO FORGE ***

 

Contact authors of the following mods:

  mercurius_updater

 

 

WARNING: coremods are present:

Contact their authors BEFORE contacting forge

 

// There are four lights!

 

Time: 11/26/16 1:14 PM

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

 

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from mercurius_updater (mercurius_updater)

Caused by: java.lang.NoClassDefFoundError: net/minecraftforge/mercurius/updater/Utils

at net.minecraftforge.mercurius.updater.MercuriusUpdaterMod.preInit(MercuriusUpdaterMod.java:37)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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

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

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

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:439)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:351)

at net.minecraft.client.main.Main.main(SourceFile:124)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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.mercurius.updater.Utils

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

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

... 38 more

Caused by: java.lang.UnsupportedClassVersionError: net/minecraftforge/mercurius/updater/Utils : Unsupported major.minor version 52.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)

at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

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

... 40 more

 

 

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

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

 

-- System Details --

Details:

Minecraft Version: 1.10.2

Operating System: Mac OS X (x86_64) version 10.6.8

Java Version: 1.6.0_65, Apple Inc.

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc.

Memory: 197518184 bytes (188 MB) / 356704256 bytes (340 MB) up to 1060372480 bytes (1011 MB)

JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

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

FML: MCP 9.32 Powered by Forge 12.18.2.2151 Optifine OptiFine_1.10.2_HD_U_D4 5 mods loaded, 5 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-1.10.2-12.18.2.2151.jar)

UCH Forge{12.18.2.2151} [Minecraft Forge] (forge-1.10.2-12.18.2.2151.jar)

UCE mercurius_updater{1.0} [mercurius_updater] (MercuriusUpdater-1.10.2.jar)

UCH JEI{3.13.6.386} [Just Enough Items] (jei_1.10.2-3.13.6.386.jar)

Loaded coremods (and transformers):

OptiFine Version: OptiFine_1.10.2_HD_U_D4

Render Distance Chunks: 21

Mipmaps: 0

Anisotropic Filtering: 1

Antialiasing: 0

Multitexture: false

Shaders: null

OpenGlVersion: 2.1 NVIDIA-1.6.36

OpenGlRenderer: NVIDIA GeForce 9400M OpenGL Engine

OpenGlVendor: NVIDIA Corporation

CpuCount: 2

 

 

I launched all the mods at once so that was the order

and I am not sure which logs to add and how safe that is (they may include personal info) so I will wait for that. I believe I followed all the post rules if not please pardon me.

 

UPDATE:

Here is a log of what happens without mods:

---- Minecraft Crash Report ----

 

*** ATTENTION: detected classes with unsupported format ***

*** DO NOT SUBMIT THIS CRASH REPORT TO FORGE ***

 

Contact authors of the following mods:

  mercurius_updater

 

// I let you down. Sorry :(

 

Time: 11/26/16 1:28 PM

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

 

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from mercurius_updater (mercurius_updater)

Caused by: java.lang.NoClassDefFoundError: net/minecraftforge/mercurius/updater/Utils

at net.minecraftforge.mercurius.updater.MercuriusUpdaterMod.preInit(MercuriusUpdaterMod.java:37)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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

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

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

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:439)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:351)

at net.minecraft.client.main.Main.main(SourceFile:124)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

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.mercurius.updater.Utils

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

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

... 38 more

Caused by: java.lang.UnsupportedClassVersionError: net/minecraftforge/mercurius/updater/Utils : Unsupported major.minor version 52.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)

at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

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

... 40 more

 

 

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

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

 

-- System Details --

Details:

Minecraft Version: 1.10.2

Operating System: Mac OS X (x86_64) version 10.6.8

Java Version: 1.6.0_65, Apple Inc.

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc.

Memory: 100261808 bytes (95 MB) / 335052800 bytes (319 MB) up to 1060372480 bytes (1011 MB)

JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

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

FML: MCP 9.32 Powered by Forge 12.18.2.2151 4 mods loaded, 4 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-1.10.2-12.18.2.2151.jar)

UCH Forge{12.18.2.2151} [Minecraft Forge] (forge-1.10.2-12.18.2.2151.jar)

UCE mercurius_updater{1.0} [mercurius_updater] (MercuriusUpdater-1.10.2.jar)

Loaded coremods (and transformers):

 

Link to comment
Share on other sites

Wait, Mercurius shouldn't require java 8.. it's J6 compiled..

What SHA do you have for the mercurius client?

I'll look into this.

 

Edit, Fixed, restart your client things should all be fixed. Or if this is a server re-install Forge after deleting the libaries folder.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I am getting an error message that my mods and my server are not on the same minecraft version when they clearly are. My server and my mods are on 1.20.1 and the error says that the server is 1.20 even though it's on forge 47.2.30.  
    • .Omg, I'm so freaking blind I didn't notice that, it works now, thank you so much @Xoroshio
    • On the one off the last lines of code you have put && boots.isEmpty() Instead of && !boots.isEmpty() is that a typo?
    • I'm trying to apply effects to the emerald armor but it doesn't work, I read that the onArmorTick() method doesn't work anymore, but I tried with inventoryTick, onInventoryTick and onArmorTick but they don't apply the effect either, I don't know if I'm writing it wrong, so I need help to fix it. This is the code in question: public class ModArmorItem extends ArmorItem{ private static final Map<ArmorMaterial, MobEffectInstance> MATERIAL_TO_EFFECT_MAP = (new ImmutableMap.Builder<ArmorMaterial, MobEffectInstance>()) .put(ModArmorMaterials.EMERALD, new MobEffectInstance( MobEffects.HERO_OF_THE_VILLAGE, 200, 1, false, false, true)) .build(); public ModArmorItem(ArmorMaterial pMaterial, Type pType, Properties pProperties) { super(pMaterial, pType, pProperties); } @Override public void onArmorTick(ItemStack stack, Level world, Player player){ if (!world.isClientSide()) { if (hasFullSuitOfArmorOn(player)) { evaluateArmorEffects(player); } } } private void evaluateArmorEffects(Player player) { for (Map.Entry<ArmorMaterial,MobEffectInstance> entry : MATERIAL_TO_EFFECT_MAP.entrySet()){ ArmorMaterial mapArmorMaterial = entry.getKey(); MobEffectInstance mapStatusEffect = entry.getValue(); if (hasCorrectArmorOn(mapArmorMaterial, player)) { addStatusEffectForMaterial(player, mapArmorMaterial, mapStatusEffect); } } } private void addStatusEffectForMaterial(Player player, ArmorMaterial mapArmorMaterial, MobEffectInstance mapStatusEffect) { boolean hasPlayerEffect = player.hasEffect(mapStatusEffect.getEffect()); if (hasCorrectArmorOn(mapArmorMaterial, player) && !hasPlayerEffect) { player.addEffect(new MobEffectInstance(mapStatusEffect)); } } private boolean hasCorrectArmorOn(ArmorMaterial material, Player player) { for (ItemStack armorStack : player.getInventory().armor){ if (!(armorStack.getItem() instanceof ArmorItem)) { return false; } } ArmorItem helmet = ((ArmorItem)player.getInventory().getArmor(3).getItem()); ArmorItem brestplace = ((ArmorItem)player.getInventory().getArmor(2).getItem()); ArmorItem leggins = ((ArmorItem)player.getInventory().getArmor(1).getItem()); ArmorItem boots = ((ArmorItem)player.getInventory().getArmor(0).getItem()); return helmet.getMaterial() == material && brestplace.getMaterial() == material && leggins.getMaterial() == material && boots.getMaterial() == material; } private boolean hasFullSuitOfArmorOn(Player player){ ItemStack helmet = player.getInventory().getArmor(3); ItemStack breastplace = player.getInventory().getArmor(2); ItemStack leggins = player.getInventory().getArmor(1); ItemStack boots = player.getInventory().getArmor(0); return !helmet.isEmpty() && !breastplace.isEmpty() && !leggins.isEmpty() && boots.isEmpty(); } } And here is the armor   public static final RegistryObject<Item> EMERALD_HELMET = ITEMS.register( "emerald_helmet", () -> new ModArmorItem(ModArmorMaterials.EMERALD, ArmorItem.Type.HELMET, new Item.Properties()) ); public static final RegistryObject<Item> EMERALD_CHESTPLATE = ITEMS.register( "emerald_chestplate", () -> new ModArmorItem(ModArmorMaterials.EMERALD, ArmorItem.Type.CHESTPLATE, new Item.Properties()) ); public static final RegistryObject<Item> EMERALD_LEGGINS = ITEMS.register( "emerald_leggins", () -> new ModArmorItem(ModArmorMaterials.EMERALD, ArmorItem.Type.LEGGINGS, new Item.Properties()) ); public static final RegistryObject<Item> EMERALD_BOOTS = ITEMS.register( "emerald_boots", () -> new ModArmorItem(ModArmorMaterials.EMERALD, ArmorItem.Type.BOOTS, new Item.Properties()) ); I hope you can help me. Thanks.
    • so ive been having this issue for a little bit, and have honestly no clue on how to fix it. I'm using minecraft 1.20.1 for clarification.  Here is the latest log: https://pastebin.com/neMuxELv
  • Topics

×
×
  • Create New...

Important Information

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