Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.15.2] How to make a block transparent?


Megaton_216_
 Share

Recommended Posts

You have to set the correct render layer for your block with:

RenderTypeLookup.setRenderLayer(your_block, RenderType.getTranslucent());

Note that this has to be set in your client setup event

Edited by Beethoven92

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

Link to comment
Share on other sites

2 hours ago, Beethoven92 said:

You have to set the correct render layer for your block with:


RenderTypeLookup.setRenderLayer(your_block, RenderType.getTranslucent());

Note that this has to be set in your client setup event

in place of your_block, I put LARGE_CRYSTAL. I'm getting an error "Cannot resolve method 'setRenderLayer(net.minecraftforge.fml.RegistryObject<net.minecraft.block.Block>, net.minecraft.client.renderer.RenderType)'". What is the problem here? 

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
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.