#identifier.of error

16 messages · Page 1 of 1 (latest)

sand fjord
#

I'm trying to learn some basic item creation.
I'm modding in 1.21.1 and when using Identifier.of(string, string) i get an error "Cannot Resolve Method of in Identifier"

sudden canyon
#

You imported the wrong Identifier

sand fjord
#

oh god! Thanks, which library is the correct one?

ocean jackal
#

the one from minecraft

#

which one are you using now?

sand fjord
ocean jackal
#

I dont see any Identifier there..

#

you need net.minecraft.util.Identifier

sand fjord
ocean jackal
#

are you using mojmaps?

#

try ResourceLocation

foggy mountain
#

^ it's mojmap

#

.core is mojmap

sand fjord
#

Thanks guys, i don't know why i was using mojmaps...