How to replace air with water in a nether-like dimension?

Started by TheCatalystGaming on

Topic category: Advanced modding

Active 2 years ago
Joined Nov 2015
Points:
913

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 47
How to replace air with water in a nether-like dimension?

Basically what the title says. I'm creating an ocean-based mod, and I need to be able to replace the air in a nether-like dimension with water source blocks.

I don't think you can do…
Sat, 08/24/2019 - 18:12

I don't think you can do this without some major changes to the world gen code.

Active 1 week ago
Joined Dec 2016
Points:
759

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
Couldn't it basically work…
Tue, 08/27/2019 - 10:35

Couldn't it basically work if you do this in the ChunkProvider?

public static class ChunkProviderModded implements IChunkGenerator {

 

        protected static final IBlockState STONE = <Block>();
        protected static final IBlockState LAVA = <Block>();
        protected static final IBlockState GRAVEL = <Block>();
        protected static final IBlockState SOUL_SAND = <Block>();
        private final WorldGenerator quartzGen = new WorldGenMinable(<Block>(), 14, BlockMatcher.forBlock(STONE
                .getBlock()));
        private final WorldGenerator magmaGen = new WorldGenMinable(STONE, 33, BlockMatcher.forBlock(STONE.getBlock()));
        protected static final IBlockState BEDROCK = Blocks.BEDROCK.getDefaultState();
        protected static final IBlockState AIR = Blocks.WATER.getDefaultState();

This would need to be tested…
Tue, 08/27/2019 - 10:48

This would need to be tested, but could work. I will check and possibly add a box to select this if this will work.

Active 4 years ago
Joined Jun 2016
Points:
1724

User statistics:

  • Modifications: 6
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1752
I can think of a way to do…
Sun, 09/08/2019 - 12:39

I can think of a way to do this with procedures, but it would lag a LOT. Create a block (texture doesn't matter) that spawns on the player when they enter the dimension (using procedures). Add a procedure to this block's tick update so that it places itself on any air blocks touching it, and then turns into water. This would (unless you have a really good computer) cause extreme lag when generating chunks, but it is a currently possible method.

Yes, that would lag a lot. I…
Sun, 09/08/2019 - 13:08

Yes, that would lag a lot.

I have tried replacing AIR block with WATER and it did not work properly, so there is still research that needs to be done to find a good way to do this.