Jump to content

[1.18.1] Custom arrow renders black


Recommended Posts

I've been following this guide for making a custom arrow and although it does spawn, it does not have the correct arrow texture set as it gives me a 

Failed to load texture: minecraft:textures/entity/test_arrow.png

error and I don't understand why.


package com.nindybun.burnergun.client.entities.testArrowEntity;

import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.mojang.math.Matrix3f;
import com.mojang.math.Matrix4f;
import com.mojang.math.Vector3f;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.entity.ArrowRenderer;
import net.minecraft.client.renderer.entity.EntityRenderer;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.texture.OverlayTexture;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.util.Mth;

public class TestArrowRenderer extends ArrowRenderer<TestArrowEntity> {
    private static final ResourceLocation TEST_ARROW_TEXTURE = new ResourceLocation("textures/entity/test_arrow.png");

    public TestArrowRenderer(EntityRendererProvider.Context context) {

    public ResourceLocation getTextureLocation(TestArrowEntity arrow) {
        return TEST_ARROW_TEXTURE;

The name of the texture is also "test_arrow.png"


Link to comment
Share on other sites

7 hours ago, ChampionAsh5357 said:

You need to set the modid in the resource location to be your own. Currently, it is searching for the texture in the minecraft resources.

OMG I didn't realize I was forgetting that part. Thanks for pointing that out!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.