Jump to content

[1.18.1] Custom arrow renders black


NindyBun

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.

TestArrowRenderer.java

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) {
        super(context);
    }

    @Override
    public ResourceLocation getTextureLocation(TestArrowEntity arrow) {
        return TEST_ARROW_TEXTURE;
    }
}

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

https://github.com/NindyBun/BurnerGun_1.18.1/tree/master/src/main/resources/assets/burnergun/textures/entity

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.

Guest
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.