Skip to content

Attributes ​

Version 1.9.4+ Added guild attributes

Image Display ​

imgimgimgimg

Buff Types ​

Buff Process ​

  1. Players join guild and mine ores daily at guild sacred stone using different types of pickaxes
  2. Guild leader uses ores to upgrade and unlock guild attributes
  3. Guild attributes take effect for all guild members

Configuration Process ​

  1. Need to configure in sacredStone.yml, there's a buff node (regenerate file if not present)
  2. Can configure multiple buffs, freely configure attributes as desired
  3. Can customize maximum upgrade level for each buff
  4. Can use custom formulas to calculate upgrade materials needed per buff level and buff attributes

First configure enabled types

text
# buff type
buffType: "attribute_plus"

Attribute example:

text
# Actual effective attributes level is current level variable ${} contains operators, supports +-*/ and numeric variables
attribute:
  - '&ePhysical Damage: ${level * 1}'

MythicLib / MMOItems Configuration Method ​

Format is attribute_name:value
For example MAX_HEALTH: 5 increases 5 health points (corresponding to MMOItems/Language/stats.yml attribute ID)
Attribute name is case-insensitive, can directly copy attributes from stats.yml

yaml
# Can configure multiple corresponding attributes
attribute:
    - 'max-health: ${level * 1}'
    - 'attack-damage: ${level * 1}'
# Because mmo attribute nodes are in English, you can configure ${buff} variable content to display in lore here
display:
    - '&eIncrease Health: ${level * 1}'
    - '&eAttack Damage: ${level * 1}'

MythicMobs Configuration Method ​

Requires a MythicMobs version that provides the Stats system (5.x); the type is skipped when not installed or unsupported.
Format is attribute:value; - in the name is converted to _ and matching is case-insensitive.
The stat name must be registered on the server. You can use a custom MythicMobs stat such as GUILD_ATTACK_POWER: 5; invalid names are silently ignored.

yaml
# Set buffType to MythicMobs
buffType: "MythicMobs"

attribute:
  - 'GUILD_ATTACK_POWER: ${level * 1}'
  - 'GUILD_ARMOR: ${level * 1}'
display:
  - '&eAttack Power: ${level * 1}'
  - '&eArmor: ${level * 1}'

Duplicate MythicMobs stats within one configuration list are summed first. When PlayerGuild writes the same stat again later, it replaces its previous value. The value is re-applied after the player reconnects. The stat must be registered in MythicMobs. Unknown stat names are ignored.