Skip to content

Commit 6e6d168

Browse files
committed
Allow cave generation in worldgen_structures
- fixes a bug in which mineshafts didn't generate any wood platforms for floors - technically doesn't support carver caves, but it is more correct than v1.0.1
1 parent 6c70ded commit 6e6d168

File tree

3 files changed

+81
-11
lines changed

3 files changed

+81
-11
lines changed
166 KB
Binary file not shown.

src/packs/worldgen/skyvoid_worldgen_structures/beet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id: 'skyvoid_worldgen_structures'
22
name: 'Sky Void with Structures'
33
author: 'BluePsychoRanger'
4-
version: 1.0.1
4+
version: 1.0.2
55

66
require:
77
- src.plugins.worldgen.generate.base

src/packs/worldgen/skyvoid_worldgen_structures/data/minecraft/worldgen/noise_settings/overworld.json

Lines changed: 80 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@
127127
"type": "minecraft:mul",
128128
"argument1": {
129129
"type": "minecraft:y_clamped_gradient",
130+
"from_value": 0.0,
130131
"from_y": -64,
131-
"to_y": -40,
132-
"from_value": 0,
133-
"to_value": 1
132+
"to_value": 1.0,
133+
"to_y": -40
134134
},
135135
"argument2": {
136136
"type": "minecraft:add",
@@ -142,29 +142,99 @@
142142
"type": "minecraft:mul",
143143
"argument1": {
144144
"type": "minecraft:y_clamped_gradient",
145+
"from_value": 1.0,
145146
"from_y": 240,
146-
"to_y": 256,
147-
"from_value": 1,
148-
"to_value": 0
147+
"to_value": 0.0,
148+
"to_y": 256
149149
},
150150
"argument2": {
151151
"type": "minecraft:add",
152152
"argument1": 0.078125,
153153
"argument2": {
154154
"type": "minecraft:range_choice",
155155
"input": "minecraft:overworld/sloped_cheese",
156-
"min_inclusive": -1000000,
157156
"max_exclusive": 1.5625,
157+
"min_inclusive": -1000000.0,
158158
"when_in_range": {
159159
"type": "minecraft:min",
160160
"argument1": "minecraft:overworld/sloped_cheese",
161161
"argument2": {
162162
"type": "minecraft:mul",
163-
"argument1": 5,
163+
"argument1": 5.0,
164164
"argument2": "minecraft:overworld/caves/entrances"
165165
}
166166
},
167-
"when_out_of_range": 0.1
167+
"when_out_of_range": {
168+
"type": "minecraft:max",
169+
"argument1": {
170+
"type": "minecraft:min",
171+
"argument1": {
172+
"type": "minecraft:min",
173+
"argument1": {
174+
"type": "minecraft:add",
175+
"argument1": {
176+
"type": "minecraft:mul",
177+
"argument1": 4.0,
178+
"argument2": {
179+
"type": "minecraft:square",
180+
"argument": {
181+
"type": "minecraft:noise",
182+
"noise": "minecraft:cave_layer",
183+
"xz_scale": 1.0,
184+
"y_scale": 8.0
185+
}
186+
}
187+
},
188+
"argument2": {
189+
"type": "minecraft:add",
190+
"argument1": {
191+
"type": "minecraft:clamp",
192+
"input": {
193+
"type": "minecraft:add",
194+
"argument1": 0.27,
195+
"argument2": {
196+
"type": "minecraft:noise",
197+
"noise": "minecraft:cave_cheese",
198+
"xz_scale": 1.0,
199+
"y_scale": 0.6666666666666666
200+
}
201+
},
202+
"max": 1.0,
203+
"min": -1.0
204+
},
205+
"argument2": {
206+
"type": "minecraft:clamp",
207+
"input": {
208+
"type": "minecraft:add",
209+
"argument1": 1.5,
210+
"argument2": {
211+
"type": "minecraft:mul",
212+
"argument1": -0.64,
213+
"argument2": "minecraft:overworld/sloped_cheese"
214+
}
215+
},
216+
"max": 0.5,
217+
"min": 0.0
218+
}
219+
}
220+
},
221+
"argument2": "minecraft:overworld/caves/entrances"
222+
},
223+
"argument2": {
224+
"type": "minecraft:add",
225+
"argument1": "minecraft:overworld/caves/spaghetti_2d",
226+
"argument2": "minecraft:overworld/caves/spaghetti_roughness_function"
227+
}
228+
},
229+
"argument2": {
230+
"type": "minecraft:range_choice",
231+
"input": "minecraft:overworld/caves/pillars",
232+
"max_exclusive": 0.03,
233+
"min_inclusive": -1000000.0,
234+
"when_in_range": -1000000.0,
235+
"when_out_of_range": "minecraft:overworld/caves/pillars"
236+
}
237+
}
168238
}
169239
}
170240
}
@@ -176,7 +246,7 @@
176246
}
177247
}
178248
},
179-
"argument2": 0.1
249+
"argument2": "minecraft:overworld/caves/noodle"
180250
},
181251
"vein_toggle": 0,
182252
"vein_ridged": 0,

0 commit comments

Comments
 (0)