Jump to content

[1.20.1] Custom Statistics


LittleEzra

Recommended Posts

I'm trying to add a custom statistic for how many Easter eggs the player has found to my mod but haven't found any information on how to do this properly. I tried copying the makeCustomStat() method from the Stats class but that gives me the error "Registry is already frozen (trying to add key ResourceKey[minecraft:custom_stat / minecraft:easter_eggs_found])" when I try to use the stat. Does anyone know how to properly add a custom stat?

Edited by LittleEzra
Added More Information
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.

×
×
  • Create New...

Important Information

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