{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:tick",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:reference",
            "name": "survivalplus:gainsanity"
          },
          {
            "condition": "minecraft:random_chance",
            "chance": 0.05
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "survivalplus:tools/sanity/up"
  }
}
