Jump to content

Recommended Posts

Posted (edited)

I recently created this 1.15.2 minecraft modpack and I'm having trouble with initializing it. So far I have tried: reinstalling minecraft and running it without industrial agriculture and bonsai trees, but it still doesn't seem to work. If anyone could help me out that would be great. Also I know close to nothing about java or coding just so you know.

 

Here is the crash report:

---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 6/15/20 6:20 PM
Description: Initializing game

java.lang.NullPointerException: Initializing game
    at net.minecraft.client.renderer.color.BlockColors.func_186722_a(BlockColors.java:97) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at com.davenonymous.bonsaitrees2.misc.PotColorizer.init(PotColorizer.java:33) ~[?:2.1.2.6] {re:classloading}
    at net.minecraftforge.eventbus.ASMEventHandler_471_PotColorizer_init_Block.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.2.0-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.0-service.jar:?] {}
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:168) ~[?:31.2] {re:classloading}
    at net.minecraftforge.fml.ModLoader.lambda$postEvent$31(ModLoader.java:260) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader$$Lambda$8832/172122448.accept(Unknown Source) ~[?:?] {}
    at java.util.HashMap.forEach(HashMap.java:1280) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:218) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:260) ~[?:?] {re:classloading}
    at net.minecraftforge.client.ForgeHooksClient.onBlockColorsInit(ForgeHooksClient.java:207) ~[?:?] {re:classloading}
    at net.minecraft.client.renderer.color.BlockColors.func_186723_a(BlockColors.java:76) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:419) [?:?] {re:classloading,pl:accesstransformer:B,xf:fml:codechickenlib:IItemRenderer,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.2.0.jar:31.2] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$421/2041386868.call(Unknown Source) [forge-1.15.2-31.2.0.jar:31.2] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.1.0.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.1.0.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.1.0.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.1.0.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.0.jar:?] {}


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

-- Head --
Thread: Render thread
Stacktrace:
    at net.minecraft.client.renderer.color.BlockColors.func_186722_a(BlockColors.java:97)
    at com.davenonymous.bonsaitrees2.misc.PotColorizer.init(PotColorizer.java:33)
    at net.minecraftforge.eventbus.ASMEventHandler_471_PotColorizer_init_Block.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$31(ModLoader.java:260)
    at net.minecraftforge.fml.ModLoader$$Lambda$8832/172122448.accept(Unknown Source)
    at java.util.HashMap.forEach(HashMap.java:1280)
    at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:218)
    at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:260)
    at net.minecraftforge.client.ForgeHooksClient.onBlockColorsInit(ForgeHooksClient.java:207)
    at net.minecraft.client.renderer.color.BlockColors.func_186723_a(BlockColors.java:76)
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:419)

