where can i find one of these but for fabric?: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.19.3/index.html
package index
1 messages · Page 1 of 1 (latest)
where can i find one of these but for fabric?: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.19.3/index.html
package index
<@&987246652869971988> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
@broken inlet
im trying to convert my code to fabric but the forge stuff is all read
except it isnt forge its minecraft
which is weird
package com.potatoes;
import net.fabricmc.api.ModInitializer;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.core.Vec3i;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.hit.HitResult;
import net.minecraft.util.math.DirectionVec3;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.
import net.minecraft.world.event.ProjectileImpactEvent;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.Vec3;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerEntityEvents;
import net.fabricmc.fabric.api.event.player.UseBlockCallback;
import net.minecraft.world.entity.projectile.thrown.ThrownItemEntity;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Detected code, here are some useful tools:
package com.potatoes;
import net.fabricmc.api.ModInitializer;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.core.Vec3i;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.hit.HitResult;
import net.minecraft.util.math.DirectionVec3;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.import net.minecraft.world.event.ProjectileImpactEvent;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.Vec3;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerEntityEvents;
import net.fabricmc.fabric.api.event.player.UseBlockCallback;
import net.minecraft.world.entity.projectile.thrown.ThrownItemEntity;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
sorry here is the right one
package com.potatoes;
import net.fabricmc.api.ModInitializer;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.core.Vec3i;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.hit.HitResult;
import net.minecraft.util.math.DirectionVec3;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.projectile.Projectile;
import net.minecraft.world.event.ProjectileImpactEvent;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.Vec3;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerEntityEvents;
import net.fabricmc.fabric.api.event.player.UseBlockCallback;
import net.minecraft.world.entity.projectile.thrown.ThrownItemEntity;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Detected code, here are some useful tools:
still red
@<507634450671337484>
@507634450671337484
<507634450671337484
<507634450671337484>
<@&507634450671337484>
Are you using mojmap on fabric? Fabric defaults to yarn mappings
Seems like hes missing the minecraft dependency entirely
If you look closely it seems like certain subpackages are missing. That's standard for wrong mappings
send your build.gradle
I uploaded your attachments as Gist.
@raven creek ^^^^^
why would you friend request me
i did?
yes
oh sorry i did it on accident
is this running on fabric or forge
fabric
i dont think you can just use a forge build.gradle on fabric
i didnt?
for fabric you use loom
not forge gradle
i used this
that is not the build.gradle you sent
yes it is
oh wait
i sent the wrong one
shoot
woopsie
hold on
there is the build.gradle that i am using
I uploaded your attachments as Gist.
im trying to do fabric 1.20.1
fabric by default uses yarn mappings instead of mojmap
so what do i do
you can either change your project to mojmap or translate your project into yarn
im guessing add something here referring to mojmap
ok how do i change it to mojmap?
change mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" to mappings loom.officialMojangMappings()
ok let me try thank you very much
is this right?
because it didnt change in intellij
oh wait nvm there is an update button
now there is like 100 errors
no quotes
I uploaded your attachments as Gist.
see how there are no quotes in the second one
I uploaded your attachments as Gist.
Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'mappings' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:88)
at org.gradle.internal.metaobject.ConfigureDelegate.getProperty(ConfigureDelegate.java:124)
at build_977ut0ja6sv7bkm98xcvmelgf$_run_closure4.doCall(C:\Users\oofer\Desktop\Fabric PotatoesBouncy\build.gradle:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
you have 2 mappings
oh i do?
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
// Uncomment the following line to enable the deprecated Fabric API modules.
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
}```
Detected code, here are some useful tools:
yes
it still didnt fix it though
wait what it turned all white and then went back to red
but its like diffrent now
idk
like it removed red in some spots but others are still there
uh you have both yarn and mojmap in your project
change the red things into the correct things
ok hold on
is there a fast replace with intellij?
@raven creek i got everything red fixed other than these 3 things
you cannot reference instance methods in a static context
would it be newmot?
oh wait
no its because entity is capital
so i got everything other than ServerEntityEvents.PROJECTILE_HIT.register to not be red
i dont think that theres a projectile hit event on fabric
you would need a mixin for that
oh ok