Jump to content

Recommended Posts

Posted

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

Posted

I am using BlockBench to make my model.

Is there a way to change the shade setting for all blocks in it, or do I have to do it manually for each element in the json files?

Posted (edited)

Never mind, I found it.
It it the small star on the block property that controls it.
Thanks for your help :)

Edited by Ideki
Posted

Ok, I think I understand what is going on.
I seems that it gets the light from a nearby light source I placed and that triggers the shadow.

So I guess it is solved, just not in a way I would like.
But still works.

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.