Skip to content

Commit

Permalink
Allow cave generation in worldgen_structures
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
BPR02 committed Oct 1, 2024
1 parent 6c70ded commit 6e6d168
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 11 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/packs/worldgen/skyvoid_worldgen_structures/beet.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id: 'skyvoid_worldgen_structures'
name: 'Sky Void with Structures'
author: 'BluePsychoRanger'
version: 1.0.1
version: 1.0.2

require:
- src.plugins.worldgen.generate.base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@
"type": "minecraft:mul",
"argument1": {
"type": "minecraft:y_clamped_gradient",
"from_value": 0.0,
"from_y": -64,
"to_y": -40,
"from_value": 0,
"to_value": 1
"to_value": 1.0,
"to_y": -40
},
"argument2": {
"type": "minecraft:add",
Expand All @@ -142,29 +142,99 @@
"type": "minecraft:mul",
"argument1": {
"type": "minecraft:y_clamped_gradient",
"from_value": 1.0,
"from_y": 240,
"to_y": 256,
"from_value": 1,
"to_value": 0
"to_value": 0.0,
"to_y": 256
},
"argument2": {
"type": "minecraft:add",
"argument1": 0.078125,
"argument2": {
"type": "minecraft:range_choice",
"input": "minecraft:overworld/sloped_cheese",
"min_inclusive": -1000000,
"max_exclusive": 1.5625,
"min_inclusive": -1000000.0,
"when_in_range": {
"type": "minecraft:min",
"argument1": "minecraft:overworld/sloped_cheese",
"argument2": {
"type": "minecraft:mul",
"argument1": 5,
"argument1": 5.0,
"argument2": "minecraft:overworld/caves/entrances"
}
},
"when_out_of_range": 0.1
"when_out_of_range": {
"type": "minecraft:max",
"argument1": {
"type": "minecraft:min",
"argument1": {
"type": "minecraft:min",
"argument1": {
"type": "minecraft:add",
"argument1": {
"type": "minecraft:mul",
"argument1": 4.0,
"argument2": {
"type": "minecraft:square",
"argument": {
"type": "minecraft:noise",
"noise": "minecraft:cave_layer",
"xz_scale": 1.0,
"y_scale": 8.0
}
}
},
"argument2": {
"type": "minecraft:add",
"argument1": {
"type": "minecraft:clamp",
"input": {
"type": "minecraft:add",
"argument1": 0.27,
"argument2": {
"type": "minecraft:noise",
"noise": "minecraft:cave_cheese",
"xz_scale": 1.0,
"y_scale": 0.6666666666666666
}
},
"max": 1.0,
"min": -1.0
},
"argument2": {
"type": "minecraft:clamp",
"input": {
"type": "minecraft:add",
"argument1": 1.5,
"argument2": {
"type": "minecraft:mul",
"argument1": -0.64,
"argument2": "minecraft:overworld/sloped_cheese"
}
},
"max": 0.5,
"min": 0.0
}
}
},
"argument2": "minecraft:overworld/caves/entrances"
},
"argument2": {
"type": "minecraft:add",
"argument1": "minecraft:overworld/caves/spaghetti_2d",
"argument2": "minecraft:overworld/caves/spaghetti_roughness_function"
}
},
"argument2": {
"type": "minecraft:range_choice",
"input": "minecraft:overworld/caves/pillars",
"max_exclusive": 0.03,
"min_inclusive": -1000000.0,
"when_in_range": -1000000.0,
"when_out_of_range": "minecraft:overworld/caves/pillars"
}
}
}
}
}
Expand All @@ -176,7 +246,7 @@
}
}
},
"argument2": 0.1
"argument2": "minecraft:overworld/caves/noodle"
},
"vein_toggle": 0,
"vein_ridged": 0,
Expand Down

0 comments on commit 6e6d168

Please sign in to comment.