#error: cannot access BipedEntityModel

6 messages · Page 1 of 1 (latest)

rough epoch
#

I've just sarted development of a mod on 1.21 an tried to create a custom armor model using GeckoLib.
For using the class i need to import :

import net.minecraft.client.render.entity.model.BipedEntityModel;```

But the import is not recoknozed and inteliJ sugest that i add the dependency : 
``Add library 'Gradle: net.minecraft:minecraft-clientOnly-306bad6e3f:1.21-net.fabricmc.yarn.1_21.1.21+build.2-v2' to classpath``

However, if i do so the erro disapear in inteliJ but the gradle build still faile with the exact same error.
I've asked the same question on the gecko lib Discord but as it may be due to wrong project configuration, they sugest me to go ask here as well.

Thank you 😉
stiff canyon
#

!!splitsources

viscid galeBOT
#
Split Sources

Split Sources provide a compile-time guarantee against calling client only Minecraft code or client only API on the server.

Client-only code can be placed in client, and code that is common to client and server can be placed in main. Client-only code can refer code in main, but not the other way.

Read more: Split Client and Common code - Fabric Loom

stiff canyon
#

You're likely in the main package, but need to be in the client

#

@rough epoch

rough epoch
#

Yup, seams to be the problem ... now to implement the solution 😅