Posted January 9, 201510 yr 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.
January 9, 201510 yr You'd (probably) have to ASM the BlockWater shouldSideBeRendered method to properly check for adjacent block material type being coral. 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.
January 9, 201510 yr 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. I am the author of Draconic Evolution
January 9, 201510 yr 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. 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.
January 9, 201510 yr Try passing Material.water as the block material. 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/
January 9, 201510 yr Author 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.
January 9, 201510 yr 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. 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/
January 9, 201510 yr 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. Try passing Material.water as the block material. I am the author of Draconic Evolution
January 10, 201510 yr Author 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.
January 10, 201510 yr Author 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.
January 10, 201510 yr https://github.com/Eternaldoom/Realms-of-Chaos/blob/1.8/com/eternaldoom/realmsofchaos/blocks/BlockSeaweed.java Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
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.