![Pufferfish's Skills [Fabric & Forge & NeoForge]](https://media.forgecdn.net/avatars/thumbnails/786/631/256/256/638138098303113835.png)
how to create an advancement for reaching a certain level on a skill tree
KaydenXzilon opened this issue ยท 2 comments
I'm creating a modpack that has both puffish skills and apoteosis tiers.
I would like to code an additional requirement to the aphoteosis tiers to reach a certain level on puffish skills
how do I reference the level on a specific skill tree? is there a variable that I can read the value from? or maybe for the total XP. I saw that there is a command to get the total XP for a tree and I could probably calculate from that but I wanted to check and see if you had a better way for me to pull that stat for advancements.
Thanks for the information. what I was looking more was for a way to re-write the advancement file for apoteosis and add the level requirements for puffish skills. but to do that it requires a "trigger" event and I couldn't figure out how to do that with puffish skills
I think based on your guide I would be able to point to the player's experience variable on the files using the namespace to try to do some math with it but the lack of the trigger is what made idea I had for the progression system not possible. at least not at my programming skill level
anyways thank you very much for responding to my question and maybe consider adding it as a feature for a future update? I'm currently trying to figure out how to tame or delay the progression with apotheosis since it makes the player too strong too quickly LOL
I love your mod and how much time you've put into the documentation for it. I was able to figure out the complex tree that I wanted to create based on the examples and documentations you provided.
Hi, there is /puffish_skills experience get <player> <category>
command which returns the amount of XP in given category. It is also possible to use API to read XP, but it requires writing an add-on mod.
I know this is not exactly what you want, but alternatively you trigger advancements for unlocking skills. It can be done by using Command Reward which could execute /advancement (grant|revoke) <targets> only <advancement> [<criterion>]
vanilla command.