cocolabs / odyssey

Minecraft Forge desert themed survival/adventure mod.
MIT License
0 stars 1 forks source link

World temperature system #5

Closed matshou closed 4 years ago

matshou commented 4 years ago
Period of the day Minecraft Time Temperature Temp. increase till next period
Midnight 00:00 -2°C ↑2.5°C every hour
Dawn 06:00 13°C ↑5°C every half hour
Noon 12:00 60°C ↓5°C every hour
Dusk 18:00 35°C ↓4°C every half hour

See #4 to understand the day/night cycle implementation

This temperature system should (for now) only operate when the player enters a Desert biome specifically.

ghost commented 4 years ago

The temperature should decrease depending upon the number of blocks directly above the player.

e.g. Check above players Y level + 2 to Y=256. For every 3 blocks above the player, reduce temp. value by 5°C.

This is to simulate the temperature decreasing when the player is underground or in a cave/structure.

matshou commented 4 years ago

Am I right to assume that these temperature values are calibrated for the desert biome?

ghost commented 4 years ago

Pretty much, yes.

(btw I would like to catch up on the main feature developments on the 10th if possible over voice chat if that's ok with you.)

matshou commented 4 years ago

Does this mean that temperature feature will only work in deserts?

After reading this post on Reddit it would seem that Minecraft already does have a temperature system where each biome is assigned a constant temperature value used to color foliage.

matshou commented 4 years ago

btw I would like to catch up on the main feature developments on the 10th if possible over voice chat if that's ok with you.

Not much to catch up at the moment, I am currently working on this feature and am in general informing you of my progress regularly. As you've seen a day or so ago in a live-stream I did me and Rellit found out how the GUI is being drawn on the screen and were able to draw a purple xp bar in place of the vanilla one.

Now that the GUI system has been researched I will focus on implementing the temperature system in the next two days in which I will hopefully have an early system ready.

ghost commented 4 years ago

Ah, sorry I misinterpreted.

The temp. values are based upon the temperature range that occurs in real life deserts.

Our temperature system should be kept separate.

ghost commented 4 years ago

I would like to discuss a shadow/ray detection system to help implement a mechanic where shade/caves are able to provide relief by reducing the temperature.

matshou commented 4 years ago

That's a great idea! Let's move this discussion in #24