Posted September 18, 20205 yr I've been trying to make a block transparent and I've added a few methods like getOpacity, isTransparent, and isVariableOpacity, but I don't understand what's wrong.
September 18, 20205 yr 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 September 18, 20205 yr by Beethoven92 Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
September 19, 20205 yr Author 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?
September 19, 20205 yr LARGE_CRYSTAL.get() to get the block from the registry object. Edited September 19, 20205 yr by poopoodice
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.