-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
243 additions
and
10 deletions.
There are no files selected for viewing
12 changes: 7 additions & 5 deletions
12
src/generated/resources/.cache/103d9f3f36b01595f1aa5172191e60eff02e6924
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/generated/resources/.cache/2b1c4c301b77a741c666834d476e7a049e70d3df
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/generated/resources/data/deeperdarker/tags/blocks/otherside_carver_replaceables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"values": [ | ||
"minecraft:water", | ||
"minecraft:deepslate", | ||
"minecraft:sculk", | ||
"deeperdarker:sculk_stone", | ||
"deeperdarker:sculk_grime", | ||
"deeperdarker:gloomslate", | ||
"deeperdarker:gloomy_sculk", | ||
"deeperdarker:blooming_sculk_stone", | ||
"deeperdarker:blooming_moss_block" | ||
] | ||
} |
4 changes: 3 additions & 1 deletion
4
src/generated/resources/data/deeperdarker/worldgen/biome/blooming_caverns.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"carvers": {}, | ||
"carvers": { | ||
"air": "deeperdarker:cave" | ||
}, | ||
"downfall": 0.2, | ||
"effects": { | ||
"fog_color": 1716032, | ||
|
4 changes: 3 additions & 1 deletion
4
src/generated/resources/data/deeperdarker/worldgen/biome/deeplands.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/generated/resources/data/deeperdarker/worldgen/biome/echoing_forest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"carvers": {}, | ||
"carvers": { | ||
"air": "deeperdarker:cave" | ||
}, | ||
"downfall": 0.5, | ||
"effects": { | ||
"fog_color": 3152448, | ||
|
7 changes: 6 additions & 1 deletion
7
src/generated/resources/data/deeperdarker/worldgen/biome/overcast_columns.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
src/generated/resources/data/deeperdarker/worldgen/configured_carver/cave.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"type": "minecraft:cave", | ||
"config": { | ||
"debug_settings": { | ||
"air_state": { | ||
"Name": "deeperdarker:bloom_button", | ||
"Properties": { | ||
"face": "wall", | ||
"facing": "north", | ||
"powered": "false" | ||
} | ||
}, | ||
"barrier_state": { | ||
"Name": "minecraft:glass" | ||
}, | ||
"lava_state": { | ||
"Name": "minecraft:orange_stained_glass" | ||
}, | ||
"water_state": { | ||
"Name": "minecraft:candle", | ||
"Properties": { | ||
"candles": "1", | ||
"lit": "false", | ||
"waterlogged": "false" | ||
} | ||
} | ||
}, | ||
"floor_level": { | ||
"type": "minecraft:uniform", | ||
"value": { | ||
"max_exclusive": -0.4, | ||
"min_inclusive": -1.0 | ||
} | ||
}, | ||
"horizontal_radius_multiplier": { | ||
"type": "minecraft:uniform", | ||
"value": { | ||
"max_exclusive": 1.4, | ||
"min_inclusive": 0.7 | ||
} | ||
}, | ||
"lava_level": { | ||
"above_bottom": 0 | ||
}, | ||
"probability": 0.22, | ||
"replaceable": "#deeperdarker:otherside_carver_replaceables", | ||
"vertical_radius_multiplier": { | ||
"type": "minecraft:uniform", | ||
"value": { | ||
"max_exclusive": 1.3, | ||
"min_inclusive": 0.8 | ||
} | ||
}, | ||
"y": { | ||
"type": "minecraft:uniform", | ||
"max_inclusive": { | ||
"below_top": 10 | ||
}, | ||
"min_inclusive": { | ||
"above_bottom": 10 | ||
} | ||
}, | ||
"yScale": { | ||
"type": "minecraft:uniform", | ||
"value": { | ||
"max_exclusive": 0.9, | ||
"min_inclusive": 0.1 | ||
} | ||
} | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
src/generated/resources/data/deeperdarker/worldgen/configured_carver/low_cave.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"type": "minecraft:cave", | ||
"config": { | ||
"debug_settings": { | ||
"air_state": { | ||
"Name": "deeperdarker:echo_button", | ||
"Properties": { | ||
"face": "wall", | ||
"facing": "north", | ||
"powered": "false" | ||
} | ||
}, | ||
"barrier_state": { | ||
"Name": "minecraft:glass" | ||
}, | ||
"lava_state": { | ||
"Name": "minecraft:orange_stained_glass" | ||
}, | ||
"water_state": { | ||
"Name": "minecraft:candle", | ||
"Properties": { | ||
"candles": "1", | ||
"lit": "false", | ||
"waterlogged": "false" | ||
} | ||
} | ||
}, | ||
"floor_level": { | ||
"type": "minecraft:uniform", | ||
"value": { | ||
"max_exclusive": -0.4, | ||
"min_inclusive": -1.0 | ||
} | ||
}, | ||
"horizontal_radius_multiplier": { | ||
"type": "minecraft:uniform", | ||
"value": { | ||
"max_exclusive": 1.1, | ||
"min_inclusive": 0.6 | ||
} | ||
}, | ||
"lava_level": { | ||
"above_bottom": 15 | ||
}, | ||
"probability": 0.3, | ||
"replaceable": "#deeperdarker:otherside_carver_replaceables", | ||
"vertical_radius_multiplier": { | ||
"type": "minecraft:uniform", | ||
"value": { | ||
"max_exclusive": 1.1, | ||
"min_inclusive": 0.8 | ||
} | ||
}, | ||
"y": { | ||
"type": "minecraft:uniform", | ||
"max_inclusive": { | ||
"above_bottom": 32 | ||
}, | ||
"min_inclusive": { | ||
"above_bottom": 10 | ||
} | ||
}, | ||
"yScale": { | ||
"type": "minecraft:uniform", | ||
"value": { | ||
"max_exclusive": 0.9, | ||
"min_inclusive": 0.1 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/main/java/com/kyanite/deeperdarker/world/DDCarvers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package com.kyanite.deeperdarker.world; | ||
|
||
import com.kyanite.deeperdarker.DeeperDarker; | ||
import com.kyanite.deeperdarker.content.DDBlocks; | ||
import com.kyanite.deeperdarker.util.DDTags; | ||
import net.minecraft.core.HolderGetter; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.data.worldgen.BootstapContext; | ||
import net.minecraft.resources.ResourceKey; | ||
import net.minecraft.util.valueproviders.UniformFloat; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.levelgen.VerticalAnchor; | ||
import net.minecraft.world.level.levelgen.carver.CarverDebugSettings; | ||
import net.minecraft.world.level.levelgen.carver.CaveCarverConfiguration; | ||
import net.minecraft.world.level.levelgen.carver.ConfiguredWorldCarver; | ||
import net.minecraft.world.level.levelgen.carver.WorldCarver; | ||
import net.minecraft.world.level.levelgen.heightproviders.UniformHeight; | ||
|
||
public class DDCarvers { | ||
public static final ResourceKey<ConfiguredWorldCarver<?>> CAVE = createKey("cave"); | ||
public static final ResourceKey<ConfiguredWorldCarver<?>> LOW_CAVE = createKey("low_cave"); | ||
|
||
public static void bootstrap(BootstapContext<ConfiguredWorldCarver<?>> context) { | ||
HolderGetter<Block> blocks = context.lookup(Registries.BLOCK); | ||
context.register(CAVE, WorldCarver.CAVE.configured(new CaveCarverConfiguration( | ||
0.22f, | ||
UniformHeight.of(VerticalAnchor.aboveBottom(10), VerticalAnchor.belowTop(10)), | ||
UniformFloat.of(0.1f, 0.9f), | ||
VerticalAnchor.bottom(), | ||
CarverDebugSettings.of(false, DDBlocks.BLOOM_BUTTON.get().defaultBlockState()), | ||
blocks.getOrThrow(DDTags.Blocks.OTHERSIDE_CARVER_REPLACEABLES), | ||
UniformFloat.of(0.7f, 1.4f), | ||
UniformFloat.of(0.8f, 1.3f), | ||
UniformFloat.of(-1, -0.4f) | ||
))); | ||
context.register(LOW_CAVE, WorldCarver.CAVE.configured(new CaveCarverConfiguration( | ||
0.3f, | ||
UniformHeight.of(VerticalAnchor.aboveBottom(10), VerticalAnchor.aboveBottom(32)), | ||
UniformFloat.of(0.1f, 0.9f), | ||
VerticalAnchor.aboveBottom(15), | ||
CarverDebugSettings.of(false, DDBlocks.ECHO_BUTTON.get().defaultBlockState()), | ||
blocks.getOrThrow(DDTags.Blocks.OTHERSIDE_CARVER_REPLACEABLES), | ||
UniformFloat.of(0.6f, 1.1f), | ||
UniformFloat.of(0.8f, 1.1f), | ||
UniformFloat.of(-1, -0.4f) | ||
))); | ||
} | ||
|
||
private static ResourceKey<ConfiguredWorldCarver<?>> createKey(String name) { | ||
return ResourceKey.create(Registries.CONFIGURED_CARVER, DeeperDarker.rl(name)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters