Need to render item in geckolib entity hand (any item in slot 1 of entity) #629
Closed
Abdulhanan535
started this conversation in
General
Replies: 2 comments
-
To resolve the issue with your code, here are a few steps you can follow:
These steps should help you address the issues you're encountering with the code. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
any help?
the code i'm trying to edit
`package net.mcreator.accompany.entity.layer;
import software.bernie.geckolib3.renderers.geo.IGeoRenderer;
import software.bernie.geckolib3.renderers.geo.GeoLayerRenderer;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.entity.Entity;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.client.renderer.texture.OverlayTexture;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.MultiBufferSource;
import net.mcreator.accompany.entity.TalonEntity;
import java.util.concurrent.atomic.AtomicReference;
import com.mojang.blaze3d.vertex.PoseStack;
public class HandLayer extends GeoLayerRenderer {
public static ResourceLocation LAYER_DEFAULT = new ResourceLocation("accompany", "textures/entities/talon.png");
public ResourceLocation MODEL = new ResourceLocation("accompany", "geo/talon.geo.json");
private ResourceLocation currentTexture;
}
`
Beta Was this translation helpful? Give feedback.
All reactions