Posted February 12, 20232 yr 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
February 12, 20232 yr 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.
February 12, 20232 yr Author 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!
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.