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

[1.8] Rendering of non-water blocks underwater


10paktimbits
 Share

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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.

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 Terms of Use.