Nephty/Minecraft-Mods

Not finding the texture when rendering the enchanted flower

Closed this issue · 1 comments

When placing down an enchanted flower, the texture doesn't show up properly.
The interactions are working properly but the texture seems to be missing.

Solved : use "cross" instead of default block model and add this in the class :

    @SubscribeEvent
    public static void init(FMLClientSetupEvent event) {
        RenderTypeLookup.setRenderLayer(ModBlocks.ENCHANTED_FLOWER.get(), RenderType.cutout());
    }

Then add this in the builder :

FMLJavaModLoadingContext.get().getModEventBus().addListener(CustomFlower::init);