Jump to content

[1.7.x] Lava cobblestone and stone replacement


Recommended Posts



I'm trying to figure out a good way to change the block that is created when water hits non-source lava blocks. Currently cobblestone and stone (when lava hits water) is created but I want one of my custom blocks to be created instead (Pumice).


I have tried a few things:



  • Replaced cobblestone with pumice using the new Substitution functionality in latest 1.7.10 dev releases. This caused NPEs because of what looks like a bug with Substituted blocks not getting the texture correctly registered and it also replaces all cobblestone in the game.
  • Used the same function as above (Substituted blocks) creating a block that spawns a TileEntity which in it's update method replaces the block with my block and then removes the TileEntity..    this works pretty well (
    ) but eventually causes random freezing of the game.  I guess it's because it creates too many TileEntities when a new chunk is generated where there are lava and water underground. This functionality doesn't really work good either way since it will only work on Cobblestone..  Doing this on Stone (which is the core block during Worldgen) is insanely slow.
  • Not tested an implementation but looked into possibility to extend the Static and DynamicLiquidBlocks and override the function that sets the stone or cobblestone and use this as a substituted block but run into issues since the method is private. (might be able to solve it with AccessConfigs) but will probably cause same issues with rendering as I had in my first attempt.


Anyone that have any brighter ideas than this how to solve it?  Dream scenario would be support in Forge for it so the block types created could be settable and not hard coded to Blocks.stone and Blocks.cobblestone.

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.