# Pastebin sQOPKh8a if (model == null) { try { model = ModelLoaderRegistry.getModel(new ResourceLocation("ltm", "entity/turbines.b3d")); if (model instanceof IRetexturableModel) { model = ((IRetexturableModel) model).retexture(ImmutableMap.of("iron_block", "ltm:block/iron_block")); } if (model instanceof IModelCustomData) { model = ((IModelCustomData) model).process(ImmutableMap.of("mesh", "[\"LargeMetalBlade\", \"LargeMetalHub\"]")); } } catch (IOException e) { Throwables.propagate(e); } } IBakedModel bakedModel = model.bake(new B3DLoader.B3DState(null, ((ManEatingChest) entity).frames), DefaultVertexFormats.field_181703_c, (ResourceLocation location) -> Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(location.toString()));