Jump to content

The game crashed whilst initializing game Error: java.lang.NullPointerException: Registry Object not present


greymonalfa

Recommended Posts

Hi, I am trying to make my own modpack, but when I try to test thing out, this problem pops out:

The game crashed whilst initializing game
Error: java.lang.NullPointerException: Registry Object not present

 

Here is the crash file:

---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 11.3.20 15:31
Description: Initializing game

java.lang.NullPointerException: Registry Object not present
    at java.util.Objects.requireNonNull(Objects.java:228) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.RegistryObject.get(RegistryObject.java:91) ~[?:?] {re:classloading}
    at mekanism.common.registration.DoubleWrappedRegistryObject.getPrimary(DoubleWrappedRegistryObject.java:23) ~[?:?] {re:classloading}
    at mekanism.common.registration.impl.BlockRegistryObject.getBlock(BlockRegistryObject.java:19) ~[?:?] {re:classloading}
    at mekanism.client.ClientRegistrationUtil.registerBlockColorHandler(ClientRegistrationUtil.java:108) ~[?:?] {re:classloading}
    at mekanism.client.ClientRegistration.registerItemColorHandlers(ClientRegistration.java:394) ~[?:?] {re:classloading}
    at net.minecraftforge.eventbus.ASMEventHandler_271_ClientRegistration_registerItemColorHandlers_Item.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:168) ~[?:31.1] {re:classloading}
    at net.minecraftforge.fml.ModLoader.lambda$postEvent$30(ModLoader.java:243) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader$$Lambda$2677/1878082702.accept(Unknown Source) ~[?:?] {}
    at java.util.HashMap.forEach(HashMap.java:1280) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:217) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:243) ~[?:?] {re:classloading}
    at net.minecraftforge.client.ForgeHooksClient.onItemColorsInit(ForgeHooksClient.java:209) ~[?:?] {re:classloading}
    at net.minecraft.client.renderer.color.ItemColors.func_186729_a(ItemColors.java:84) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:421) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(SourceFile:166) [?:?] {re:classloading}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56) [forge-1.15.2-31.1.19.jar:31.1] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$419/1461360262.call(Unknown Source) [forge-1.15.2-31.1.19.jar:31.1] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.0.0-milestone.4.jar:?] {}


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

