cocolabs / odyssey

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

Lower temperature in shade #24

Closed matshou closed 4 years ago

matshou commented 4 years ago

It would greatly improve the temperature system by having a shadow/ray detection system to help implement a mechanic where shade/caves are able to provide relief by reducing the temperature.

ghost commented 4 years ago

Just an idea of how this could work.

Note that the green box represents the player.

ghost commented 4 years ago

Time values based on this graphic:

matshou commented 4 years ago

That would work great in a 2D environment but I don't see how it would work in Minecraft. Our best bet would be to figure out the position of the sun relative to the player and then RayTrace in the direction of the sun from players position and see if we hit a block.

ghost commented 4 years ago

Wow, you can do that? Well if that works lets go with that then.

If for some reason we can't, we could have the detection system be a dome, not an arc; and take into account the horizontal angle, not just the vertical as above.

ghost commented 4 years ago