Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Error while launching minecraft with a custom modpack.


Corstag
 Share

Recommended Posts

I have this error while launching minecraft:

The game crashed whilst initializing game Error: java.lang.NoSuchMethodError: net.minecraft.item.ItemStack.isEmpty()Z Exit code: -1

Why can't I play?

This is the full report:

---- Minecraft Crash Report ----

WARNING: coremods are present:
  WolfArmorCore (wolfarmor-1.12.2-3.7.5-universal-signed.jar)
Contact their authors BEFORE contacting forge

// Don't do that.

Time: 10/13/21 5:22 PM
Description: Initializing game

java.lang.NoSuchMethodError: net.minecraft.item.ItemStack.isEmpty()Z
    at net.darkhax.badmobs.handler.ClientEventHandler.onTooltipRendered(ClientEventHandler.java:16)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_97_ClientEventHandler_onTooltipRendered_ItemTooltipEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
    at net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:358)
    at net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:889)
    at net.minecraft.client.Minecraft.lambda$populateSearchTreeManager$1(Minecraft.java:576)
    at net.minecraft.client.Minecraft$$Lambda$174/1942976141.apply(Unknown Source)
    at net.minecraft.client.util.SearchTree.func_194042_b(SourceFile:49)
    at net.minecraft.client.util.SearchTree.func_194043_a(SourceFile:44)
    at net.minecraft.client.Minecraft$$Lambda$176/93016417.accept(Unknown Source)
    at java.lang.Iterable.forEach(Iterable.java:75)
    at net.minecraft.client.Minecraft.func_193986_ar(Minecraft.java:590)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:529)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
    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)


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

-- Head --
Thread: Client thread
Stacktrace:
    at net.darkhax.badmobs.handler.ClientEventHandler.onTooltipRendered(ClientEventHandler.java:16)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_97_ClientEventHandler_onTooltipRendered_ItemTooltipEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
    at net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:358)
    at net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:889)
    at net.minecraft.client.Minecraft.lambda$populateSearchTreeManager$1(Minecraft.java:576)
    at net.minecraft.client.Minecraft$$Lambda$174/1942976141.apply(Unknown Source)
    at net.minecraft.client.util.SearchTree.func_194042_b(SourceFile:49)
    at net.minecraft.client.util.SearchTree.func_194043_a(SourceFile:44)
    at net.minecraft.client.Minecraft$$Lambda$176/93016417.accept(Unknown Source)
    at java.lang.Iterable.forEach(Iterable.java:75)
    at net.minecraft.client.Minecraft.func_193986_ar(Minecraft.java:590)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:529)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
    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: 670433344 bytes (639 MB) / 1701314560 bytes (1622 MB) up to 3817865216 bytes (3641 MB)
    JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx4096m -Xms256m -XX:PermSize=256m
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.42 Powered by Forge 14.23.5.2855 29 mods loaded, 29 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                                |
    |:----- |:---------------------- |:----------------------- |:--------------------------------------------- |:---------------------------------------- |
    | LCH   | minecraft              | 1.12.2                  | minecraft.jar                                 | None                                     |
    | LCH   | mcp                    | 9.42                    | minecraft.jar                                 | None                                     |
    | LCH   | FML                    | 8.0.99.99               | forge-1.12.2-14.23.5.2855.jar                 | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCH   | forge                  | 14.23.5.2855            | forge-1.12.2-14.23.5.2855.jar                 | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCH   | movillages             | 1.5.4                   | [1.12]MoVillages-1.5.4.jar                    | None                                     |
    | LCH   | jei                    | 4.16.1.302              | jei_1.12.2-4.16.1.302.jar                     | None                                     |
    | LCH   | appleskin              | 1.0.14                  | AppleSkin-mc1.12-1.0.14.jar                   | None                                     |
    | LCH   | badmobs                | 1.1.40                  | BadMobs-1.12.2-1.1.40-deobf.jar               | None                                     |
    | LCH   | biomesoplenty          | 7.0.1.2444              | BiomesOPlenty-1.12.2-7.0.1.2444-universal.jar | None                                     |
    | LCH   | chameleon              | 1.12-4.1.3              | Chameleon-1.12-4.1.3.jar                      | None                                     |
    | LCH   | umm3185118519          | release 1.5 - MC 1.12.2 | Extended+ItemsOres+[1.12.2]+(release+1.5).jar | None                                     |
    | LCH   | cfm                    | 6.3.1                   | furniture-6.3.1-1.12.2.jar                    | None                                     |
    | LCH   | guideapi               | 1.12-2.1.8-63           | Guide-API-1.12-2.1.8-63.jar                   | None                                     |
    | LCH   | howlingmoon            | 0.9                     | howlingmoon-1.12.2-0.9.jar                    | None                                     |
    | LCH   | ironchest              | 1.12.2-7.0.67.844       | ironchest-1.12.2-7.0.72.847.jar               | None                                     |
    | LCH   | journeymap             | 1.12.2-5.7.1            | journeymap-1.12.2-5.7.1.jar                   | None                                     |
    | LCH   | earthenbounty          | 2.1.6                   | just_a_few_more_ores-2.1.6.jar                | None                                     |
    | LCH   | oreexcavation          | 1.4.150                 | OreExcavation-1.4.150.jar                     | None                                     |
    | LCH   | oeintegration          | 2.3.4                   | oeintegration-2.3.4.jar                       | None                                     |
    | LCH   | harvestcraft           | 1.12.2zb                | Pam's+HarvestCraft+1.12.2zg.jar               | None                                     |
    | LCH   | resourceoverhaul       | 2.75                    | Resource+Overhaul2.9+MC1.12.jar               | None                                     |
    | LCH   | sophisticatedwolves    | 3.13.8                  | SophisticatedWolves-1.12.2-3.13.8.jar         | None                                     |
    | LCH   | storagedrawers         | 5.2.2                   | StorageDrawers-1.12.2-5.4.2.jar               | None                                     |
    | LCH   | uteamcore              | 2.2.5.147               | u_team_core-1.12.2-2.2.5.147.jar              | None                                     |
    | LCH   | usefulbackpacks        | 1.5.4.85                | useful_backpacks-1.12.2-1.5.4.85.jar          | None                                     |
    | LCH   | vampirism              | 1.6.2                   | Vampirism-1.12.2-1.6.2.jar                    | None                                     |
    | LCH   | teamlapen-lib          | 1.6.2                   | Vampirism-1.12.2-1.6.2.jar                    | None                                     |
    | LCH   | vampirism_integrations | vampirism_integrations  | VampirismIntegrations-1.12.2-1.3.0.jar        | None                                     |
    | LCH   | wolfarmor              | 3.7.5                   | wolfarmor-1.12.2-3.7.5-universal-signed.jar   | e94e38a605842477f3ec218e6fcf781f6b3f7f89 |

    Loaded coremods (and transformers): 
