10paktimbits Posted January 9, 2015 Posted January 9, 2015 Is it possible to render a coral block properly so that you don't see the waterfall effect of adjacent water blocks on the sides of the coral block? How does one do this? I was able to make this work in 1.7.10 by using Material.water for the block and some additional code but this no longer works in 1.8 with all of the changes. The Material.coral type seems like it should be used for this purpose, but that type has never worked to help with the rendering. Thank you. Quote
Draco18s Posted January 9, 2015 Posted January 9, 2015 You'd (probably) have to ASM the BlockWater shouldSideBeRendered method to properly check for adjacent block material type being coral. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
brandon3055 Posted January 9, 2015 Posted January 9, 2015 On 1/9/2015 at 5:23 AM, Draco18s said: You'd (probably) have to ASM the BlockWater shouldSideBeRendered method to properly check for adjacent block material type being coral. That sounds like something maby forge should do. Quote I am the author of Draconic Evolution
Draco18s Posted January 9, 2015 Posted January 9, 2015 On 1/9/2015 at 5:25 AM, brandon3055 said: Quote You'd (probably) have to ASM the BlockWater shouldSideBeRendered method to properly check for adjacent block material type being coral. That sounds like something maby forge should do. Have fun convincing Lex that it's important. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
larsgerrits Posted January 9, 2015 Posted January 9, 2015 Try passing Material.water as the block material. Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
10paktimbits Posted January 9, 2015 Author Posted January 9, 2015 Thank you for your replies. I have tried all of the solutions suggested (and others) and this still will not work. My blocks render fine - the problem is with the rendering of the adjacent water blocks since they are not detecting a Material.coral block and adjusting which faces should be rendered. Unfortunately, this is critical for a bunch of plant blocks in my mod that I now have to remove completely due to the 1.8 changes. Perhaps sometime down the road this will be fixed. Thanks again. Quote
larsgerrits Posted January 9, 2015 Posted January 9, 2015 Did you try to pass Material.water as your block material? Because it shouldn't render the side if the material of the block next to it is the same material. Quote Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
brandon3055 Posted January 9, 2015 Posted January 9, 2015 On 1/9/2015 at 11:30 PM, larsgerrits said: Did you try to pass Material.water as your block material? Because it shouldn't render the side if the material of the block next to it is the same material. Quote Try passing Material.water as the block material. Quote I am the author of Draconic Evolution
10paktimbits Posted January 10, 2015 Author Posted January 10, 2015 I have tried Material.water and subclassing off of both BlockLiquid and BlockStaticLiquid and these just don't work because rendering of water blocks is internal to MC/Forge and I cannot 'add' my own rendering to the existing render. Some properties of water, like the vacuum effect, cause issues with my blocks that are not acceptable for what I am trying to achieve. Water blocks also require all metadata bits in a state called 'level' - my blocks are based on a single class that has its own block state - creating a new class just for these is prohibitive and it is absolutely critical that all of my blocks be based on a single class. I believe that this is something that needs to be solved in Forge, and not modders having to work around this a number of different ways. The Material.coral type is a great idea that just isn't fully implemented. Quote
10paktimbits Posted January 10, 2015 Author Posted January 10, 2015 On 1/9/2015 at 5:47 AM, Draco18s said: Have fun convincing Lex that it's important. He's a busy genius with mountains of much more important things to focus on. A sacrifice for my mod yes, but not a show stopper. Quote
Eternaldoom Posted January 10, 2015 Posted January 10, 2015 https://github.com/Eternaldoom/Realms-of-Chaos/blob/1.8/com/eternaldoom/realmsofchaos/blocks/BlockSeaweed.java Quote Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
Recommended Posts
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.