Jump to content

Custom biome causes game to crash


Nicholas Hammond

Recommended Posts

---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!

Time: 6/8/20 3:03 PM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
    at net.minecraft.client.Minecraft.getAmbientMusicType(Minecraft.java:2016) ~[forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.audio.MusicTicker.tick(MusicTicker.java:23) ~[forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.runTick(Minecraft.java:1407) ~[forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:904) ~[forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.run(Minecraft.java:384) ~[forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(Main.java:128) ~[forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_251] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_251] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_251] {}
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_251] {}
    at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55) ~[forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-4.1.0.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-4.1.0.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-4.1.0.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-4.1.0.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-4.1.0.jar:?] {}
    at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102) [forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-recomp.jar:?] {}


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

-- Head --
Thread: Client thread
Stacktrace:
    at net.minecraft.client.Minecraft.getAmbientMusicType(Minecraft.java:2016)
    at net.minecraft.client.audio.MusicTicker.tick(MusicTicker.java:23)

-- Affected level --
Details:
    All players: 1 total; [ClientPlayerEntity['Dev'/1, l='MpServer', x=-116.00, y=5.00, z=-56.50]]
    Chunk stats: Client Chunk Cache: 169, 10
    Level dimension: DimensionType{backrooms:level_0}
    Level name: MpServer
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options: {}
    Level spawn location: World: (-112,4,-64), Chunk: (at 0,0,0 in -7,-4; contains blocks -112,0,-64 to -97,255,-49), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Level time: 245 game time, 245 day time
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Server brand: forge
    Server type: Integrated singleplayer server
Stacktrace:
    at net.minecraft.client.world.ClientWorld.fillCrashReport(ClientWorld.java:425)
    at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:1824)
    at net.minecraft.client.Minecraft.run(Minecraft.java:405)
    at net.minecraft.client.main.Main.main(Main.java:128)
    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:498)
    at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:55)
    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)
    at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102)

-- System Details --
Details:
    Minecraft Version: 1.14.4
    Minecraft Version ID: 1.14.4
    Operating System: Mac OS X (x86_64) version 10.13.6
    Java Version: 1.8.0_251, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1197590504 bytes (1142 MB) / 2127036416 bytes (2028 MB) up to 3817865216 bytes (3641 MB)
    CPUs: 8
    JVM Flags: 1 total; -Xss1M
    ModLauncher: 4.1.0+62+5bfa59b
    ModLauncher launch target: fmluserdevclient
    ModLauncher naming: mcp
    ModLauncher services: 
        /eventbus-1.0.0-service.jar eventbus PLUGINSERVICE 
        /forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-launcher.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-launcher.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-1.0.5-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-launcher.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-launcher.jar runtimedistcleaner PLUGINSERVICE 
        /forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-launcher.jar fml TRANSFORMATIONSERVICE 
    FML: 28.2
    Forge: net.minecraftforge:28.2.16
    FML Language Providers: 
        [email protected]
        minecraft@1
    Mod List: 
        client-extra.jar Minecraft {[email protected] DONE}
        forge-1.14.4-28.2.16_mapped_snapshot_20190719-1.14.3-recomp.jar Forge {[email protected] DONE}
        main Backrooms {[email protected] DONE}
    Launched Version: MOD_DEV
    LWJGL: 3.2.1 build 12
    OpenGL: AMD Radeon R9 M370X OpenGL Engine GL version 2.1 ATI-1.68.20, ATI Technologies Inc.
    GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because ARB_framebuffer_object 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 'forge'
    Type: Client (map_client.txt)
    Resource Packs: 
    Current Language: English (US)
    CPU: 8x Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz

Link to comment
Share on other sites

My biome is registered and I even used the PlainsBiome() presets as a test, yet it still crashes. It doesn't crash when I use Biomes.PLAINS however, even though the code I used in my Biome should theoretically be the exact same as Biomes.PLAINS

Edited by Nicholas Hammond
Link to comment
Share on other sites

You should not be creating your biome instance in a static initializer like you are doing here:

Quote

    @ObjectHolder("backrooms:level_0_biome")
    public static final Biome biome = new Level0Biome();

You should create them in the proper registry event

Link to comment
Share on other sites

Just now, Ugdhar said:

You should not be creating your biome instance in a static initializer like you are doing here:

You should create them in the proper registry event

I actually just did a test and found out that my biome is in fact registered and I think it may be an issue with the dimension trying to provide the biome

Link to comment
Share on other sites

1 minute ago, Nicholas Hammond said:

Like I converted my mod into a jar and went to my Minecraft Forge with world edit and I was able to convert a section of land into my custom biome without any crashes or anything and the debug menu showed I was inside of the biome

Most of my code is prewritten using MCreator.

Link to comment
Share on other sites

Just now, Ugdhar said:

Ah, I probably can't help you there, sorry, I know nothing about MCreator

Well this part isnt actually coded with MCreator, it's my own code. Main point is however I don't understand why my dimension is crashing when I apply my biome (both of these elements were code by me)

Link to comment
Share on other sites

6 hours ago, Nicholas Hammond said:

but I've kept the code it already created

You shouldn't, it's terrible.

Edited by Novârch

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

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



×
×
  • Create New...

Important Information

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