WolfArmorCore (wolfarmor-1.12.2-3.7.5-universal-signed.jar)
  
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 496.13' Renderer: 'NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2'
    Launched Version: forge-14.23.5.2855
    LWJGL: 2.9.4
    OpenGL: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 GL version 4.6.0 NVIDIA 496.13, 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 (disabled)
    CPU: 16x AMD Ryzen 7 5800H with Radeon Graphics 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • public static void onPlayerCloned(PlayerEvent.Clone event) { if (!event.getOriginal().world.isRemote() && !event.getPlayer().world.isRemote() && event.getOriginal() != null && event.getPlayer() != null) { LazyOptional<IMindCapability> oldMindCap = event.getOriginal().getCapability(LibCapabilities.MIND_CAPABILITY); LazyOptional<IMindCapability> newMindCap = event.getPlayer().getCapability(LibCapabilities.MIND_CAPABILITY); if (oldMindCap.isPresent() && newMindCap.isPresent()) { newMindCap.ifPresent(capability -> { oldMindCap.ifPresent(capabilityOld -> { event.getPlayer().sendMessage(new StringTextComponent("Before: " + capability.getMindStrength()), CommonProxy.IN_GAME_UUID); capability.deserializeNBT(capabilityOld.serializeNBT()); event.getPlayer().sendMessage(new StringTextComponent("After: " + capability.getMindStrength()), CommonProxy.IN_GAME_UUID); }); // This don't work, the value on the client side is still the initial value SCPacketHandler.INSTANCE.send(PacketDistributor.PLAYER.with(() -> (ServerPlayerEntity) event.getPlayer()), new MSGMindCapabilitySync(capability.getMindStrength())); // It works,the value on the client side is correct, but I don't know why, I think it's just a coincidence. // SCPacketHandler.INSTANCE.sendToServer(new MSGMindCapabilitySync(capability.getMindStrength())); }); } } }   This is my message code. public class MSGMindCapabilitySync { private final int mindStrength; public MSGMindCapabilitySync(int mindStrength) { this.mindStrength = mindStrength; } public static void encodingMSG(MSGMindCapabilitySync msg, PacketBuffer buffer) { buffer.writeInt(msg.mindStrength); } public static MSGMindCapabilitySync decodingMSG(PacketBuffer buffer) { return new MSGMindCapabilitySync(buffer.readInt()); } public static void handle(MSGMindCapabilitySync msg, Supplier<NetworkEvent.Context> ctx) { ctx.get().enqueueWork(() -> { // Form client to server ServerPlayerEntity serverPlayer = ctx.get().getSender(); if (serverPlayer != null) { serverPlayer.getCapability(LibCapabilities.MIND_CAPABILITY).ifPresent((capability -> { capability.setMindStrength(msg.mindStrength); })); SaintChapter.LOGGER.info("Form client to server. Done"); } // From server to client DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () -> () -> { if (Minecraft.getInstance().player == null) return; Minecraft.getInstance().player.getCapability(LibCapabilities.MIND_CAPABILITY).ifPresent((capability -> { capability.setMindStrength(msg.mindStrength); })); SaintChapter.LOGGER.info("From server to client. Done"); }); }); ctx.get().setPacketHandled(true); } }
    • I don't know what you used to post the log here, but next time please upload the log to a paste site, this is horrible to look at with all the formatting removed One of your server configs is failing to load properly, if you have not modified it delete ironfurnaces-server.toml
    • Did you download the server-specific files for the pack or did you copy the mods from the client and hope?
    • 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • [18:32:34] [Server thread/WARN] [ne.mi.co.ForgeConfigSpec/CORE]: Configuration file .\saves\New World (2)\serverconfig\forge-server.toml is not correct. Correcting [18:32:34] [Server thread/WARN] [ne.mi.co.ForgeConfigSpec/CORE]: Incorrect key server was corrected from null to its default, SimpleCommentedConfig:{   Using that code and before I get that. And my mob still don't work.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.