Conditions
About 273 wordsLess than 1 minute
Each expertise in focus/*.yml can have condition blocks that must be satisfied before the node can be learned. The conditions are checked when a player clicks the expertise node in the focus menu.
All conditions in a node must be met at the same time (AND).
| Id | Value | Meaning | Consumed |
|---|---|---|---|
company_money | Number | The company must have at least this much cash. | Yes, when an expertise is unlocked |
expertise | Expertise id | The listed node must already be unlocked. | No |
expertises | List | Every entry must be satisfied. Ids separated by commas on one entry mean OR. | No |
company_log | List | Every entry must reach the required counter. | No |
company_money
condition:
company_money: 15000The money is paid from the company balance when the node is learned. If the company cannot pay, the node stays locked. 0 always passes and would not take any money.
expertise
condition:
expertise: zombie_loot_1The node can only be learned after zombie_loot_1 is unlocked. A disabled node still counts as unlocked, so disabling a prerequisite does not break the tree.
expertises
condition:
expertises:
- zombie_master
- berserker
- bounty_masterAll three entries are required. This is the form used by the capstone.
Put comma-separated ids in one entry to express OR:
condition:
expertises:
- 'zombie_loot_2,loot_master_1'This node can be learned when either zombie_loot_2 or loot_master_1 is unlocked. Prefer two ids per entry: the condition line in the menu prints the first two ids.
company_log
condition:
company_log:
- 'mob_kill_count,ZOMBIE,100'The entry format is '<log id>,<type>,<amount>'.
- The type is a Bukkit entity type written in upper case, for example
ZOMBIE,SKELETONorCREEPER.