Cannot access dev.onyxstudios.cca.api.v3.component.ComponentV3 (component.isEquipped)
JSJBDEV opened this issue · 5 comments
whilst updating to 1.20, I get this error for isEquipped.
my build.gradle is constructed as suggested on the front page of this mod using modImplementation "dev.emi:trinkets:3.7.0"
and the repositories set.
The rest of the methods used seem to work fine - I saw a closed issue regarding this not being found, but this seems to be different, however, should I also have CCA api in my mod dependencies?
You might want to take a look at this issue: #264
It's been a bit since the CCA repo has changed, I'm sure you've found a solution or moved on to other things but if others get the same error I think it would be helpful to guide them to the other issue
@emilyploszaj @Ultimushadow
Did update build.gradle and new Ladysnake repository, but still getting Cannot access dev.onyxstudios.cca.api.v3.component.ComponentV3
error in
///
List<Pair<SlotReference, ItemStack>> list = trinkets.getEquipped(TrinketItems.AMULET);
///
Gradle: 8.1
fabric-loom: 1.2-SNAPSHOT
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
loader_version=0.14.21
fabric_version=0.76.0+1.19.2
trinkets_version=3.4.1
I cannot update to a newer Minecraft version, even in future. What can be done?
Did you try importing ComponentV3?
I am sorry, I am not that in-depth with gradle (learning how to code by myself). How exactly should I import it?
UPDATE.
I guess this (before modImplementation "dev.emi:trinkets:${project.trinkets_version}"
) works:
modCompileOnly("dev.onyxstudios.cardinal-components-api:cardinal-components-base:5.0.0-beta.1")
modCompileOnly("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:5.0.0-beta.1")
CCA version (for Trinkets 3.4.1 that I use) is taken from https://github.com/emilyploszaj/trinkets/blob/de1634115ed84cb20db2d5683a4970ecdd8bfdde/gradle.properties