Update Custom Professions

Jules 2020-12-21 05:04:15 -07:00
parent eba37e835b
commit f4a1ae700e

@ -1,12 +1,31 @@
Although MMOCore features at the moment 7 default professions, you can Although MMOCore features at the moment 7 default professions, you can create as many professions as you want to make your leveling system more interesting. Professions can have specific **experience sources** i.e actions players can perform in order to get X exp in a specific profession.
create as many professions as you want to make your leveling system more
interesting. Professions can have specific **experience sources** i.e
actions players can perform in order to get X exp in a specific
profession.
Once players have earned enough experience in their profession, they not Once players have earned enough experience in their profession, they not only level up their profession but also receive some class EXP which can level up their main level and give them skill points.
only level up their profession but also receive some class EXP which can
level up their main level and give them skill points. ## Example: Farming Profession
```
# Display options
name: Farming
# Experience given to the main level
# when leveling up this profession
experience:
base: 10
per-level: 2
# Must match an existing exp curve filename from the 'expcurves' folder
exp-curve: levels
exp-sources:
- 'mineblock{type=CARROTS;amount=1-3;crop=true;player-placed:true}'
- 'mineblock{type=POTATOES;amount=1-3;crop=true;player-placed:true}'
- 'mineblock{type=WHEAT;amount=1-3;crop=true;player-placed:true}'
```
All profession config files are saved in the `/MMOCore/profession` plugin folder. You may configure the profession display name, as well as the **main class experience** the player will earn whenever leveling this specific profession.
## Experience Curve
This determines how much EXP the player needs to reach the next profession level. More info on experience curves [over here](https://git.lumine.io/mythiccraft/mmocore/-/wikis/Experience%20Curves).
## Experience sources ## Experience sources
Let's have a look at an example. These are the default experience Let's have a look at an example. These are the default experience
@ -45,27 +64,4 @@ exp-sources:
| Smelt Item | `smeltitem{type=ITEM_MATERIAL}` | When an item is smelted (furnaces) | | Smelt Item | `smeltitem{type=ITEM_MATERIAL}` | When an item is smelted (furnaces) |
| Brew potion | `brewpotion{effect=SPEED,REGEN,...}` | [More info on Alchemy](Alchemy) | | Brew potion | `brewpotion{effect=SPEED,REGEN,...}` | [More info on Alchemy](Alchemy) |
| Enchant Item | `enchantitem{type=...}` | [More info on Enchanting](Echanting) | | Enchant Item | `enchantitem{type=...}` | [More info on Enchanting](Echanting) |
| Craft Item | `craftitem{type=BLOCK_MATERIAL}` | When a specific item is crafted. | | Craft Item | `craftitem{type=BLOCK_MATERIAL}` | When a specific item is crafted. |
## Example: Farming Profession
```
# Display options
name: Farming
# Experience given to the main level
# when leveling up this profession
experience:
base: 10
per-level: 2
# Must match an existing exp curve filename from the 'expcurves' folder
exp-curve: levels
exp-sources:
- 'mineblock{type=CARROTS;amount=1-3;crop=true;player-placed:true}'
- 'mineblock{type=POTATOES;amount=1-3;crop=true;player-placed:true}'
- 'mineblock{type=WHEAT;amount=1-3;crop=true;player-placed:true}'
```
All profession config files are saved in the `/MMOCore/profession` plugin folder. You may configure the profession display name as well as the class experience the player receives whenever leveling this specific profession.