Docs
Attributes
Attributes are permanent upgrades players buy with any currency. Every level adds stats, making them the most direct way to turn currency into progress.
| Configuration | attributes.yml |
| Menu | menus/attributes.yml |
| Command | /attributes (aliases /attribute, /atributos) |
| Module | attributes |
Configuration
yaml
attributes:
merchant:
enabled: true
name: "@attributes.items.merchant-name"
description: "@attributes.items.merchant-description"
icon: EMERALD
slot: 11 # optional, fixed slot in the menu
max-level: 50
currency: tokens
cost: "2500 * 1.18 ^ {level}" # {level} is the current level
bonuses:
sell: "{level} * 0.02" # +2% selling per level
scholar:
icon: EXPERIENCE_BOTTLE
max-level: 40
currency: tokens
cost: "3000 * 1.2 ^ {level}"
bonuses:
pickaxe-exp: "{level} * 0.03"
level-exp: "{level} * 0.01"| Option | Does |
|---|---|
name · description | Text or @key |
icon · slot | Menu icon and slot |
max-level | Maximum level |
currency · cost | Currency and price of the next level, formula of {level} |
bonuses | Stat: formula of {level} |
Included: merchant (selling), scholar (experience) and gambler (enchant chance and lucky block charge).
Commands
| Command | Permission | Does |
|---|---|---|
/attributes | everyone | Menu to buy levels |
/attributes set <player> <attribute> <level> | pulseprison.attributes.admin | Sets a level |
/attributes reload | pulseprison.attributes.admin | Reloads attributes.yml |