Skip to content

Commit

Permalink
add red desert wells
Browse files Browse the repository at this point in the history
  • Loading branch information
DeathShadez committed Oct 9, 2024
1 parent c9ab05f commit 6e80a0c
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 1 deletion.
6 changes: 5 additions & 1 deletion biomes/land/dry/desert/red/red_desert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ tags:

palette:
- RED_SAND: $meta.yml:top-y
- << meta.yml:palette-bottom
- << meta.yml:palette-bottom

landforms:
- RED_DESERT_WELLS
- MOB_ROOMS
19 changes: 19 additions & 0 deletions features/misc/red_desert_wells.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
id: DESERT_WELLS
type: FEATURE

distributor:
type: PADDED_GRID
width: 100
padding: 45
salt: 7863

locator:
type: TOP
range: &range
min: ${meta.yml:ocean-level} + 3
max: $meta.yml:top-y

structures:
distribution:
type: CONSTANT
structures: red_desert_well
14 changes: 14 additions & 0 deletions structures/misc/red_desert_well/red_desert_well.tesf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
if (check(3, -1, 3) != "LAND" ||
check(-3, -1, 3) != "LAND" ||
check(3, -1, -3) != "LAND" ||
check(-3, -1, -3) != "LAND"
) fail;

num depth = 3 + randomInt(3);
num yTranslate = 1;
structure(0,yTranslate+1,0, "red_desert_well_top", "NONE");
structure(0,yTranslate,0, "red_desert_well_bottom", "NONE");

for (num y = yTranslate; y > -depth; y = y - 1) {
block(0,y,0, "minecraft:water", true, true);
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
num random = randomInt(4);

if (random == 0) structure(0,0,0, "red_desert_well_bottom_1", "NONE");
if (random == 1) structure(0,0,0, "red_desert_well_bottom_2", "NONE");
if (random == 2) structure(0,0,0, "red_desert_well_bottom_3", "NONE");
if (random == 3) structure(0,0,0, "red_desert_well_bottom_4", "NONE");
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
num random = randomInt(4);

if (random == 0) structure(0,0,0, "red_desert_well_top_1", "NONE", "CW_90", "CCW_90", "CW_180");
if (random == 1) structure(0,0,0, "red_desert_well_top_2", "NONE", "CW_90", "CCW_90", "CW_180");
if (random == 2) structure(0,0,0, "red_desert_well_top_3", "NONE", "CW_90", "CCW_90", "CW_180");
if (random == 3) structure(0,0,0, "red_desert_well_top_4", "NONE", "CW_90", "CCW_90", "CW_180");
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 6e80a0c

Please sign in to comment.