Add config option to disable the rainbow compost in barrel during June

This commit is contained in:
thedarkcolour 2024-05-21 11:27:37 -07:00
parent 26c67476ae
commit 11f41e1514
No known key found for this signature in database
GPG Key ID: 6599A8E0516C8F38
2 changed files with 6 additions and 2 deletions

View File

@ -327,7 +327,7 @@ public class RenderUtil {
} }
public static Color getRainbowColor(long time, float partialTicks) { public static Color getRainbowColor(long time, float partialTicks) {
return Color.getHSBColor((180 * Mth.sin((time + partialTicks) / 16.0f) - 180) / 360.0f, 0.7f, 0.8f); return Color.getHSBColor((180 * Mth.sin((time + partialTicks) / 30.0f) - 180) / 360.0f, 0.5f, 0.8f);
} }
public static ShaderInstance getRenderTypeTintedCutoutMippedShader() { public static ShaderInstance getRenderTypeTintedCutoutMippedShader() {

View File

@ -40,6 +40,7 @@ public class EConfig {
public static class Client { public static class Client {
public final BooleanValue useFastInfestedLeaves; public final BooleanValue useFastInfestedLeaves;
public final BooleanValue rainbowCompostDuringJune;
public Client(ForgeConfigSpec.Builder builder) { public Client(ForgeConfigSpec.Builder builder) {
builder.comment("Client configuration for Ex Deorum").push("client"); builder.comment("Client configuration for Ex Deorum").push("client");
@ -47,6 +48,9 @@ public class EConfig {
this.useFastInfestedLeaves = builder this.useFastInfestedLeaves = builder
.comment("Whether to use a simplified renderer for infested leaves (reduces FPS lag with lots of infested trees)") .comment("Whether to use a simplified renderer for infested leaves (reduces FPS lag with lots of infested trees)")
.define("use_fast_infested_leaves", false); .define("use_fast_infested_leaves", false);
this.rainbowCompostDuringJune = builder
.comment("Whether compost in barrels appears as rainbow colored during the month of June")
.define("rainbow_compost_during_june", true);
builder.pop(); builder.pop();
} }
@ -174,7 +178,7 @@ public class EConfig {
.define("default_spawn_tree_feature", ModIds.MINECRAFT + ":oak_tree_bees_005"); .define("default_spawn_tree_feature", ModIds.MINECRAFT + ":oak_tree_bees_005");
this.useBiomeAppropriateTree = builder this.useBiomeAppropriateTree = builder
.comment("Whether the Spawn Tree in the void world changes based on the biome it's in. If false, Oak Tree is always used.") .comment("Whether the Spawn Tree in the void world changes based on the biome it's in. If false, Oak Tree is always used.")
.define("use_biome_appropriate_tree", false); .define("use_biome_appropriate_tree", false);
this.limitMossSieveDrops = builder this.limitMossSieveDrops = builder
.comment("Whether to restrict Moss Block sieve drops to 1-2 items when sieving. May be useful when lots of mods add saplings and the sieve drops become spammy.") .comment("Whether to restrict Moss Block sieve drops to 1-2 items when sieving. May be useful when lots of mods add saplings and the sieve drops become spammy.")
.define("limit_moss_sieve_drops", true); .define("limit_moss_sieve_drops", true);