Get how high the sun is in the sky

Started by Ali107 on Fri, 01/13/2023 - 20:00

Topic category: Help with modding (Java Edition)

Last seen on 11:20, 28. Mar 2023
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Get how high the sun is in the sky
Fri, 01/13/2023 - 20:00

I am making a solar panel, how do I get a value that increases the closer it is to noon in Minecraft?

 

When the sun is rising or setting it gives a low value, but at noon it gives a high value. I'd like a gradual increase and decrease in value.