Jump to content

Pixelmon 7.3.1 Crashing on Item Pickup


Recommended Posts

I am going to start with saying that I am not very adept with Java, so I'm asking for a bit of help. I made an account just to try and make this post. I keep having my Minecraft crash whenever I pick up any item. I have tried picking up a dirt block and my game crashes. I copy and pasted the crash report below, and I don't understand what I've done wrong. It's been a while since I've played on PC and messed with mods, so I did routine check ups. I updated Java, double checked I was using the suggested Forge, tried even to lower my graphic settings to see if that was crashing my game. When I read the report I tried to find any similar problems over this forum and other sources, to be left very confused as almost no one had a similar problem to mine when using Pixelmon. I'm afraid it's my Forge, but I don't understand what is broken. I made a new world and named it 'Crashes yayy' just to repeat the crash and get a new crash report. Is there anyone able to help me see what the problem is? I can fix it by editing my files, just I don't know where the problem lies.

 

 

 

 

 

 

 

 

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 5/24/20 3:40 PM
Description: Ticking player

java.lang.NoSuchMethodError: net.minecraftforge.fml.common.gameevent.PlayerEvent$ItemPickupEvent.getStack()Lnet/minecraft/item/ItemStack;
    at com.pixelmonmod.pixelmon.quests.listeners.ItemListeners.onPickupItem(ItemListeners.java:40)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_76_ItemListeners_onPickupItem_ItemPickupEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:179)
    at net.minecraftforge.fml.common.FMLCommonHandler.firePlayerItemPickupEvent(FMLCommonHandler.java:588)
    at net.minecraft.entity.item.EntityItem.func_70100_b_(EntityItem.java:401)
    at net.minecraft.entity.player.EntityPlayer.func_71044_o(EntityPlayer.java:598)
    at net.minecraft.entity.player.EntityPlayer.func_70636_d(EntityPlayer.java:569)
    at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2166)
    at net.minecraft.entity.player.EntityPlayer.func_70071_h_(EntityPlayer.java:232)
    at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:382)
    at net.minecraft.network.NetHandlerPlayServer.func_73660_a(NetHandlerPlayServer.java:171)
    at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:211)
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:285)
    at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:179)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:784)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:665)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:523)
    at java.lang.Thread.run(Thread.java:745)


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

-- Head --
Thread: Server thread
Stacktrace:
    at com.pixelmonmod.pixelmon.quests.listeners.ItemListeners.onPickupItem(ItemListeners.java:40)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_76_ItemListeners_onPickupItem_ItemPickupEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:179)
    at net.minecraftforge.fml.common.FMLCommonHandler.firePlayerItemPickupEvent(FMLCommonHandler.java:588)
    at net.minecraft.entity.item.EntityItem.func_70100_b_(EntityItem.java:401)
    at net.minecraft.entity.player.EntityPlayer.func_71044_o(EntityPlayer.java:598)
    at net.minecraft.entity.player.EntityPlayer.func_70636_d(EntityPlayer.java:569)
    at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2166)
    at net.minecraft.entity.player.EntityPlayer.func_70071_h_(EntityPlayer.java:232)

-- Player being ticked --
Details:
    Entity Type: null (net.minecraft.entity.player.EntityPlayerMP)
    Entity ID: 653
    Entity Name: F1ashMan48
    Entity's Exact location: 235.41, 70.54, 245.93
    Entity's Block location: World: (235,70,245), Chunk: (at 11,4,5 in 14,15; contains blocks 224,0,240 to 239,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Entity's Momentum: 0.00, -0.30, 0.00
    Entity's Passengers: []
    Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
    at net.minecraft.entity.player.EntityPlayerMP.func_71127_g(EntityPlayerMP.java:382)
    at net.minecraft.network.NetHandlerPlayServer.func_73660_a(NetHandlerPlayServer.java:171)
    at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:211)
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:285)

-- Ticking connection --
Details:
    Connection: net.minecraft.network.NetworkManager@993c600
Stacktrace:
    at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:179)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:784)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:665)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:523)
    at java.lang.Thread.run(Thread.java:745)

