Skill Tree JSON Format
This is the format of a JSON file describing a skill. They need to be placed inside the skill_trees
folder within your namespace. default_powers
are used to create a way to earn points on your skill tree that you can implement yourself.
Fields
Field | Type | Default | Description |
---|---|---|---|
name |
Text | The display name of the skill widget. | |
description |
Text | The description of the skill widget. | |
icon |
Item Stack | {"item": "minecraft:grass_block"} | The item which is displayed as the icon for the skill widget. |
power |
Identifier | optional | IDs of the power this skill will grant. |
powers |
Array of Identifiers | optional | IDs of the powers this skill will grant. |
parent |
Identifier | optional | The skill identifier that will be the parent of this widget. |
default_powers |
Array of Identifiers | optional | IDs of the powers this tree will grant when the player joins the game. Will not be read if a parent exists. |
background |
Identifier | optional | The ID of the texture that will be the background of the skill tree. |
condition |
Condition | optional | Makes it so that the player can only buy the skill if they meet this condition. |
cost |
Integer | optional | The amount of points that the player needs in order to purchase this skill. |
Example
{
"icon": {
"item": "minecraft:stick"
},
"name": "Parkour Skills",
"description": "A skill tree that lets you earn parkour skills",
"power": "example_pack:gain_points",
"default_powers": [
"example_pack:gain_points"
],
"cost": 0
}
This example skill will grant the example_pack:gain_points
power to players on join. This is a root of a skill tree.