-
Notifications
You must be signed in to change notification settings - Fork 2
Custom Skills
Sygikal edited this page Sep 26, 2025
·
12 revisions
- In a datapack with your own namespace and add the
skilldirectory. - In the
skilldirectory add a json file and named after the skill you want (egforaging.json) (Whatever you name the file will be the id of the skill)
{
"max_level": 22,
"index": 0,
"attributes": [
{
"primary": {
"type": "custom_mod:custom_attribute",
"mod": "custom_mod"
},
"index": 0,
"type": "generic.max_health",
"base": 8,
"set_base_value": true,
"operation": "ADDITION",
"value": 1
}
],
"bonus": [
{
"level": 10,
"key": "bonusapi:health_regen"
}
]
}
-
max_level(optional, default 20) The skills max level -
index(optional, default 999) custom order in the Skill Screen -
texturepath for the skills texture -
attributesis an array of attributes to award the player-
index: index on the attribute list in the skills menu (optional, default 999) -
typeis the attribute id -
baseis the base value of the attribute (what it will start out as when you have no points) -
set_base_valuewhether or not the base value will be used -
operationhow the attribute is calculated per level-
ADDITION: add constant per level -
MULTIPLY_BASE: adds a multiplicative of the base value -
MULTIPLY_TOTAL: adds a multiplicative of whatever the current value is (you should probably never use this)
-
-
valuethe value to add or multiply by
-
-
bonusbonus id that should be unlocked at a certain level