Skip to content

ENTITY_TYPE cannot be resolved or is not a field #2017

Answered by warjort
Uskoe asked this question in Mod Dev Support
Discussion options

You must be logged in to vote

All the questions you keep asking have nothing to do with Fabric, Minecraft or mod development.

They are all basic "I don't understand java" questions that don't really belong on this forum.
And you never post all the information to make it possible to answer the question.
So we have to guess what the problem is.

For this one, you don't show your imports, try adding:

import net.minecraft.util.registry.Registry;

If it doesn't let you, it is probably because you have some other class with the name Registry in scope and this is causing your problem.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Uskoe
Comment options

Answer selected by Uskoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants