Skip to content

Custom attributes not properly registered on Fabric 1.21 #1180

Description

@Robotgiggle

Modloader

Fabric

Minecraft version

1.21.1

Hex Casting version

0.12.0 [dev]

Modloader version

No response

Issue description

NOTE: This bug is only observable if the scrying lens is actually functional, which in 0.12.0-pre-16 it is not. To see the bug, use this build, or wait until #1181 gets merged.

Equipping or unequipping the scrying lens on Fabric 1.21 displays the following error in the log:
Image
Furthermore, any attempt to pause the game after doing so will cause a crash, with the following message:
Image
All of this implies that hex's custom entity attributes are not being properly registered. Notably, the tooltip on the scrying lens listing its attribute modifiers does work, so the actual issue may have something to do with linking the attributes to the player entity rather than creating them in the first place.

Full game log can be found here: https://mclo.gs/hJ9jBDV

Steps to reproduce

  1. Hold or equip scrying lens
  2. Observe log errors
  3. Observe that lens effects do not work
  4. Attempt to pause the game
  5. Observe crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.21bugSomething isn't workingcrashIssue involves a game crash.fabricOnly relevant on Fabricneeds investigation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions