Origins: Powerful Powers
» Entity conditions » Moon phase

Moon phase

origins-powerful-powers:moon_phaseentity condition

The current moon phase, 0 to 7. 0 is the full moon and 4 the new moon.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toIntegerrequired0 to 7

Example: werewolf.

json
{
  "type": "origins:action_over_time",
  "interval": 20,
  "condition": {
    "type": "origins:and",
    "conditions": [
      {
        "type": "origins-powerful-powers:moon_phase",
        "comparison": "==",
        "compare_to": 0
      },
      {
        "type": "origins:daytime",
        "inverted": true
      }
    ]
  },
  "entity_action": {
    "type": "origins:apply_effect",
    "effect": {
      "effect": "minecraft:strength",
      "duration": 30,
      "amplifier": 1
    }
  }
}

On full-moon nights, you get Strength II.

Attribute: moon_phase