Chorus plant mixins config, Helix tree enhancements
This commit is contained in:
parent
e96753eb2e
commit
614d0a58d2
6 changed files with 69 additions and 21 deletions
|
@ -80,14 +80,18 @@ public class HelixTreeFeature extends DefaultFeature {
|
|||
});
|
||||
|
||||
spline.clear();
|
||||
for (int i = 0; i <= 20; i++) {
|
||||
float radius = 1 - i * 0.05F;
|
||||
float rad = MHelper.randRange(8F, 11F, random);
|
||||
int count = MHelper.randRange(20, 30, random);
|
||||
float scaleM = 20F / (float) count * scale * 1.75F;
|
||||
float hscale = 20F / (float) count * 0.05F;
|
||||
for (int i = 0; i <= count; i++) {
|
||||
float radius = 1 - i * hscale;
|
||||
radius = radius * radius * 2 - 1;
|
||||
radius *= radius;
|
||||
radius = (1 - radius) * 8F * scale;
|
||||
radius = (1 - radius) * rad * scale;
|
||||
dx = (float) Math.sin(i * 0.45F + angle) * radius;
|
||||
dz = (float) Math.cos(i * 0.45F + angle) * radius;
|
||||
spline.add(new Vector3f(dx, i * scale * 1.75F, dz));
|
||||
spline.add(new Vector3f(dx, i * scaleM, dz));
|
||||
}
|
||||
|
||||
Vector3f start = new Vector3f();
|
||||
|
|
|
@ -9,6 +9,8 @@ public class GeneratorOptions {
|
|||
private static boolean hasPillars;
|
||||
private static boolean hasDragonFights;
|
||||
private static boolean swapOverworldToEnd;
|
||||
private static boolean changeChorusPlant;
|
||||
private static boolean removeChorusFromVanillaBiomes;
|
||||
|
||||
public static void init() {
|
||||
biomeSizeLand = Configs.GENERATOR_CONFIG.getIntRoot("biomeSizeLand", 256);
|
||||
|
@ -17,6 +19,8 @@ public class GeneratorOptions {
|
|||
hasPillars = Configs.GENERATOR_CONFIG.getBooleanRoot("hasPillars", true);
|
||||
hasDragonFights = Configs.GENERATOR_CONFIG.getBooleanRoot("hasDragonFights", true);
|
||||
swapOverworldToEnd = Configs.GENERATOR_CONFIG.getBooleanRoot("swapOverworldToEnd", false);
|
||||
changeChorusPlant = Configs.GENERATOR_CONFIG.getBooleanRoot("changeChorusPlant", true);
|
||||
removeChorusFromVanillaBiomes = Configs.GENERATOR_CONFIG.getBooleanRoot("removeChorusFromVanillaBiomes", true);
|
||||
}
|
||||
|
||||
public static int getBiomeSizeLand() {
|
||||
|
@ -42,4 +46,12 @@ public class GeneratorOptions {
|
|||
public static boolean swapOverworldToEnd() {
|
||||
return swapOverworldToEnd;
|
||||
}
|
||||
|
||||
public static boolean changeChorusPlant() {
|
||||
return changeChorusPlant;
|
||||
}
|
||||
|
||||
public static boolean removeChorusFromVanillaBiomes() {
|
||||
return removeChorusFromVanillaBiomes;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue