question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ITEM cannot be resolved or is not a field when using Registry.ITEM

See original GitHub issue

I get this error when accessing Registry.ITEM in onInitialization() method of ModInitializer.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Patzlykcommented, Jul 11, 2019

I have imported net.minecraft.util.registry.*

0reactions
shedanielcommented, Aug 2, 2020

this isn’t an issue on fabric’s end, it’s just the issue that you have imported and used the wrong Registry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ITEM cannot be resolved or is not a field Java(33554502)
I'm trying to register my item but I get that error. I've imported net.fabricmc.api.ModInitializer, net.minecraft.item.
Read more >
Error message 'Cannot be resolved or is not a field'
In my case , I was using an older version of Eclipse that apparently didn't like having a class with same name as...
Read more >
[block] cannot be resolved or is not a field - eclipse
So I was makin' my mod an' I got this error (command_block cannot be resolved or is not a field) on this code:...
Read more >
Fixes or workarounds for recent issues in Outlook for PC
Custom form script is now disabled by default and requires setting registry keys to re-enable it. The new registry key has a default...
Read more >
The controller with the name cannot be resolved
The "Controller CLR type" field should point to the widget controller class name (e.g. SitefinityWebApp.Mvc.Controllers.MyWidgetController). If ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found