Posted June 10, 20196 yr Hello, Is it possible to render entities partially invisible if they are seen behind a glass block? For example, this is what I am trying to achieve: If so, where should I start looking to figure it out?
June 10, 20196 yr Check out BlockGlass in vanilla code. Check out BlockPane in vanilla code. I have had similar issues with partial blocks due to the way minecraft renders them vs a simple translucent/transparent block. A glass pane is both see-through and a partial block, so if it can be done in vanilla you should be able to easily steal some vanilla methods and get it working, but be sure to override vanilla wherever possible. I should add that removing some of the vanilla transparent/partial block related methods may be how you have to do it, since vanilla renders entities through glass now. Edited June 10, 20196 yr by cj3636
June 11, 20196 yr Post your code. As cj said, you’re probably not using the right render layer for what you want. About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
June 11, 20196 yr Author Here is a link to my code for the block: https://github.com/LogicTechCorp/NetherEx/blob/4250bea131f05f57c5eb626f2654978675370f1c/src/main/java/logictechcorp/netherex/block/BlockSoulGlass.java
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.