Moon phase factor

Started by Ender_explorer on Sat, 08/01/2020 - 06:03

Topic category: Help with modding (Java Edition)

Last seen on 14:04, 10. Apr 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Moon phase factor
Sat, 08/01/2020 - 06:03

I want to make an item that can inform the player what the moon phase of the current world is (in night time). I did the codings but I don't know how to convert the number to the direct moon phase (is it a 0-scale or a 1-scale?)

I have the types of minecraft moon phases:

full moon

waning gibbous

third quarter

waning crescent 

new moon 

waxing crescent

first quarter

waxing gibbous

what moon phase factors do each of the moon phases have?