-- Head --
Thread: Render thread
Stacktrace:
    at java.util.Objects.requireNonNull(Objects.java:228)
    at net.minecraftforge.fml.RegistryObject.get(RegistryObject.java:91)
    at mekanism.common.registration.DoubleWrappedRegistryObject.getPrimary(DoubleWrappedRegistryObject.java:23)
    at mekanism.common.registration.impl.BlockRegistryObject.getBlock(BlockRegistryObject.java:19)
    at mekanism.client.ClientRegistrationUtil.registerBlockColorHandler(ClientRegistrationUtil.java:108)
    at mekanism.client.ClientRegistration.registerItemColorHandlers(ClientRegistration.java:394)
    at net.minecraftforge.eventbus.ASMEventHandler_271_ClientRegistration_registerItemColorHandlers_Item.invoke(.dynamic)
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:168)
    at net.minecraftforge.fml.ModLoader.lambda$postEvent$30(ModLoader.java:243)
    at net.minecraftforge.fml.ModLoader$$Lambda$2677/1878082702.accept(Unknown Source)
    at java.util.HashMap.forEach(HashMap.java:1280)
    at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:217)
    at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:243)
    at net.minecraftforge.client.ForgeHooksClient.onItemColorsInit(ForgeHooksClient.java:209)
    at net.minecraft.client.renderer.color.ItemColors.func_186729_a(ItemColors.java:84)
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:421)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.main.Main.main(SourceFile:166)
    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.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$419/1461360262.call(Unknown Source)
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.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: 3575196368 bytes (3409 MB) / 4294967296 bytes (4096 MB) up to 4294967296 bytes (4096 MB)
    CPUs: 8
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 5.0.0-milestone.4+67+b1a340b
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services:
        /eventbus-2.0.0-milestone.1-service.jar eventbus PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar object_holder_definalize PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar runtime_enum_extender PLUGINSERVICE
        /accesstransformers-2.0.4-shadowed.jar accesstransformer PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar capability_inject_definalize PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar runtimedistcleaner PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar fml TRANSFORMATIONSERVICE
    FML: 31.1
    Forge: net.minecraftforge:31.1.19
    FML Language Providers:
        javafml@31.1
        minecraft@1
    Mod List:
        inventorysorter-1.15.2-17.0.0.jar Simple Inventory Sorter {inventorysorter@17.0.0 CREATE_REGISTRIES}
        Cucumber-1.15.2-3.0.1.jar Cucumber Library {cucumber@3.0.1 CREATE_REGISTRIES}
        NetherPortalFix_1.15.2-6.0.0.jar NetherPortalFix {netherportalfix@6.0.0 CREATE_REGISTRIES}
        jei-1.15.2-6.0.0.2.jar Just Enough Items {jei@6.0.0.2 CREATE_REGISTRIES}
        Mekanism-1.15.2-9.9.15.407.jar Mekanism {mekanism@9.9.15 CREATE_REGISTRIES}
        caelus-FORGE-1.15.2-2.0-beta1.jar Caelus API {caelus@FORGE-1.15.2-2.0-beta1 CREATE_REGISTRIES}
        Industrial+Agriculture[Core]-1.15.2-1.6.4.jar Industrial Agriculture {industrialagriculture@1.15.2-1.6.4 CREATE_REGISTRIES}
        colytra-FORGE-1.15.2-3.0.jar Colytra {colytra@FORGE-1.15.2-3.0 CREATE_REGISTRIES}
        RingOfRepair-1.15.2-1.1.17.jar Ring of Repair {ring_of_repair@1.1.17 CREATE_REGISTRIES}
        journeymap-1.15.2-5.7.0beta1.jar Journeymap {journeymap@1.15.2-5.7.0beta1 CREATE_REGISTRIES}
        Placebo-1.15.2-3.0.2.jar Placebo {placebo@3.0.2 CREATE_REGISTRIES}
        dankstorage-2.5.jar Dank Storage {dankstorage@2.5 ERROR}
        Powah-1.15.2-1.1.7.jar Powah {powah@1.1.7 CREATE_REGISTRIES}
        rangedpumps-0.7.1.jar Ranged Pumps {rangedpumps@0.7.1 CREATE_REGISTRIES}
        FarmingForBlockheads_1.15.2-6.1.0.jar Farming for Blockheads {farmingforblockheads@6.1.0 CREATE_REGISTRIES}
        mcjtylib-1.15-4.0.2-alpha.jar McJtyLib {mcjtylib@1.15-4.0.2-alpha CREATE_REGISTRIES}
        rftoolsbase-1.15-1.0.0-alpha.jar RFToolsBase {rftoolsbase@1.15-1.0.0-alpha CREATE_REGISTRIES}
        xnet-1.15-2.0.1-alpha.jar XNet {xnet@1.15-2.0.1-alpha CREATE_REGISTRIES}
        Apotheosis-1.15.2-3.0.6.jar Apotheosis {apotheosis@3.0.6 CREATE_REGISTRIES}
        Morpheus-1.15.2-4.2.47.jar Morpheus {morpheus@version CREATE_REGISTRIES}
        ClickMachine-1.15.2-3.0.1.jar Click Machine {clickmachine@3.0.1 CREATE_REGISTRIES}
        MekanismGenerators-1.15.2-9.9.15.407.jar Mekanism: Generators {mekanismgenerators@9.9.15 CREATE_REGISTRIES}
        PackingTape-1.15.2-0.9.5.jar Packing Tape {packingtape@0.9.5 CREATE_REGISTRIES}
        rftoolspower-1.15-2.0.1-alpha.jar RFToolsPower {rftoolspower@1.15-2.0.1-alpha CREATE_REGISTRIES}
        forge-1.15.2-31.1.19-universal.jar Forge {forge@31.1.19 CREATE_REGISTRIES}
        MysticalAgradditions-1.15.2-3.0.0.jar Mystical Agradditions {mysticalagradditions@3.0.0 CREATE_REGISTRIES}
        MysticalAgriculture-1.15.2-3.0.0.jar Mystical Agriculture {mysticalagriculture@3.0.0 CREATE_REGISTRIES}
        forge-1.15.2-31.1.19-client.jar Minecraft {minecraft@1.15.2 CREATE_REGISTRIES}
        industrial-foregoing-1.15.2-2.2.1-f27c515.jar Industrial Foregoing {industrialforegoing@2.2.1 CREATE_REGISTRIES}
        rftoolsutility-1.15-2.0.0-alpha.jar RFToolsUtility {rftoolsutility@1.15-2.0.0-alpha CREATE_REGISTRIES}
        titanium-1.15.2-2.3.6.jar Titanium {titanium@2.3.6 CREATE_REGISTRIES}
        SilentLib-1.15.2-4.6.0+48.jar Silent Lib {silentlib@4.6.0+48 CREATE_REGISTRIES}
        MekanismAdditions-1.15.2-9.9.15.407.jar Mekanism: Additions {mekanismadditions@9.9.15 CREATE_REGISTRIES}
        Lollipop-1.15.2-1.0.9.jar Lollipop {lollipop@1.0.9 CREATE_REGISTRIES}
        concreteconversion-1.15.2-4.0.0.0.jar Concrete Conversion {concreteconversion@1.15.2-4.0.0.0 CREATE_REGISTRIES}
        beesknees-1.15.2-1.0.1.jar The Bees Knees Mod {beesknees@1 CREATE_REGISTRIES}
        SilentGear-1.15.2-1.5.3+78.jar Silent Gear {silentgear@1.5.3+78 CREATE_REGISTRIES}
        forbidden_arcanus-1.15.2-1.1.jar Forbidden & Arcanus {forbidden_arcanus@1.15.1-1.0-beta-1 CREATE_REGISTRIES}
        rftoolsbuilder-1.15-2.0.0-alpha.jar RFToolsBuilder {rftoolsbuilder@1.15-2.0.0-alpha CREATE_REGISTRIES}
        curios-FORGE-1.15.2-2.0.1.jar Curios API {curios@FORGE-1.15.2-2.0.1 CREATE_REGISTRIES}
        rftoolsstorage-1.15-1.0.2-alpha.jar RFToolsStorage {rftoolsstorage@1.15-1.0.2-alpha CREATE_REGISTRIES}
        FastWorkbench-1.15.1-3.0.0.jar FastWorkbench {fastbench@3.0.0 CREATE_REGISTRIES}
        StorageDrawers-1.15.2-7.0.2.jar Storage Drawers {storagedrawers@1.15.2-7.0.1 CREATE_REGISTRIES}
        OreExcavation-1.7.151.jar Ore Excavation {oreexcavation@NONE CREATE_REGISTRIES}
        angelring-1.15.2-1.2.0.jar Angel Ring {angelring@1.2.0 CREATE_REGISTRIES}
        elevatorid-1.15.2-1.7.0.jar Elevator Mod {elevatorid@1.15.2-1.7.0 CREATE_REGISTRIES}
        MekanismTools-1.15.2-9.9.15.407.jar Mekanism: Tools {mekanismtools@9.9.15 CREATE_REGISTRIES}
        AppleSkin-mc1.15.2-forge-1.0.13.jar AppleSkin {appleskin@1.0.13 CREATE_REGISTRIES}
        AI-Improvements-1.15.2-0.3.0.jar AI-Improvements {aiimprovements@0.3.0 CREATE_REGISTRIES}
        solcarrot-1.15.2-1.9.4.jar Spice of Life: Carrot Edition {solcarrot@1.15.2-1.9.4 CREATE_REGISTRIES}
        RingOfAttraction-1.15.2-1.1.20.jar Ring of Attraction {ring_of_attraction@1.1.20 CREATE_REGISTRIES}
        Aquaculture-1.15.2-2.0.9.jar Aquaculture 2 {aquaculture@1.15.2-2.0.9 CREATE_REGISTRIES}
        SilentGems-1.15.2-3.5.1+84.jar Silent's Gems 3 {silentgems@3.5.1+84 CREATE_REGISTRIES}
        XL-Food-Mod-1.15.2-2.2.2.jar XL Food Mod {xlfoodmod@2.2.2 CREATE_REGISTRIES}
        Industrial+Agriculture[Mekanism]-1.15.2-1.6.1.jar Industrial Agriculture Plugin-Mekanism {iapmekanism@1.15.2-1.6.1 CREATE_REGISTRIES}
        FastLeafDecay-v20.jar FastLeafDecay {fastleafdecay@v20 CREATE_REGISTRIES}
        Cyclic-1.15.2-0.1.11.jar Cyclic {cyclic@1.15.2-0.1.11 CREATE_REGISTRIES}
    Launched Version: 1.15.2-forge-31.1.19
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: GeForce GTX 760 (192-bit)/PCIe/SSE2 GL version 4.6.0 NVIDIA 419.35, NVIDIA Corporation
    GL Caps: Using framebuffer using OpenGL 3.0
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    CPU: 8x AMD FX(tm)-8300 Eight-Core Processor

