Jump to content

[1.12.2] Dangerous alternative prefix


Recommended Posts

Just added a update checker to my library mod and now when the game loads up i see this output in my console, anyone have any idea whats causing it or how to fix it?

Adding break points and bit of debugging shows its related to registry names on my items but i haven't changed them at all and was not getting this before i added my update checker


[14:30:52] [main/INFO]: Potentially Dangerous alternative prefix `crafthorsearmor` for name `horse_armor`, expected `apexcore`. This could be a intended override, but in most cases indicates a broken mod.

Source Code

Link to comment
Share on other sites

1 hour ago, diesieben07 said:

You cannot create items in a static initializer. It must happen explicitly in the proper events, ideally RegistryEvent.Register<Item>.

Also, Forge already has an update checker, don't write your own.

thanks, using the registry events fixed my issue :D dont know why i didnt use them in the first place, as for using forges update checker, dont know if its possible but i wanted 1 json file for all my mods that why wrote my own update checker, nothing like forges update checker that allows for a change log and stuff just very simple for multiple mods in 1 file

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.

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.