Issues with my own mod

The entity reflections seem to just duplicate the model, Is their any way to avoid this or just disable the entity shadows for Iris? Thanks in advance, Happens on: BSL, AstraLex, Noble, Photon, Redhat, Soft Voxels And more
No description
6 Replies
That Guy
That Guy2w ago
is your mod released?
Collinvht
CollinvhtOP2w ago
im not here to promote just asking for info if u need it for testing dm me
That Guy
That Guy2w ago
I was just wondering whether you had it open source and whether people can see the code yet? Or is your mod still in development?
Collinvht
CollinvhtOP2w ago
This part of the mod is in development, and it's not open sourced for several reasons
That Guy
That Guy2w ago
Okay that shouldn't matter it just means you will have to test all the possible options is it being rendered as a block?
Collinvht
CollinvhtOP2w ago
its an entity that uses an baked model like an item would
BakedModel model = Minecraft.getInstance().getModelManager().getModel(ModelResourceLocation.standalone(ResourceLocation.fromNamespaceAndPath(NewWorld.modID, "signs/paddock/presets/" + presets.getSerializedName())));
MultiBufferSource bufferSource = Minecraft.getInstance().renderBuffers().bufferSource();
VertexConsumer vertexConsumer = bufferSource
.getBuffer(RenderType.entityTranslucent(InventoryMenu.BLOCK_ATLAS));
for (BakedQuad quad : model.getQuads(null, null, RandomSource.create(), ModelData.EMPTY, null)) {
vertexConsumer.putBulkData(stack.last(), quad, 1, 1, 1, 1, pPackedLight, OverlayTexture.NO_OVERLAY);
}
BakedModel model = Minecraft.getInstance().getModelManager().getModel(ModelResourceLocation.standalone(ResourceLocation.fromNamespaceAndPath(NewWorld.modID, "signs/paddock/presets/" + presets.getSerializedName())));
MultiBufferSource bufferSource = Minecraft.getInstance().renderBuffers().bufferSource();
VertexConsumer vertexConsumer = bufferSource
.getBuffer(RenderType.entityTranslucent(InventoryMenu.BLOCK_ATLAS));
for (BakedQuad quad : model.getQuads(null, null, RandomSource.create(), ModelData.EMPTY, null)) {
vertexConsumer.putBulkData(stack.last(), quad, 1, 1, 1, 1, pPackedLight, OverlayTexture.NO_OVERLAY);
}

Did you find this page helpful?