Skip to content

[BUG] Crash during client init related to ItemColors / iron_backpack #98

@Kotane-TMKT

Description

@Kotane-TMKT

Minecraft Version

1.21.1

Mod Version

neoforge-21.1.2

Mod Loader

Neoforge

Reproduction Steps

Install and launch several mods simultaneously.
(There are multiple patterns where each mod is independent of the others, including some I don't remember, but the ones I'm recently aware of are:
Sodium
PuzzlesLib
Age of Steam without ARLib (yes, Since there are lack of dependencies, it naturally won't be able to start on its own. However, if you install yyzsbackpack into Minecraft in that state, the crash will occur earlier and the stack trace will also change.)

Expected Behavior

The game starts up.

Actual Behavior

The game don't starts up.

Logs/Screenshots

bottom of this report (Due to exceeding the character limit, the log file is attached)

Additional Context

Bug report: crash during client init related to ItemColors / iron_backpack

Hello,

I encountered a client crash that appears to be related to yyzsbackpack during startup.

Environment

  • Minecraft: 1.21.1
  • NeoForge: 21.1.219

What happens

  • The game crashes during client initialization.
  • This seems to happen when other mods are present, but from the crash log it looks like the actual crash occurs inside yyzsbackpack’s ItemColors handling.

Relevant part of the crash

  • Trying to access unbound value: ResourceKey[minecraft:item / yyzsbackpack:iron_backpack]
  • NullPointerException: Trying to access unbound value...

Stack trace points to

  • net.neoforged.neoforge.registries.DeferredHolder.value
  • yyzsbackpack.item.ItemHandler.get
  • yyzsbackpack.mixin.ItemColorsMixin
  • net.minecraft.client.color.item.ItemColors.createDefault

My guess

  • yyzsbackpack:iron_backpack may be accessed before it is fully bound/registered.
  • So this may be an initialization-order issue that only becomes visible depending on what other mods are installed.

I have attached the crash log.

Thank you.

[Due to exceeding the character limit, the log file is attached here.]
crash-2026-03-18_10.27.40-client.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions