Skip to content

Commit e36d365

Browse files
authored
Document Oil Sprout worldgen (#4036)
Co-authored-by: jtuc <[email protected]>
1 parent ae148fa commit e36d365

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: "Configuring Oil Sprouts"
3+
---
4+
5+
# Configuring Oil Sprouts
6+
7+
!!! warning "This feature is named raw_oil_**sprout**, not raw_oil_spout."
8+
9+
Oil Sprouts are generated via Minecraft's "Configured Feature" system, and can be customized via standard datapacks.
10+
If you are using kubejs, placing files in the `kubejs/data` folder is equivalent to adding files to a datapack.
11+
12+
## Removing Oil Sprouts
13+
14+
To disable oil sprouts entirely, place the following file in `kubejs/data/gtceu/worldgen/configured_feature/raw_oil_sprout.json`,
15+
or create a datapack containing the equivalent. This will replace the sprouts with a `no_op` - i.e. a feature that does nothing.
16+
17+
```json title="data/gtceu/worldgen/configured_feature/raw_oil_sprout.json"
18+
{
19+
"type": "minecraft:no_op",
20+
"config": {}
21+
}
22+
```
23+
24+
## Adjusting Oil Sprout Placement Conditions
25+
26+
If you just want to adjust the rarity of oil sprouts, that is configured via the "Placed Feature" system. Copy the
27+
[current version](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/generated/resources/data/gtceu/worldgen/placed_feature/raw_oil_sprout.json)
28+
of the placed feature file to `kubejs/data/gtceu/worldgen/placed_feature/raw_oil_sprout.json`, and modify the settings
29+
as desired. (The default file uses a `"minecraft:rarity_filter"` to give a 1/64 chance of each chunk containing a sprout.)

0 commit comments

Comments
 (0)