Jump to content

Recommended Posts

Posted

I am trying to make a laser block... it is semi-transparent, and doesn't fill in the 1 block bounding box.

Somehow the block is being shaded, even though i set the opacity.

 

This is how it looks:

xBwjcF3.png

 

 

Here's my code:

protected TileLaser(Material material) {
	super(material);
	float fac = (0.9F)/2;
	this.setBlockBounds(0.0F, fac, fac, 1.0F, 1-fac, 1-fac);
	this.setLightLevel(0.5F);
	this.setLightOpacity(0);
	this.setCreativeTab(CreativeTabs.tabRedstone);
	this.useNeighborBrightness = true;
}

@Override
public boolean isOpaqueCube() {
	return false;
}

@Override
public int getRenderBlockPass(){
	return 1;
}

 

thanks in advance from germany

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.