#gradlew error class file for net.minecraft.class_3222 not found

38 messages · Page 1 of 1 (latest)

remote sage
#

Something is wrong with Gradle for sure. I don't know the fix though :P

pure sedge
#

don't use implementation for mods

sweet valve
#

ah

#

what do i use compileonly ?

pure sedge
#

no, use the ones prefixed with mod

#

modCompileOnly, modImplementation

sweet valve
#

ah

pure sedge
#

they all remap the dependency you provide

sweet valve
#

i tryed but

pure sedge
#

if you use just implementation instead of modImplementation it won't remap minecraft classes

#

using both (like you are) will probably lead to some weird behaviour

rare horizon
#

ye similar to how fabric is implemented as you see modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

sweet valve
#

ye ye ik its cause it wasnt working i tryed so much shit

#

ye it didnt fix

rare horizon
#

you refreshed gradlew?

sweet valve
#

of course x)

pure sedge
#
-    implementation "com.cobblemon:fabric:1.5.2+1.20.1"
-    implementation "com.cobblemon:mod:1.5.2+1.20.1"
-    modApi "com.cobblemon:fabric:1.5.2+1.20.1"
-    modApi "com.cobblemon:mod:1.5.2+1.20.1"
+    modImplementation "com.cobblemon:fabric:1.5.2+1.20.1"
+    modImplementation "com.cobblemon:mod:1.5.2+1.20.1"

refresh gradle and run ./gradlew clean --refresh-dependencies after

sweet valve
#

ok

pure sedge
#

also why are you using org.json instead of gson

#

gson already comes with depending on minecraft

sweet valve
#

cause i had very old code and i didnt wanted to rewrite it

#

x)

#

but its fine for now

#

nop not working still x)

sweet valve
#

did the command and everything

#

its weird as fuck if i open the file by hand it shows the right mapping but if i ctrl click it shows the wrong one

#
    minecraft "com.mojang:minecraft:${project.minecraft_version}"
    mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"

    modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
    modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

    shadow(implementation 'org.java-websocket:Java-WebSocket:1.5.7')
    shadow(implementation 'org.json:json:20231013')
    shadow(implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.1')

    modImplementation "net.luckperms:api:5.4"
    modImplementation "com.cobblemon:fabric:1.5.2+1.20.1"
    modImplementation "com.cobblemon:mod:1.5.2+1.20.1"
    modImplementation files('./libs/staracademy-mc1.20.1-v1.0.0.98-fabric.jar')
#

@rare horizon ? x)

proven onyx
sweet valve
#

i know that

#

the question is why does it remap correctly

#

Error class file for net.minecraft.class_3222 not found

#

gradlew error class file for net.minecraft.class_3222 not found

sweet valve
#

tryed on a brand new project same error

topaz wing
#

does it work when you dont use shadow?