Topic category: Help with Minecraft modding (Java Edition)
Hello,
I'm currently working on a mod project that aims to transcribe into a log all information related to players and the world they're in. Among the information provided is the temperature of the biome the player is in. My procedure works correctly, however, the block that retrieves this information [Get the biome temperature at x: y: z:] multiplies the base value by 100. By keeping this parameter as is, I end up with inconsistencies such as temperatures reaching 70°C in a plains biome or -30°C in a simple snow biome. For the snow biome, this remains more or less appropriate, but for the plains biome, I find it a bit excessive.
I don't know much about temperature measurement, but I thought the unit of measurement used by Minecraft was °F (degrees Fahrenheit). That's why I tried the °F -> °C conversion, i.e. ((°F-32)/1.8=°C). As a result, I end up with slightly more consistent temperatures, such as 32°C in a plains biome or -6°C in a mountain biome. But... since I'd like to avoid all sorts of annoying comments regarding my temperature calculations, my question is this:
How do I convert the given base value to degrees Celsius?
I don't think there is a linear conversion rate between temperature in the game and real temperature measurements, you may need to find a non-linear mapping