Jump to content

Weird shadow on block model


Ideki

Recommended Posts

Hello,

I made my custom multiblock (4 blocks tall, 2 blocks wide, 1 block deep) model with custom texture.
But there is something weird happening with the shadow on the upper section.

There is a clear color change between blocks.
The following screenshot shows a difference in brown color when the texture is actually all the same brown.

Each custom block has its own override of 'getShape' that returns the correct VoxelShape as I can see the edge of the microblocks highlighted correctly.

My blocks all use the same properties:
 

    public static final BlockBehaviour.Properties BODY_BLOCK_PROPERTIES = BlockBehaviour.Properties
            .of(Material.HEAVY_METAL, MaterialColor.TERRACOTTA_BROWN)
            .strength(-1.0F, 3600000.0F)
            .noDrops()
            .noOcclusion()
            .lightLevel(s -> 2)
            .sound(SoundType.METAL);

zyIW1rB.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.