I appreciate everyones help.

Link to comment
Share on other sites

  • 4 months later...

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

    • As the title says i keep on crashing on forge 1.20.1 even without any mods downloaded, i have the latest drivers (nvidia) and vanilla minecraft works perfectly fine for me logs: https://pastebin.com/5UR01yG9
    • Hello everyone, I'm making this post to seek help for my modded block, It's a special block called FrozenBlock supposed to take the place of an old block, then after a set amount of ticks, it's supposed to revert its Block State, Entity, data... to the old block like this :  The problem I have is that the system breaks when handling multi blocks (I tried some fix but none of them worked) :  The bug I have identified is that the function "setOldBlockFields" in the item's "setFrozenBlock" function gets called once for the 1st block of multiblock getting frozen (as it should), but gets called a second time BEFORE creating the first FrozenBlock with the data of the 1st block, hence giving the same data to the two FrozenBlock :   Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=head] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@73681674 BlockEntityData : id:"minecraft:bed",x:3,y:-60,z:-6} Old Block Fields set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=3, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} Frozen Block Entity set BlockState : Block{minecraft:black_bed}[facing=east,occupied=false,part=foot] BlockPos{x=2, y=-60, z=-6} BlockEntity : net.minecraft.world.level.block.entity.BedBlockEntity@6d1aa3da BlockEntityData : {id:"minecraft:bed",x:2,y:-60,z:-6} here is the code inside my custom "freeze" item :    @Override     public @NotNull InteractionResult useOn(@NotNull UseOnContext pContext) {         if (!pContext.getLevel().isClientSide() && pContext.getHand() == InteractionHand.MAIN_HAND) {             BlockPos blockPos = pContext.getClickedPos();             BlockPos secondBlockPos = getMultiblockPos(blockPos, pContext.getLevel().getBlockState(blockPos));             if (secondBlockPos != null) {                 createFrozenBlock(pContext, secondBlockPos);             }             createFrozenBlock(pContext, blockPos);             return InteractionResult.SUCCESS;         }         return super.useOn(pContext);     }     public static void createFrozenBlock(UseOnContext pContext, BlockPos blockPos) {         BlockState oldState = pContext.getLevel().getBlockState(blockPos);         BlockEntity oldBlockEntity = oldState.hasBlockEntity() ? pContext.getLevel().getBlockEntity(blockPos) : null;         CompoundTag oldBlockEntityData = oldState.hasBlockEntity() ? oldBlockEntity.serializeNBT() : null;         if (oldBlockEntity != null) {             pContext.getLevel().removeBlockEntity(blockPos);         }         BlockState FrozenBlock = setFrozenBlock(oldState, oldBlockEntity, oldBlockEntityData);         pContext.getLevel().setBlockAndUpdate(blockPos, FrozenBlock);     }     public static BlockState setFrozenBlock(BlockState blockState, @Nullable BlockEntity blockEntity, @Nullable CompoundTag blockEntityData) {         BlockState FrozenBlock = BlockRegister.FROZEN_BLOCK.get().defaultBlockState();         ((FrozenBlock) FrozenBlock.getBlock()).setOldBlockFields(blockState, blockEntity, blockEntityData);         return FrozenBlock;     }  
    • It is an issue with quark - update it to this build: https://www.curseforge.com/minecraft/mc-mods/quark/files/3642325
    • Remove Instant Massive Structures Mod from your server     Add new crash-reports with sites like https://paste.ee/  
  • Topics

×
×
  • Create New...

Important Information

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