I want to check what phase the moon is in, on any given night. I know that every 7 in-game days is a full cycle and the fuller the moon is the higher the difficulty of mobs and such. I'm working on a simple datapack that sometimes makes mobs spawn as stronger mobs, and thought it would be cool to have them spawn more often on nights with a full moon and not at all on new moon nights.
So TL;DR is basically: can I check what phase the moon is on with commands?