This system allows you to create branching trees for powers and skill progression. Ability tree files are located in data/corewithstuff/cws_ability/test.json .
{
"title": "Test Tree",
"nodes": {
"test_start": {
"id": "test_start",
"title": "Root Node",
"description": "This is the starting point of the test tree.",
"icon": "minecraft:textures/item/iron_sword.png",
"on_unlock": [],
"on_refund": [],
"targetX": 0,
"targetY": 0,
"nextAbilities": [
"test_branch_a"
]
},
"test_branch_a": {
"id": "test_branch_a",
"title": "Branch Ability",
"description": "An example sub-node that costs points to unlock.",
"costAmount": 5,
"scoreboardObjective": "TestPoints",
"icon": "minecraft:textures/item/blaze_powder.png",
"on_unlock": [],
"on_refund": [],
"targetX": 0,
"targetY": -100,
"previousAbility": "test_start",
"nextAbilities": []
}
}
}