-- System Details --
Details:
    Minecraft Version: 1.12
    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: 883848864 bytes (842 MB) / 1644167168 bytes (1568 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: 8, allocated: 20, tallocated: 86
    FML: MCP 9.40 Powered by Forge 14.21.1.2443 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
    UCHIJAAAA    minecraft{1.12} [Minecraft] (minecraft.jar) 
    UCHIJAAAA    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    UCHIJAAAA    FML{8.0.99.99} [Forge Mod Loader] (forge-1.12-14.21.1.2443.jar) 
    UCHIJAAAA    forge{14.21.1.2443} [Minecraft Forge] (forge-1.12-14.21.1.2443.jar) 
    UCHIJAAAA    pixelmon{7.3.1} [Pixelmon] (Pixelmon-1.12.2-7.3.1-universal.jar) 
    Loaded coremods (and transformers): 
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    Profiler Position: N/A (disabled)
    Player Count: 1 / 8; [EntityPlayerMP['F1ashMan48'/653, l='Crashes yay', x=235.41, y=70.54, z=245.93]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'

Link to comment
Share on other sites

6 minutes ago, F1ashMan48 said:

Minecraft Version: 1.12

1.12 is no longer supported

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • What's the issue your running into? The link for the image you posted is also broken.
    • What does NetworkHooks.openScreen(player, blockEntity, pPos) do?
    • At an attempt at answering my first question I thought I might be able to change the code to this public static final RegistryObject<StatType<?>> FIREWORK_BOOSTS_USED = STATISTICS.register("firework_boosts_used", () -> new StatType<>(ForgeRegistries.STAT_TYPES, Component.literal("firework_boosts"))); or to this public static final RegistryObject<StatType<?>> FIREWORK_BOOSTS_USED = STATISTICS.register("firework_boosts_used", () -> new StatType<>(BuiltInRegistries.STAT_TYPE, Component.literal("firework_boosts"))); but for the first code snippet the StatType constructor requires a Registry not an IForgeRegistry and for the second code snippet we run into the same NPE issue from above.
    • Hi guys,   I'm using Crafty installed on CasaOS and i want to create a BetterMC4 Server. Unfortunatly i got an error message. This error only appear when using my "online" server because when i create a singleplayer adventure, everythings works just fine. https://github.com/OwNuT/Errors/issues/1   Thank you !
    • I am attempting to create a mod that adds custom statistics to Minecraft. I've had some help from LexManos on the Discord server, but posting a lot of what I posted in the #mod-dev-support-1.20 channel here to have a more permanent spot for discussion.   ---   Minecraft creates their stats like this: and some of the registries in the code above are located in BuiltInRegistries.java like this: and the ForgeRegistries#STAT_TYPES looks like this: So, attempting to follow that and the forge documentation on registries I arrived at this: Clearly, registering a stat twice in a row is the wrong way to do it, but the makeRegistryStatType function was used as it does give the correct return type for the code I had come up with so far.   ---   At this point the game crashes upon trying to use Player#awardStat, because of a NPE that occurs in Stat#locationToKey. Which happens in the 2nd Stat#locationToKey in the Stat#buildName function. The .getRegistry returns the this.registry class variable with a value of {MappedRegistry@#####} "Registry[ResourceKey[minecraft:root / minecraft:custom_stat] (Stable)]" The value passed into .getKey is "samplemod:fireworks_boosts_used" but the reference found is null. So Lex's conclusion was that "[I'm] passing in null because the registry doesnt have an entry for your custom stat instance. So.. register your custom stat instance in that registry."   ---   So I suppose at this point my questions are 1. How can I create a supplier that returns a Supplier<? extends StatType<?>> to replace the () -> makeRegistryStatType("firework_boosts_used", BuiltInRegistries.CUSTOM_STAT) line of code. 2. Is my registry entry public static final RegistryObject<StatType<?>> FIREWORK_BOOSTS_USED the correct type? 3. Do I need to do anything additional, like create my own StatType<> or my own Stat<> ?
  • Topics

×
×
  • Create New...

Important Information

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