From e695c1887169c6685300047c61b334862ebc1b83 Mon Sep 17 00:00:00 2001 From: coolGi Date: Sat, 18 Feb 2023 20:00:39 +1030 Subject: [PATCH] Added ability to change vanilla's lod bias --- .../com/seibel/lod/core/config/Config.java | 12 +++++-- .../main/resources/assets/lod/lang/en_us.json | 35 +++++++++++-------- 2 files changed, 31 insertions(+), 16 deletions(-) diff --git a/core/src/main/java/com/seibel/lod/core/config/Config.java b/core/src/main/java/com/seibel/lod/core/config/Config.java index 3ad867de8..1372f16df 100644 --- a/core/src/main/java/com/seibel/lod/core/config/Config.java +++ b/core/src/main/java/com/seibel/lod/core/config/Config.java @@ -470,6 +470,14 @@ public class Config + " will be set to 0(disabled).") .build(); + public static ConfigEntry lodBias = new ConfigEntry.Builder() // TODO: Make this a float (the ClassicConfigGUI doesnt support floats) + .setMinDefaultMax(0d, 0.5d, null) + .comment("" + + "What the value of vanilla's LodBias should be \n" + + "If set to 0 the mod wont overwrite vanilla's default (which so happens to also be 0)") + .build(); + + public static ConfigCategory noiseSettings = new ConfigCategory.Builder().set(NoiseSettings.class).build(); @@ -483,12 +491,12 @@ public class Config .build(); public static ConfigEntry noiseSteps = new ConfigEntry.Builder() - .setMinDefaultMax(0, 5, null) + .setMinDefaultMax(0, 4, null) .comment("How many steps of noise should be on each block") .build(); public static ConfigEntry noiseIntensity = new ConfigEntry.Builder() // TODO: Make this a float (the ClassicConfigGUI doesnt support floats) - .setMinDefaultMax(0d, 20d, 100d) // TODO: Once this becomes a float make it 0-1 instead of 0-100 (I did this cus doubles only allow 2 decimal places) + .setMinDefaultMax(0d, 10d, 100d) // TODO: Once this becomes a float make it 0-1 instead of 0-100 (I did this cus doubles only allow 2 decimal places) .comment("How intense the noise should be") .build(); diff --git a/core/src/main/resources/assets/lod/lang/en_us.json b/core/src/main/resources/assets/lod/lang/en_us.json index 02f056ed8..66c5098c3 100644 --- a/core/src/main/resources/assets/lod/lang/en_us.json +++ b/core/src/main/resources/assets/lod/lang/en_us.json @@ -4,6 +4,22 @@ + "lod.general.back": + "Back", + "lod.general.next": + "Next", + "lod.general.done": + "Done", + "lod.general.cancel": + "Cancel", + "lod.general.yes": + "Yes", + "lod.general.no": + "No", + + + + "lod.updater.title": "Distant Horizons auto updater", "lod.updater.text1": @@ -24,19 +40,6 @@ "Every time an update is available, it would update\n(§6WARNING§r: It wont prompt the user on an update, tough it would keep the mod up to date)", - "lod.general.back": - "Back", - "lod.general.next": - "Next", - "lod.general.done": - "Done", - "lod.general.cancel": - "Cancel", - "lod.general.yes": - "Yes", - "lod.general.no": - "No", - @@ -192,6 +195,10 @@ "At what Y value should cave culling start? \n\n§6NOTE§r: This feature is under development and \n it is VERY experimental! Please don't report \nany issues related to this feature.", "lod.config.client.graphics.advancedGraphics.earthCurveRatio": "Earth Curve Ratio §6(EXPERIMENTAL)§r", + "lod.config.client.graphics.advancedGraphics.lodBias": + "LOD Bias §6(Effects vanilla terrain)§r", + "lod.config.client.graphics.advancedGraphics.lodBias.@tooltip": + "Sets vanilla's lod bias value", "lod.config.client.graphics.advancedGraphics.noiseSettings": "Noise Settings", "lod.config.client.graphics.advancedGraphics.noiseSettings.noiseEnable": @@ -210,7 +217,6 @@ "How fast the noise should drop off to no noise based upon your lod render distance\nEg, if you set it to 3, then the noise effect would completely go away after 1/3 of your render distance", "lod.config.client.graphics.advancedGraphics.earthCurveRatio.@tooltip": "This is the earth size ratio when applying the curvature shader effect. \n\n§6NOTE§r: This feature is just for fun and is VERY experimental! \nPlease don't report any issues related to this feature. \n\n0 = flat/disabled \n1 = 1 to 1 (6,371,000 blocks) \n100 = 1 to 100 (63,710 blocks) \n10000 = 1 to 10000 (637.1 blocks) \n\n§6NOTE§r: due to current limitations, the min value is 50 \n and the max value is 5000. Any values outside this range \n will be set to 0(disabled).", - "lod.config.client.worldGenerator": "World generator", "lod.config.client.worldGenerator.enableDistantGeneration": @@ -326,6 +332,7 @@ "lod.config.client.optionsButton.@tooltip": "Show the config button to the left of the fov button", + "lod.config.enum.EHorizontalResolution.BLOCK": "Block", "lod.config.enum.EHorizontalResolution.TWO_BLOCKS":