Skip to content

Companion Potions ​

Companion Potions ​

Custom Potions

  1. Attack Trigger Keyword: _ATTACK_CHANCE
  2. Player's Attack Target Trigger Keyword: _ATTACK_TARGET_CHANCE
  3. Hit Trigger Keyword: _DEFENSE_CHANCE
  4. Player's Attacker Trigger Keyword: _DEFENSE_ATTACKER_CHANCE
  5. Direct Effect Grant
  1. ATTACK_CHANCE - Triggers when the player attacks For example, a chance to grant the player a strength effect on attack:

    yaml
    abilityList:
      - STRENGTH_ATTACK_CHANCE
  2. ATTACK_TARGET_CHANCE - Triggers on the player's attack target For example, a chance to grant the attack target a strength effect on attack:

    yaml
    abilityList:
      - STRENGTH_ATTACK_TARGET_CHANCE
  3. _DEFENSE_CHANCE - Triggers when the player is attacked For example, a chance to grant the player a regeneration effect when attacked:

    yaml
    abilityList:
      - REGENERATION_DEFENSE_CHANCE
  4. _DEFENSE_ATTACKER_CHANCE - Triggers on the player's attacker For example, a chance to grant the attacker a regeneration effect when the player is attacked:

    yaml
    abilityList:
      - REGENERATION_DEFENSE_ATTACKER_CHANCE
  5. Direct potion effect grant For example, grant the player a glowing effect after using the companion (requires the server to support this effect):

    yaml
    abilityList:
      - GLOWING

The abilityList entries above are all placed under the corresponding companion node. The chance, duration, name and cooldown of attack/defense potions can be configured per potion name in customability.yml, see Companion Abilities for details.