-- 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$421/2041386868.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: 1191885952 bytes (1136 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)
    CPUs: 16
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 5.1.0+69+master.79f13f7
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /eventbus-2.2.0-service.jar eventbus PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-2.1.1-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar runtimedistcleaner PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar fml TRANSFORMATIONSERVICE 
    FML: 31.2
    Forge: net.minecraftforge:31.2.0
    FML Language Providers: 
        [email protected]
        minecraft@1
        [email protected]
    Mod List: 
        SlimyBoyos-2.0.1.jar SlimyBoyos {[email protected] CREATE_REGISTRIES}
        AoV-1.15-0.14.0.jar Angel of Vengeance {[email protected] CREATE_REGISTRIES}
        SlashBlade-1.15-0.0.2.jar Slash Blade {[email protected] CREATE_REGISTRIES}
        Uppers-0.2.12.jar Uppers {[email protected] CREATE_REGISTRIES}
        Glacia-15.2.2.jar §9§lGlacia§r {greenapple_glacia@§915.2.2§r CREATE_REGISTRIES}
        SilentMechanisms-1.15.2-0.7.2+52.jar Silent's Mechanisms {[email protected]+52 CREATE_REGISTRIES}
        essentials-1.15.2-2.7.1.jar Essentials {[email protected] CREATE_REGISTRIES}
        BetterCaves-1.15.2-1.0.jar YUNG's Better Caves {[email protected] CREATE_REGISTRIES}
        ForgeEndertech-1.15.2-6.0.3.2-build.0042.jar Forge Endertech {[email protected] CREATE_REGISTRIES}
        Powah-1.15.2-1.1.14.jar Powah {[email protected] CREATE_REGISTRIES}
        WitherSkeletonTweaks-1.15.1-4.0.0.jar Wither Skeleton Tweaks {[email protected] CREATE_REGISTRIES}
        Reliquary-1.15.2-1.3.4.995.jar Reliquary {[email protected] CREATE_REGISTRIES}
        DarkUtilities-1.15.2-3.0.5.jar Dark Utilities {[email protected] CREATE_REGISTRIES}
        Apotheosis-1.15.2-3.1.2.jar Apotheosis {[email protected] CREATE_REGISTRIES}
        Hwyla-forge-1.10.8-B72_1.15.2.jar Waila {waila@version CREATE_REGISTRIES}
        speedyhoppers-1.15.2-2.jar Speedy Hoppers {[email protected] CREATE_REGISTRIES}
        SnowRealMagic-1.15.2-1.7.5.jar Snow! Real Magic! {[email protected] CREATE_REGISTRIES}
        Wither+Totems+[Forge]-0.2.jar Wither Skeleton Totems {[email protected] CREATE_REGISTRIES}
        MysticalAgradditions-1.15.2-3.0.0.jar Mystical Agradditions {[email protected] CREATE_REGISTRIES}
        industrial-foregoing-1.15.2-2.3.0-6f57752.jar Industrial Foregoing {[email protected] CREATE_REGISTRIES}
        repurposedstructures-1.15.2-1.4.4.jar Repurposed Structures {[email protected] CREATE_REGISTRIES}
        BiomesOPlenty-1.15.2-10.0.0.363-universal.jar Biomes O' Plenty {[email protected] CREATE_REGISTRIES}
        phosphor-forge-mc1.15.2-0.5.2+build.4.jar Phosphor {[email protected]+build.4 CREATE_REGISTRIES}
        Blur-1.1.0-1.jar Blur {[email protected] CREATE_REGISTRIES}
        SilentGear-1.15.2-1.6.4+90.jar Silent Gear {[email protected]+90 CREATE_REGISTRIES}
        JustARaftMod-1.15.2-1.1.3.jar Just A Raft Mod {[email protected] CREATE_REGISTRIES}
        cazfps_landscape_SPARCLE_1.15.2v3.jar sparcle_1.12.2 {[email protected] CREATE_REGISTRIES}
        randomenchants-3.1.0.jar Random Enchants {[email protected] ERROR}
        curios-FORGE-1.15.2-2.0.2.2.jar Curios API {[email protected] CREATE_REGISTRIES}
        Botania-r1.15-384.jar Botania {[email protected] CREATE_REGISTRIES}
        extlights-2.0.jar Extended Lights {[email protected] CREATE_REGISTRIES}
        angelring-1.15.2-1.2.0.jar Angel Ring {[email protected] CREATE_REGISTRIES}
        obfuscate-0.4.3-1.15.2.jar Obfuscate {[email protected] CREATE_REGISTRIES}
        Fertilization_1.15.2-4.0.0.jar Fertilization {[email protected] CREATE_REGISTRIES}
        furniture-7.0.0-pre16-1.15.1.jar MrCrayfish's Furniture Mod {[email protected] CREATE_REGISTRIES}
        the_bumblezone-1.15.2-1.3.5.jar The Bumblezone {[email protected] CREATE_REGISTRIES}
        ScalingHealth-1.15.2-3.0.7+54.jar Scaling Health {[email protected]+54 CREATE_REGISTRIES}
        CodeChickenLib-1.15.2-3.3.0.373-universal.jar CodeChicken Lib {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Industrial+Foregoing]-1.15.2-1.6.1.jar Industrial Agriculture Plugin-Industrial Foregoing {[email protected] CREATE_REGISTRIES}
        Kiwi-1.15.2-2.6.5.jar Kiwi {[email protected] CREATE_REGISTRIES}
        enigmatica-0.3.1.jar Enigmatica Mod {[email protected] CREATE_REGISTRIES}
        AdFinders-1.15.2-4.0.5.0-build.0020.jar Advanced Finders {[email protected] CREATE_REGISTRIES}
        Craft_and_Hunt_V1.1.0_MC_1.15.2.jar Craft and Hunt {[email protected] CREATE_REGISTRIES}
        animalnet-v1.15.2+Forge+b1.jar AnimalNet {[email protected] Forge b1 CREATE_REGISTRIES}
        torchslabmod-1.15.2_v1.6.13.jar Torch Slab Mod {[email protected] CREATE_REGISTRIES}
        Mine+and+Slash-1.15.2-3.6.14 (3).jar Mine and Slash {[email protected] CREATE_REGISTRIES}
        jei-1.15.2-6.0.0.4.jar Just Enough Items {[email protected] CREATE_REGISTRIES}
        EverlastingAbilities-1.15.2-1.6.1.jar EverlastingAbilities {[email protected] CREATE_REGISTRIES}
        lithium-mc1.15.2-forge-0.4.6-rc3-mod.jar Lithium {[email protected] CREATE_REGISTRIES}
        AttributeFix-1.15.2-7.0.2.jar AttributeFix {[email protected] CREATE_REGISTRIES}
        goblintraders-1.2.0-1.15.2.jar Goblin Traders {[email protected] CREATE_REGISTRIES}
        Mekanism-1.15.2-9.10.7.420.jar Mekanism {[email protected] CREATE_REGISTRIES}
        caelus-FORGE-1.15.2-2.0-beta3.jar Caelus API {[email protected] CREATE_REGISTRIES}
        colytra-FORGE-1.15.2-3.0.jar Colytra {[email protected] CREATE_REGISTRIES}
        RingOfRepair-1.15.2-1.1.30.jar Ring of Repair {[email protected] CREATE_REGISTRIES}
        NaturesCompass-1.15.2-1.8.5.jar Nature's Compass {[email protected] CREATE_REGISTRIES}
        engineerstools-1.15.2-1.0.7.jar Engineer's Tools {[email protected] CREATE_REGISTRIES}
        curioofundying-FORGE-1.15.2-3.0.jar Curio of Undying {[email protected] CREATE_REGISTRIES}
        RingOfTeleport-1.15.2-1.1.30.jar Ring of Teleport {[email protected] CREATE_REGISTRIES}
        snowundertrees-1.15.2-v1.1.1.jar Snow Under Trees {[email protected] CREATE_REGISTRIES}
        EnhancedVanilla_Snapshot_20w22c-Forge-1.15.2.31.2.0.jar Enhanced Vanilla {enhancedvanilla@Snapshot 20w22c CREATE_REGISTRIES}
        travellersboots-1.15.2-1.3.2.jar Traveller's Boots {[email protected] CREATE_REGISTRIES}
        magicmirror-1.4.8.jar Magic Mirrors {[email protected] CREATE_REGISTRIES}
        immersive-portals-0.20(forMc1.15withForge).jar Immersive Portals {[email protected] CREATE_REGISTRIES}
        CraftTweaker-1.15.2-6.0.0.24.jar CraftTweaker {[email protected] CREATE_REGISTRIES}
        forge-1.15.2-31.2.0-universal.jar Forge {[email protected] CREATE_REGISTRIES}
        ironchest-1.15.2-10.0.3.jar Iron Chests {[email protected] CREATE_REGISTRIES}
        forge-1.15.2-31.2.0-client.jar Minecraft {[email protected] CREATE_REGISTRIES}
        luckyblock-1.15.2-1.jar Lucky Block {[email protected] CREATE_REGISTRIES}
        instahouses-1.15.2-1.1.1.jar Slashkings InstaHouses {[email protected] CREATE_REGISTRIES}
        pamhc2crops-1.15.2-1.0.5.jar Pam's HarvestCraft 2 Crops {pamhc2crops@version CREATE_REGISTRIES}
        allthemodium-0.9.2-1.15.2-31.1.18.jar Allthemodium {[email protected] CREATE_REGISTRIES}
        RingOfGrowth-1.15.2-1.1.31.jar Ring of Growth {[email protected] CREATE_REGISTRIES}
        dimdungeons-1.06-forge-1.15.2.jar Dimensional Dungeons {[email protected] CREATE_REGISTRIES}
        pamhc2foodcore-1.15.2-1.0.3.jar Pam's HarvestCraft 2 Food Core {pamhc2foodcore@version CREATE_REGISTRIES}
        gravestone-1.17.5.jar Gravestone Mod {[email protected] CREATE_REGISTRIES}
        lava-monster-1.15.2-1.0.4.jar Lava Monster {[email protected] CREATE_REGISTRIES}
        AutoRegLib-1.5-40.jar AutoRegLib {[email protected] CREATE_REGISTRIES}
        DoubleSlabs-1.15-2.3.0.jar Double Slabs {[email protected] CREATE_REGISTRIES}
        backpacked-1.4.1-1.15.2.jar Backpacked {[email protected] CREATE_REGISTRIES}
        themidnight-0.5.7-3 (1).jar The Midnight {[email protected] CREATE_REGISTRIES}
        structurize-0.10.313-RELEASE.jar Structurize {[email protected] CREATE_REGISTRIES}
        FastFurnace-1.15.1-3.0.0.jar FastFurnace {[email protected] CREATE_REGISTRIES}
        AppleSkin-mc1.15.2-forge-1.0.13.jar AppleSkin {[email protected] CREATE_REGISTRIES}
        Aquaculture-1.15.2-2.0.14.jar Aquaculture 2 {[email protected] CREATE_REGISTRIES}
        XL-Food-Mod-1.15.2-2.2.2.jar XL Food Mod {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Mekanism]-1.15.2-1.6.1.jar Industrial Agriculture Plugin-Mekanism {[email protected] CREATE_REGISTRIES}
        CosmeticArmorReworked-1.15.2-v3a.jar CosmeticArmorReworked {[email protected] CREATE_REGISTRIES}
        EnderMail-1.15.2-1.1.0.jar Ender Mail {[email protected] CREATE_REGISTRIES}
        lootbagmod-1.15.1-1.5.3.jar Loot Bag Mod {[email protected] CREATE_REGISTRIES}
        CyclopsCore-1.15.2-1.6.2.jar Cyclops Core {[email protected] CREATE_REGISTRIES}
        UnionLib-1.15.2-1.2.1.jar UnionLib {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Core]-1.15.2-1.7.0.jar Industrial Agriculture {[email protected] CREATE_REGISTRIES}
        TerraForged-1.15.2-0.0.14.jar TerraForged {[email protected] CREATE_REGISTRIES}
        Placebo-1.15.2-3.0.2.jar Placebo {[email protected] CREATE_REGISTRIES}
        citadel-1.1.7.jar Citadel {[email protected] CREATE_REGISTRIES}
        rats-5.3.0-1.15.2.jar Rats {[email protected] CREATE_REGISTRIES}
        gardenofglass-1.2.jar Garden of Glass {[email protected] CREATE_REGISTRIES}
        potionofbees-1.15.2-1.0.1.jar Potion of Bees {[email protected] CREATE_REGISTRIES}
        Bookshelf-1.15.2-5.6.38.jar Bookshelf {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Powah]-1.15.2-1.6.0.jar Industrial Agriculture Plugin-Powah {[email protected] CREATE_REGISTRIES}
        ProgressiveBosses-2.1.5-mc1.15.2.jar Progressive Bosses {[email protected] CREATE_REGISTRIES}
        mcw-doors-1.0.0-mc1.15.2.jar Macaw's Doors {[email protected] CREATE_REGISTRIES}
        MekanismGenerators-1.15.2-9.10.7.420.jar Mekanism: Generators {[email protected] CREATE_REGISTRIES}
        FpsReducer-mc1.15.2-1.15.jar FPS Reducer {[email protected] CREATE_REGISTRIES}
        dragonmounts-1.0.3.jar Dragon Mounts Legacy {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Gobber]-1.15.2-1.6.0.jar Industrial Agriculture Plugin-Gobber {[email protected] CREATE_REGISTRIES}
        anviltweaks-2.3.jar Anvil Tweaks {[email protected] CREATE_REGISTRIES}
        AmbientSounds_v3.0.20_mc1.15.2.jar Ambient Sounds {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Silent's+Mechanisms]-1.15.2-1.6.0.jar Industrial Agriculture Plugin-Silent's Mechanisms {[email protected] CREATE_REGISTRIES}
        MekanismAdditions-1.15.2-9.10.7.420.jar Mekanism: Additions {[email protected] CREATE_REGISTRIES}
        valhelsia_structures-15.0.3.jar Valhelsia Structures {[email protected] CREATE_REGISTRIES}
        Lollipop-1.15.2-1.0.15.jar Lollipop {[email protected] CREATE_REGISTRIES}
        vehicle-mod-0.44.0-1.15.2.jar MrCrayfish's Vehicle Mod {[email protected] CREATE_REGISTRIES}
        simplefarming-1.15.2-1.2.9.jar Simple Farming {[email protected] CREATE_REGISTRIES}
        Bountiful-1.15.2-3.1.1 (1).jar Bountiful {[email protected] CREATE_REGISTRIES}
        goprone-1.15.x-1.3.0.jar GoProne {[email protected] CREATE_REGISTRIES}
        Patchouli-1.15.2-1.2-33.jar Patchouli {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Silent's+Gems]-1.15.2-1.6.6.jar Industrial Agriculture Plugin-Silent's Gems {[email protected] CREATE_REGISTRIES}
        enchantedwolves-1.4.2.jar Enchanted Wolves {[email protected] CREATE_REGISTRIES}
        RingOfBlink-1.15.2-1.1.28.jar Ring of Blink {[email protected] CREATE_REGISTRIES}
        RingOfMiner-1.15.2-1.1.28.jar Ring of Miner {[email protected] CREATE_REGISTRIES}
        OreExcavation-1.7.151.jar Ore Excavation {oreexcavation@NONE CREATE_REGISTRIES}
        lostcities-1.15-3.0.1-alpha.jar LostCities {[email protected] CREATE_REGISTRIES}
        libnonymous-1.15.2-1.1.1.5.jar Libnonymous {[email protected] CREATE_REGISTRIES}
        elevatorid-1.15.2-1.7.1.jar Elevator Mod {[email protected] CREATE_REGISTRIES}
        Survive-1.15.2-1.4.1.jar Survive {[email protected] CREATE_REGISTRIES}
        Gobber2-1.15.2-2.2.98.jar Gobber 2 {[email protected] CREATE_REGISTRIES}
        RingOfEnderchest-1.15.2-1.1.31.jar Ring of Enderchest {[email protected] CREATE_REGISTRIES}
        EnigmaticLegacy-1.7.0.jar Enigmatic Legacy {[email protected] CREATE_REGISTRIES}
        AttainedDrops-1.15.2-6.0.7.jar Attained Drops {[email protected] CREATE_REGISTRIES}
        Survivalist-1.15.2-3.1.0.jar Survivalist {[email protected] CREATE_REGISTRIES}
        MekanismTools-1.15.2-9.10.7.420.jar Mekanism: Tools {[email protected] CREATE_REGISTRIES}
        BouncingBalls-1.14.4-6.0.2.jar Bouncing Balls {[email protected] CREATE_REGISTRIES}
        AI-Improvements-1.15.2-0.3.0.jar AI-Improvements {[email protected] CREATE_REGISTRIES}
        netherpspr_1.15-3.0.jar Nether Portal Spread {[email protected] CREATE_REGISTRIES}
        [1.15.2]+Valtiel+s+Girl+Armor+Mod-2.9.7.jar Valtiel s Girl Armor Mod {[email protected] CREATE_REGISTRIES}
        Cyclic-1.15.2-0.4.1.jar Cyclic {[email protected] CREATE_REGISTRIES}
        Cursed-1.15.2-2.0.6.jar Cursed {[email protected] CREATE_REGISTRIES}
        Cucumber-1.15.2-3.0.6.jar Cucumber Library {[email protected] CREATE_REGISTRIES}
        pamhc2trees-1.15.2-1.0.5.jar Pam's HarvestCraft 2 Fruit Trees {pamhc2trees@version CREATE_REGISTRIES}
        miningoverhaul-1.15.2-r1.jar Mining Overhaul {[email protected] CREATE_REGISTRIES}
        metalbarrels-2.1.jar Metal Barrels {[email protected] CREATE_REGISTRIES}
        Abnormals-Core-1.15.2-v1.0.4.jar Abnormals Core {[email protected] CREATE_REGISTRIES}
        Upgrade-Aquatic-1.15.2-v1.6.1.jar Upgrade Aquatic {[email protected] CREATE_REGISTRIES}
        Savage-and-Ravage-1.15.2-v1.1.2.jar Savage & Ravage {[email protected] CREATE_REGISTRIES}
        Buzzier-Bees-1.15.2-v1.5.0.jar Buzzier Bees {[email protected] CREATE_REGISTRIES}
        ropebridge-1.15.1-1.2.jar Rope Bridge {[email protected] CREATE_REGISTRIES}
        Bloomful-1.15.2-v1.4.0.jar Bloomful {bloomful@NONE CREATE_REGISTRIES}
        MS+Auto-Compat-1.15.2-1.2.0 (1).jar M&S Auto-Compat 1.15.1 {[email protected] CREATE_REGISTRIES}
        Waystones_1.15.2-6.0.1.jar Waystones {[email protected] CREATE_REGISTRIES}
        Clumps-5.0.2.jar Clumps {[email protected] CREATE_REGISTRIES}
        Gems+and+Crystals-1.15.2-1.2.8.jar Gems and Crystals {[email protected] CREATE_REGISTRIES}
        gardentools-1.15.2-1.0.0.jar Garden Tools {[email protected] CREATE_REGISTRIES}
        betteranimalsplus-1.15.2-8.2.1.96.jar Better Animals Plus {[email protected] CREATE_REGISTRIES}
        Nimble-1.15.2-0.2.0.jar Nimble {nimble@NONE CREATE_REGISTRIES}
        BonsaiTrees-2.1.2.6.jar Bonsai Trees 2 {[email protected] CREATE_REGISTRIES}
        mahoutsukai-1.15.2-v1.18.0.jar Mahou Tsukai {[email protected] CREATE_REGISTRIES}
        enchantability-8.1.jar Enchantability {[email protected] CREATE_REGISTRIES}
        EnderStorage-1.15.2-2.5.0.143-universal.jar EnderStorage {[email protected] CREATE_REGISTRIES}
        doorsofinfinity-1.0.1 (1).jar Doors of Infinity {[email protected] CREATE_REGISTRIES}
        Swamp-Expansion-1.15.2-v1.7.1.jar Swamp Expansion {swampexpansion@NONE CREATE_REGISTRIES}
        MysticalAgriculture-1.15.2-3.0.5.jar Mystical Agriculture {[email protected] CREATE_REGISTRIES}
        UselessSword-1.15.2-V1.1.2.jar Useless Sword {[email protected] CREATE_REGISTRIES}
        extraanvils-3.1a.jar Extra Anvils {[email protected] CREATE_REGISTRIES}
        Advanced-Capes-Mod-1.15.2.jar Advanced Capes {[email protected] CREATE_REGISTRIES}
        endportrec_1.15-1.1.jar End Portal Recipe {[email protected] CREATE_REGISTRIES}
        EnchantmentDescriptions-1.15.2-2.0.8.jar EnchantmentDescriptions {[email protected] CREATE_REGISTRIES}
        swingthroughgrass-1.15.2-1.4.0.jar SwingThroughGrass {[email protected] CREATE_REGISTRIES}
        playerplates-1.15-forge-1.0.0.jar Player Plates {[email protected] CREATE_REGISTRIES}
        titanium-1.15.2-2.4.0.jar Titanium {[email protected] CREATE_REGISTRIES}
        NaturalProgression-1.15.2-1.3.0.jar Natural Progression {[email protected] CREATE_REGISTRIES}
        SilentLib-1.15.2-4.6.1+49.jar Silent Lib {[email protected]+49 CREATE_REGISTRIES}
        Atmospheric-1.15.2-1.4.0.jar Atmospheric {[email protected] CREATE_REGISTRIES}
        Quark-r2.1-237.jar Quark {[email protected] CREATE_REGISTRIES}
        Charm-1.15.2-1.5.7.jar Charm {[email protected] CREATE_REGISTRIES}
        extragolems-10.2.0.jar Extra Golems {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Omega+Craft]-1.15.2-1.6.1.jar Industrial Agriculture Plugin-Omega Craft {[email protected] CREATE_REGISTRIES}
        StorageDrawers-1.15.2-7.0.2.jar Storage Drawers {[email protected] CREATE_REGISTRIES}
        simplytea-1.15.2-2.2.1.jar Simply Tea {[email protected] CREATE_REGISTRIES}
        InventoryHud_1.15.1-1.15.2.forge-2.6.1.jar Inventory HUD+(Forge edition) {[email protected] CREATE_REGISTRIES}
        minecolonies-0.10.771-RELEASE-universal (1).jar Minecolonies {[email protected] CREATE_REGISTRIES}
        engineersdecor-1.15.2-1.0.20-b7.jar Engineer's Decor {[email protected] CREATE_REGISTRIES}
        solcarrot-1.15.2-1.9.6.jar Spice of Life: Carrot Edition {[email protected] CREATE_REGISTRIES}
        ruby-1.15.2.jar Just Another Ruby Mod {ruby@version CREATE_REGISTRIES}
        moredragoneggs-1.0.jar More Dragon Eggs {[email protected] CREATE_REGISTRIES}
        RingOfAttraction-1.15.2-1.1.34.jar Ring of Attraction {[email protected] CREATE_REGISTRIES}
        SilentGems-1.15.2-3.5.3+86.jar Silent's Gems 3 {[email protected]+86 CREATE_REGISTRIES}
        CHAS+v1.3+for+1.15.jar Craftable Horse Armour {[email protected] CREATE_REGISTRIES}
        BetterPvPFairPlay_20.12.2_Forge_1.15.2.jar Better PVP Fair-Play {[email protected] CREATE_REGISTRIES}
        SoundFilters-0.13_for_1.15.2.jar Sound Filters {[email protected]_for_1.15.2 CREATE_REGISTRIES}
        thutcore-1.15.2-7.2.1.jar Thut Core {[email protected] CREATE_REGISTRIES, [email protected] CREATE_REGISTRIES}
        thuttech-1.15.2-8.2.2.jar Thut Elevators {[email protected] CREATE_REGISTRIES}
        Omega+Craft+4.1.1b.jar Omega Craft {[email protected] CREATE_REGISTRIES}
    Launched Version: 1.15.2-forge-31.2.0
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: GeForce RTX 2060 SUPER/PCIe/SSE2 GL version 4.6.0 NVIDIA 446.14, 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: 16x AMD Ryzen 7 2700X Eight-Core Processor 

debug.log

Edited by Lil_Chomp
Posted

Please post the debug.log.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

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 know that this may be a basic question, but I am very new to modding. I am trying to have it so that I can create modified Vanilla loot tables that use a custom enchantment as a condition (i.e. enchantment present = item). However, I am having trouble trying to implement this; the LootItemRandomChanceWithEnchantedBonusCondition constructor needs a Holder<Enchantment> and I am unable to use the getOrThrow() method on the custom enchantment declared in my mod's enchantments class. Here is what I have so far in the GLM:   protected void start(HolderLookup.Provider registries) { HolderLookup.RegistryLookup<Enchantment> registrylookup = registries.lookupOrThrow(Registries.ENCHANTMENT); LootItemRandomChanceWithEnchantedBonusCondition lootItemRandomChanceWithEnchantedBonusCondition = new LootItemRandomChanceWithEnchantedBonusCondition(0.0f, LevelBasedValue.perLevel(0.07f), registrylookup.getOrThrow(*enchantment here*)); this.add("nebu_from_deepslate", new AddItemModifier(new LootItemCondition[]{ LootItemBlockStatePropertyCondition.hasBlockStateProperties(Blocks.DEEPSLATE).build(), LootItemRandomChanceCondition.randomChance(0.25f).build(), lootItemRandomChanceWithEnchantedBonusCondition }, OrichalcumItems.NEBU.get())); }   Inserting Enchantments.[vanilla enchantment here] actually works but trying to declare an enchantment from my custom enchantments class as [mod enchantment class].[custom enchantment] does not work even though they are both a ResourceKey and are registered in Registries.ENCHANTMENT. Basically, how would I go about making it so that a custom enchantment declared as a ResourceKey<Enchantment> of value ResourceKey.create(Registries.ENCHANTMENT, ResourceLocation.fromNamespaceAndPath([modid], [name])), declared in a seperate enchantments class, can be used in the LootItemRandomChanceWithEnchantedBonusCondition constructor as a Holder? I can't use getOrThrow() because there is no level or block entity/entity in the start() method and it is running as datagen. It's driving me nuts.
    • Hi here is an update. I was able to fix the code so my mod does not crash Minecraft. Please understand that I am new to modding but I honestly am having a hard time understanding how anyone can get this to work without having extensive programming and debugging experience as well as searching across the Internet, multiple gen AI bots (claude, grok, openai), and examining source code hidden in the gradle directory and in various github repositories. I guess I am wrong because clearly there are thousands of mods so maybe I am just a newbie. Ok, rant over, here is a step by step summary so others can save the 3 days it took me to figure this out.   1. First, I am using forge 54.1.0 and Minecraft 1.21.4 2. I am creating a mod to add a shotgun to Minecraft 3. After creating the mod and compiling it, I installed the .jar file to the proper directory in Minecraft and used 1.21.4-forge-54.1.0 4. The mod immediately crashed with the error: Caused by: java.lang.NullPointerException: Item id not set 5. Using the stack trace, I determined that the Exception was being thrown from the net.minecraft.world.item.Item.Properties class 6. It seems that there are no javadocs for this class, so I used IntelliJ which was able to provide a decompiled version of the class, which I then examined to see the source of the error. Side question: Are there javadocs? 7. This method, specifically, was the culprit: protected String effectiveDescriptionId() {      return this.descriptionId.get(Objects.requireNonNull(this.id, "Item id not set"));  } 8. Now my quest was to determine how to set this.id. Looking at the same source file, I determined there was another method:  public Item.Properties setId(ResourceKey<Item> pId) {             this.id = pId;             return this;   } 9. So now, I need to figure out how to call setId(). This required working backwards a bit. Starting from the constructor, I stubbed out the variable p which is of type Item.Properties public static final RegistryObject<Item> SHOTGUN = ITEMS.register("shotgun", () -> new ShotgunItem(p)); Rather than putting this all on one line, I split it up for readability like this: private static final Item.Properties p = new Item.Properties().useItemDescriptionPrefix().setId(rk); Here is was the missing function, setId(), which takes a type of ResourceKey<Item>. My next problem is that due to the apparent lack of documentation (I tried searching the docs on this site) I could not determine the full import path to ResourceKey. I did some random searching on the Internet and stumbled across a Github repository which gave two clues: import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; Then I created the rk variable like this: private static ResourceKey<Item> rk = ResourceKey.create(Registries.ITEM, ResourceLocation.parse("modid:shotgunmod")); And now putting it all together in order: private static ResourceKey<Item> rk = ResourceKey.create(Registries.ITEM, ResourceLocation.parse("modid:shotgunmod")); private static final Item.Properties p = new Item.Properties().useItemDescriptionPrefix().setId(rk); public static final RegistryObject<Item> SHOTGUN = ITEMS.register("shotgun", () -> new ShotgunItem(p)); This compiled and the mod no longer crashes. I still have more to do on it, but hopefully this will save someone hours. I welcome any feedback and if I missed some obvious modding resource or tutorial that has this information. If not, I might suggest we add it somewhere for people trying to write a mod that doesn't crash. Thank you !!!  
    • I will keep adding to this thread with more information in case anyone can help, or at the very least I can keep my troubleshooting organized. I decided to downgrade to 54.1.0 in the hopes that this would fix the issue but it didn't. At least now I am on a "recommended" version. The crash report did confirm my earlier post that the Exception is coming from effectiveDescriptionId(). I'll continue to see if I can find a way to set the ID manually.   Caused by: java.lang.NullPointerException: Item id not set         at java.base/java.util.Objects.requireNonNull(Objects.java:259) ~[?:?]         at TRANSFORMER/[email protected]/net.minecraft.world.item.Item$Properties.effectiveDescriptionId(Item.java:465) ~[forge-1.21.4-54.1.0-client.jar!/:?]         at TRANSFORMER/[email protected]/net.minecraft.world.item.Item.<init>(Item.java:111) ~[forge-1.21.4-54.1.0-client.jar!/:?]         at TRANSFORMER/[email protected]/com.example.shotgunmod.ShotgunItem.<init>(ShotgunItem.java:19) ~[shotgunmod-1.0.0.jar!/:1.0.0]         at TRANSFORMER/[email protected]/com.example.shotgunmod.ModItems.lambda$static$0(ModItems.java:15) ~[shotgunmod-1.0.0.jar!/:1.0.0]         at TRANSFORMER/[email protected]/net.minecraftforge.registries.DeferredRegister$EventDispatcher.lambda$handleEvent      
    • It just randomly stop working after a rebooted my dedicated server PLEASE HELP!   com.google.gson   Failed to start the minecraft server com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive; at path $  
  • Topics

×
×
  • Create New...

Important Information

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