Skip to content

Commit a1c61a7

Browse files
committed
Add corrupted_whirls to corrupted_end
1 parent ffe7d9c commit a1c61a7

File tree

4 files changed

+209
-1
lines changed

4 files changed

+209
-1
lines changed

biomes/end/corrupted_end.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ vanilla: minecraft:end_barrens
55
color: $biomes/colors.yml:CORRUPTED_END
66

77
palette:
8-
- CORRUPTED_END: 319
8+
- CORRUPTED_END: 319
9+
10+
features:
11+
trees:
12+
- CORRUPTED_WHIRLS

features/end/corrupted_whirls.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
id: CORRUPTED_WHIRLS
2+
type: FEATURE
3+
4+
distributor:
5+
type: PADDED_GRID
6+
width: 21
7+
padding: 15
8+
salt: 5466
9+
10+
locator:
11+
type: AND
12+
locators:
13+
- type: TOP
14+
range: &range
15+
min: 0
16+
max: 319
17+
- type: PATTERN
18+
range: *range
19+
pattern:
20+
type: MATCH_AIR
21+
offset: 0
22+
- type: PATTERN
23+
range: *range
24+
pattern:
25+
type: MATCH_SOLID
26+
blocks:
27+
offset: -1
28+
29+
structures:
30+
distribution:
31+
type: CONSTANT
32+
structures: corrupted_whirl

palettes/end/corrupted_end.yml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,135 @@ layers:
2323
return: "CellValue"
2424
frequency: 0.5
2525
salt: 9345
26+
- materials:
27+
- minecraft:black_concrete_powder: 15
28+
- minecraft:black_concrete: 10
29+
- minecraft:obsidian: 5
30+
- minecraft:crying_obsidian: 3
31+
- minecraft:purple_concrete: 1
32+
layers: 1
33+
sampler:
34+
type: WHITE_NOISE
35+
amplitude: 1
36+
warp:
37+
type: "OPEN_SIMPLEX_2"
38+
frequency: 0.9
39+
sampler:
40+
type: FBM
41+
octaves: 2
42+
sampler:
43+
type: "CELLULAR"
44+
return: "CellValue"
45+
frequency: 0.5
46+
salt: 9345
47+
- materials:
48+
- minecraft:black_concrete_powder: 15
49+
- minecraft:black_concrete: 10
50+
- minecraft:obsidian: 5
51+
- minecraft:crying_obsidian: 3
52+
- minecraft:purple_concrete: 1
53+
layers: 1
54+
sampler:
55+
type: WHITE_NOISE
56+
amplitude: 1
57+
warp:
58+
type: "OPEN_SIMPLEX_2"
59+
frequency: 0.9
60+
sampler:
61+
type: FBM
62+
octaves: 2
63+
sampler:
64+
type: "CELLULAR"
65+
return: "CellValue"
66+
frequency: 0.5
67+
salt: 9345
68+
- materials:
69+
- minecraft:black_concrete_powder: 15
70+
- minecraft:black_concrete: 10
71+
- minecraft:obsidian: 5
72+
- minecraft:crying_obsidian: 3
73+
- minecraft:purple_concrete: 1
74+
layers: 1
75+
sampler:
76+
type: WHITE_NOISE
77+
amplitude: 1
78+
warp:
79+
type: "OPEN_SIMPLEX_2"
80+
frequency: 0.9
81+
sampler:
82+
type: FBM
83+
octaves: 2
84+
sampler:
85+
type: "CELLULAR"
86+
return: "CellValue"
87+
frequency: 0.5
88+
salt: 9345
89+
- materials:
90+
- minecraft:black_concrete_powder: 15
91+
- minecraft:black_concrete: 10
92+
- minecraft:obsidian: 5
93+
- minecraft:crying_obsidian: 3
94+
- minecraft:purple_concrete: 1
95+
- minecraft:air: 5
96+
layers: 1
97+
sampler:
98+
type: WHITE_NOISE
99+
amplitude: 1
100+
warp:
101+
type: "OPEN_SIMPLEX_2"
102+
frequency: 0.9
103+
sampler:
104+
type: FBM
105+
octaves: 2
106+
sampler:
107+
type: "CELLULAR"
108+
return: "CellValue"
109+
frequency: 0.5
110+
salt: 9345
111+
- materials:
112+
- minecraft:black_concrete_powder: 15
113+
- minecraft:black_concrete: 10
114+
- minecraft:obsidian: 5
115+
- minecraft:crying_obsidian: 3
116+
- minecraft:purple_concrete: 1
117+
- minecraft:air: 10
118+
layers: 1
119+
sampler:
120+
type: WHITE_NOISE
121+
amplitude: 1
122+
warp:
123+
type: "OPEN_SIMPLEX_2"
124+
frequency: 0.9
125+
sampler:
126+
type: FBM
127+
octaves: 2
128+
sampler:
129+
type: "CELLULAR"
130+
return: "CellValue"
131+
frequency: 0.5
132+
salt: 9345
133+
- materials:
134+
- minecraft:black_concrete_powder: 15
135+
- minecraft:black_concrete: 10
136+
- minecraft:obsidian: 5
137+
- minecraft:crying_obsidian: 3
138+
- minecraft:purple_concrete: 1
139+
- minecraft:air: 15
140+
layers: 1
141+
sampler:
142+
type: WHITE_NOISE
143+
amplitude: 1
144+
warp:
145+
type: "OPEN_SIMPLEX_2"
146+
frequency: 0.9
147+
sampler:
148+
type: FBM
149+
octaves: 2
150+
sampler:
151+
type: "CELLULAR"
152+
return: "CellValue"
153+
frequency: 0.5
154+
salt: 9345
26155

27156

28157

structures/end/corrupted_whirl.tesf

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
num radius = 1.5;
2+
num length = 10+randomInt(35);
3+
num lenInt = 0.05;
4+
5+
num dir = 0;
6+
num dirInt = 0.05;
7+
8+
num wid = 2;
9+
num widInt = 0.05;
10+
11+
str setBlock = "minecraft:gray_concrete";
12+
13+
for(num l = 0; l <= length; l = l + lenInt) {
14+
15+
// Reduce radius inversely to length
16+
num r = (radius/length * -l) + radius;
17+
18+
// Generate sphere at each point
19+
for(num x = -r; x <= r; x = x + 1) {
20+
for(num y = -r; y <= r; y = y + 1) {
21+
for(num z = -r; z <= r; z = z + 1) {
22+
if (pow(x,2)+pow(y,2)+pow(z,2) < pow(r,2)) {
23+
setBlock = "minecraft:smooth_basalt";
24+
num random = randomInt(5);
25+
if (random == 0) setBlock = "minecraft:black_concrete";
26+
if (random == 1) setBlock = "minecraft:black_concrete_powder";
27+
if (random == 2) setBlock = "minecraft:obsidian";
28+
if (random == 3) setBlock = "minecraft:crying_obsidian";
29+
if (random == 4) setBlock = "minecraft:purple_concrete";
30+
block(wid*cos(dir) + x, l + y, wid*sin(dir) + z, setBlock, false);
31+
}
32+
}
33+
}
34+
}
35+
36+
dir = dir + dirInt;
37+
if (l < length/3) {
38+
wid = wid + widInt;
39+
} else wid = wid - widInt;
40+
41+
42+
}
43+

0 commit comments

Comments
 (0)