#I dont know where to find fabric package lists?

1 messages · Page 1 of 1 (latest)

heavy shuttle
cursive marshBOT
#

<@&987246652869971988> please have a look, thanks.

cursive marshBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

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.

heavy shuttle
#

@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;
cursive marshBOT
# heavy shuttle ```java package com.potatoes; import net.fabricmc.api.ModInitializer; import ne...

Detected code, here are some useful tools:

Formatted code
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;
heavy shuttle
#

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;
cursive marshBOT
heavy shuttle
#

still red

#

@<507634450671337484>

#

@507634450671337484

#

<507634450671337484

#

<507634450671337484>

#

<@&507634450671337484>

vital gate
#

Are you using mojmap on fabric? Fabric defaults to yarn mappings

tall mesa
vital gate
#

If you look closely it seems like certain subpackages are missing. That's standard for wrong mappings

raven creek
#

send your build.gradle

heavy shuttle
#

ok

cursive marshBOT
heavy shuttle
raven creek
#

why would you friend request me

heavy shuttle
#

i did?

raven creek
#

yes

heavy shuttle
#

oh sorry i did it on accident

raven creek
#

is this running on fabric or forge

heavy shuttle
#

fabric

raven creek
#

i dont think you can just use a forge build.gradle on fabric

heavy shuttle
#

i didnt?

raven creek
#

for fabric you use loom

heavy shuttle
#

oh

#

wait

raven creek
#

not forge gradle

heavy shuttle
raven creek
#

that is not the build.gradle you sent

heavy shuttle
#

yes it is

#

oh wait

#

i sent the wrong one

#

shoot

#

woopsie

#

hold on

cursive marshBOT
heavy shuttle
#

im trying to do fabric 1.20.1

raven creek
#

fabric by default uses yarn mappings instead of mojmap

heavy shuttle
#

so what do i do

raven creek
#

you can either change your project to mojmap or translate your project into yarn

heavy shuttle
#

im guessing add something here referring to mojmap

heavy shuttle
raven creek
#

change mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" to mappings loom.officialMojangMappings()

heavy shuttle
#

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

raven creek
#

no quotes

heavy shuttle
#

not really

#

just one

cursive marshBOT
raven creek
heavy shuttle
#

oh

cursive marshBOT
heavy shuttle
#

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)

raven creek
#

you have 2 mappings

heavy shuttle
#

oh i do?

raven creek
#
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}"
}```
cursive marshBOT
raven creek
#

use that as the dependencies block

#

just copy paste

heavy shuttle
#

oohhhh

#

i see what you mean

raven creek
#

yes

heavy shuttle
#

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

raven creek
#

uh you have both yarn and mojmap in your project

heavy shuttle
#

i do?

#

how do i fix that

#

because its not in the gradle

raven creek
#

change the red things into the correct things

heavy shuttle
#

ok hold on

raven creek
#

type the red thing in the search box

#

and it will translate it for you

heavy shuttle
#

is there a fast replace with intellij?

#

@raven creek i got everything red fixed other than these 3 things

raven creek
#

you cannot reference instance methods in a static context

heavy shuttle
#

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

raven creek
#

i dont think that theres a projectile hit event on fabric

heavy shuttle
#

so what would that be

#

entity_hit?

raven creek
#

you would need a mixin for that

heavy shuttle
#

oh ok