Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------------- File Structure --------------------------------------
- /config/cavegenerator/presets/variables.cave
- /config/cavegenerator/presets/example.cave
- ------------------------------------- variables.cave --------------------------------------
- # In this structure, variables are imported from any other regular preset.
- # Because presets will spawn unwanted caves underground, they would need to
- # be disabled if you just want to use them for definitions. In my opinion,
- # this structure is easier to understand, but potentially more problematic.
- enabled: false
- variables: {
- definitions: {
- # Here we're defining a reusable `biomes` object for forest biomes.
- FOREST_BIOMES: {
- types: ["FOREST"]
- }
- }
- }
- -------------------------------------- example.cave ---------------------------------------
- enabled: true
- # Inside of our preset, we can import definitions from other presets *and*
- # define new variables.
- variables: {
- imports: [
- # This import will provide the `FOREST_BIOMES` variable from above.
- variables.cave
- ]
- definitions: {
- # We're also defining a new cave block object to use in-house.
- LAVA: {
- states: [ "lava" ]
- maxHeight: 10
- }
- }
- }
- # This needs to be put in quotes because, after all, it is just a regular
- # string. In this case, because it is on the same line as the array brackets,
- # the parser will not be expecting a raw string token. We need to clarify
- # that we are just putting a raw string here. Or else, you can use a new line.
- caveBlocks: [ "$LAVA" ]
- biomes: $FOREST_BIOMES
- blankSlate: false
Advertisement
Add Comment
Please, Sign In to add comment