# Status

Structure:

<details>

<summary>Structure</summary>

```yaml
status:
  display-name: "<green><b>ACTIVE</b>"
  weight: 10
  decay: false
  allow-switch:
    from: true
    to: true
  holo: "Holograms/default.yml"
```

* `display-name` -&#x20;

- `weight` -&#x20;

* `decay` -&#x20;

- `allow-switch` -&#x20;

* `holo` -&#x20;

```yaml
requirements: # To allow switching to this status, the protection must meet these values
    auto-enable: false # Automatically switch to this status after reaching the requirements
    health: 1 # Has at least X amount
    fuel-timer: 1 # Ticks | Has at least X amount
    generator-stored-money: 0 # Has at least X amount
    decay-timer: 0 # Has at least X amount
```

* `auto-enable` -&#x20;

- `health` -&#x20;

* `fuel-timer` -&#x20;

- `generator-stored-money` -&#x20;

* `decay-timer` -&#x20;

```yaml
 gui-item:
    <...>
```

* GUI item - same format as any other GUI item

```yaml
modifiers:
    health:
      capacity:
        modify: 0
        multiply: 1
    regen:
      amount:
        modify: 0
        multiply: 1
      interval:
        stop: false
        modify: 0 # Ticks
        multiply: 1
      damage-delay:
        modify: 0 # Ticks
        multiply: 1
    range:
      amount:
        modify: 0
        multiply: 1
    generator:
      money:
        amount:
          modify: 0
          multiply: 1
        interval:
          stop: false
          modify: 0 # Ticks
          multiply: 1
        capacity:
          modify: 0
          multiply: 1
      items:
        overall-chance:
          modify: 0
          multiply: 1
        interval:
          stop: false
          modify: 0 # Ticks
          multiply: 1
        capacity:
          modify: 0
          multiply: 1
    storage:
      slot-capacity:
        modify: 0
        multiply: 1
    fuel:
      capacity:
        modify: 0
        multiply: 1
      consume-interval:
        stop: false
        modify: 0 # Ticks
        multiply: 1
    decay:
      timer:
        stop: false
        reset: true
        modify: 0 # Ticks
        multiply: 1
      money-cost:
        multiply: 0
        add: 0
      item-cost:
        multiply: 0
        add: 0
    damage:
      blast:
        modify: 0
        multiply: 1
      tool:
        modify: 0
        multiply: 1
      none:
        modify: 0
        multiply: 1
    defense:
      amount:
        modify: 0
        multiply: 1
      capacity:
        modify: 0
        multiply: 1
      scaling-factor:
        modify: 0
        multiply: 1
```

* `modify` - Adds on top of the value
* `multiply` - Multiplies the value
* `stop` - Stops the interval / timer (when applicable)

```yaml
permissions:
  disable: []
```

* `disable` - Permissions to disable while the status is active

</details>

<details>

<summary>EXAMPLE - Full config</summary>

```yaml
status:
  display-name: "<green><b>ACTIVE</b>"
  weight: 10
  decay: false
  allow-switch:
    from: true
    to: true
  holo: "Holograms/default.yml"

  requirements: # To allow switching to this status, the protection must meet these values
    auto-enable: false # Automatically switch to this status after reaching the requirements
    health: 1 # Has at least X amount
    fuel-timer: 1 # Ticks | Has at least X amount
    generator-stored-money: 0 # Has at least X amount
    decay-timer: 0 # Has at least X amount

  gui-item:
    item-type: "NONE"
    amount: 1
    model-data: 499
    enchants:
      - "infinity"
    flags:
      - "HIDE_ATTRIBUTES"
      - "HIDE_ENCHANTS"
    material: "GREEN_STAINED_GLASS_PANE"
    name: "<dark_gray>[<green><b>ACTIVE</b><dark_gray>]"
    lore:
      - "<gray>Status modifiers:"
      - "<dark_gray>> <green>None!"
      - ""
      - "<st><yellow><b>CLICK</b><gray> to change! </st> <red><b>Coming soon!"
    actions:
      left-click:
        - "[SOUND] ui.button.click 1 1" # <SOUND NAME> <VOLUME> <PITCH>
      RIGHT_CLICK:
        - "[SOUND] ui.button.click 1 1" # <SOUND NAME> <VOLUME> <PITCH>

  modifiers:
    health:
      capacity:
        modify: 0
        multiply: 1
    regen:
      amount:
        modify: 0
        multiply: 1
      interval:
        stop: false
        modify: 0 # Ticks
        multiply: 1
      damage-delay:
        modify: 0 # Ticks
        multiply: 1
    range:
      amount:
        modify: 0
        multiply: 1
    generator:
      money:
        amount:
          modify: 0
          multiply: 1
        interval:
          stop: false
          modify: 0 # Ticks
          multiply: 1
        capacity:
          modify: 0
          multiply: 1
      items:
        overall-chance:
          modify: 0
          multiply: 1
        interval:
          stop: false
          modify: 0 # Ticks
          multiply: 1
        capacity:
          modify: 0
          multiply: 1
    storage:
      slot-capacity:
        modify: 0
        multiply: 1
    fuel:
      capacity:
        modify: 0
        multiply: 1
      consume-interval:
        stop: false
        modify: 0 # Ticks
        multiply: 1
    decay:
      timer:
        stop: false
        reset: true
        modify: 0 # Ticks
        multiply: 1
      money-cost:
        multiply: 0
        add: 0
      item-cost:
        multiply: 0
        add: 0
    damage:
      blast:
        modify: 0
        multiply: 1
      tool:
        modify: 0
        multiply: 1
      none:
        modify: 0
        multiply: 1
    defense:
      amount:
        modify: 0
        multiply: 1
      capacity:
        modify: 0
        multiply: 1
      scaling-factor:
        modify: 0
        multiply: 1

  permissions:
    disable: []
```

</details>
