I've looked at the existing code for throwable items and I have it to the point where the item can be thrown,
and it does what I want on impact. Only thing is, in 1.8 I'm not sure how to set up things so that the item renders while its flying,
as well, I can't get it to render the particle effect that should happen when it hits something.
So far I've tried this code in my preInit() stage to set up the render, but it doesn't do anything.
preInit(), inside ClientProxy:
RenderingRegistry.registerEntityRenderingHandler(EntityRock.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), rock_item, Minecraft.getMinecraft().getRenderItem()));
registerRenderer function used for regular items:
public static void registerRenderer(Item item)
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
Any help would be appreciated!
I think you need to use EntityRegistry.registerModEntity before you do RenderingRegistry.registerEntityRenderingHandler. This file might lead you in a good direction.
Old mostly dead account. I only check here once in a blue moon.
Thank you so much!