Skip to content

Commit

Permalink
feat(docs): Update world gen section
Browse files Browse the repository at this point in the history
  • Loading branch information
ChampionAsh5357 committed Oct 14, 2024
1 parent 19e279b commit 1b57d99
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions docs/worldgen/biomemodifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ If you are a modder adding a new entity, make sure the entity has a spawn restri
"spawners": [
{
"type": "namespace:entity_type", // The id of the entity type to spawn
"weight": 100, // int, spawn weight
"minCount": 1, // int, minimum group size
"maxCount": 4 // int, maximum group size
"weight": 100, // non-negative int, spawn weight
"minCount": 1, // positive int, minimum group size
"maxCount": 4 // positive int, maximum group size
},
{
"type": "minecraft:ghast",
Expand Down Expand Up @@ -471,10 +471,7 @@ This biome modifier type allows adding carver caves and ravines to biomes. These
// Can either be a carver id, such as "examplemod:add_carvers_example",
// or a list of carver ids, such as ["examplemod:add_carvers_example", "minecraft:canyon", ...],
// or a carver tag, such as "#examplemod:configured_carver_tag".
"carvers": "examplemod:add_carvers_example",
// See GenerationStep.Carving in code for a list of valid enum names.
// Only "air" and "liquid" are available.
"step": "air"
"carvers": "examplemod:add_carvers_example"
}
```

Expand Down Expand Up @@ -503,9 +500,7 @@ BUILDER.add(NeoForgeRegistries.Keys.BIOME_MODIFIERS, bootstrap -> {
// The biome(s) to generate within
HolderSet.direct(biomes.getOrThrow(Biomes.PLAINS)),
// The carver(s) to generate within the biomes
HolderSet.direct(carvers.getOrThrow(EXAMPLE_CARVER)),
// The generation step
GenerationStep.Carving.AIR
HolderSet.direct(carvers.getOrThrow(EXAMPLE_CARVER))
)
);
});
Expand All @@ -531,15 +526,7 @@ This biome modifier type allows removing carver caves and ravines from biomes. T
// Can either be a carver id, such as "examplemod:add_carvers_example",
// or a list of carver ids, such as ["examplemod:add_carvers_example", "minecraft:canyon", ...],
// or a carver tag, such as "#examplemod:configured_carver_tag".
"carvers": "examplemod:add_carvers_example",
// Can either be a single generation step, such as "air",
// or a list of generation steps, such as ["air", "liquid"].
// See GenerationStep.Carving for a list of valid enum names.
// Only "air" and "liquid" are available.
"steps": [
"air",
"liquid"
]
"carvers": "examplemod:add_carvers_example"
}
```

Expand Down Expand Up @@ -567,12 +554,7 @@ BUILDER.add(NeoForgeRegistries.Keys.BIOME_MODIFIERS, bootstrap -> {
// The biome(s) to remove from
biomes.getOrThrow(Tags.Biomes.IS_OVERWORLD),
// The carver(s) to remove from the biomes
HolderSet.direct(carvers.getOrThrow(Carvers.CAVE)),
// The generation steps to remove from
Set.of(
GenerationStep.Carving.AIR,
GenerationStep.Carving.LIQUID
)
HolderSet.direct(carvers.getOrThrow(Carvers.CAVE))
)
);
});
Expand Down

1 comment on commit 1b57d99

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying with Cloudflare Pages

Name Result
Last commit: 1b57d99a3b75a0d87fa3b808a0191539a319b627
Status: ✅ Deploy successful!
Preview URL: https://edf0259e.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-178.neoforged-docs-previews.pages.dev

Please sign in to comment.