• 0

    posted a message on Remove the shadow from a block in 1.16


    I'm trying to recreate the vanilla glass block in my 1.16.5 mod and have had trouble with the glass block showing shadows.

    On the attached image, the right blocks have a shadow underneath them whereas the vanilla glass does not

    Here is where I register the block and give it its properties

    public static final RegistryObject<Block> GLASS_VANILLA = BLOCKS.register("glass_vanilla", () ->
                new Block(
                                .hardnessAndResistance(1.0f, 6.0f)

    And here is where I set the render type to Cutout

     private void doClientStuff(final FMLClientSetupEvent event) {
     RenderTypeLookup.setRenderLayer(RegistryHandler.GLASS_VANILLA.get(), RenderType.getCutout());

    Any help would be greatly appreciated, Thanks in advance!

    Posted in: Modification Development
  • To post a comment, please .