{
  "anvil_cost": 8,
  "description": {
    "translate": "enchantment.dnt.photosynthesis",
    "fallback": "Photosynthesis"
  },
  "effects": {
    "minecraft:tick": [
      {
        "requirements": {
          "condition": "minecraft:any_of",
          "terms": [
            {
              "condition": "minecraft:all_of",
              "terms": [
                {
                  "condition": "minecraft:weather_check",
                  "raining": false,
                  "thundering": false
                },
                {
                  "condition": "minecraft:location_check",
                  "predicate": {
                    "can_see_sky": true
                  }
                },
                {
                  "condition": "minecraft:any_of",
                  "terms": [
                    {
                      "condition": "minecraft:all_of",
                      "terms": [
                        {
                          "condition": "minecraft:location_check",
                          "predicate": {
                            "dimension": "minecraft:overworld"
                          }
                        },
                        {
                          "condition": "minecraft:time_check",
                          "value": {
                            "min": 0,
                            "max": 12000
                          },
                          "period": 24000
                        }
                      ]
                    },
                    {
                      "condition": "minecraft:location_check",
                      "predicate": {
                        "dimension": "minecraft:the_end"
                      }
                    }
                  ]
                },
                {
                  "condition": "minecraft:random_chance",
                  "chance": {
                    "type": "minecraft:enchantment_level",
                    "amount": 0.01
                  }
                }
              ]
            },
            {
              "condition": "minecraft:all_of",
              "terms": [
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "this",
                  "predicate": {
                    "location": {
                      "light": {
                        "light": {
                          "min": 9
                        }
                      }
                    }
                  }
                },
                {
                  "condition": "minecraft:random_chance",
                  "chance": {
                    "type": "minecraft:enchantment_level",
                    "amount": 0.01
                  }
                }
              ]
            }
          ]
        },
        "effect": {
          "type": "minecraft:change_item_damage",
          "amount": -1
        }
      }
    ]
  },
  "exclusive_set": "#nova_structures:exclusive_set/longevity",
  "max_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "max_level": 1,
  "min_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "slots": [
    "any"
  ],
  "supported_items": "#minecraft:enchantable/durability",
  "weight": 1
}