#Advanced advancements detection

1 messages · Page 1 of 1 (latest)

misty copper
#

Hi there,
I created many advancement trees for all my games, i actually have 1343 advancements. I created a stat book that, when taken, displays the number of advancements done for each minigame... But i had to reaaaally hardcore everything for this : each advancement need to be detected and adds a score, than the book will resolve then. This makes the file huge.

Example :
execute if entity @s[advancements={cas:wanted8=true}] run scoreboard players add KroSuccessCasino KroTime 1 execute if entity @s[advancements={cas:tradeall=true}] run scoreboard players add KroSuccessCasino KroTime 1 execute if entity @s[advancements={phasmophobia:tomb=true}] run scoreboard players add KroSuccessPhasmo KroTime 1

The book displays each different score depending the minigame and the total is the sum of all the scores.

Is there an optimized way to store how much advancements from the same tree, path or total have been done ?

void crownBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1744397285:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

#
⚠️ You already have a question open!

Don't forget to close or resolve your old questions once you're done with them. It makes our lives much easier! :D

Open question: #1360294155095507196

misty copper
#

2 random pages

#

I know i can do execute store result score <me> <score> run advancement revoke/grant @s from namespace:root but it would need to save which advancements the player must gain and miss after this test, no ?

fathom kite
#

you can make every advancement run a function as a reward.

#

Those functions then add the specific score

#

That way you don't have to check for every advancement every time you want to increment one of the scores.

misty copper
#

Hmmm yes but actually "too late" for all the players already having the advancements, they won't re-reward, so they still would need to massively detect their advancements at next connexion

#

at least i know i'm not missing a dark command about this point

#

thx

void crownBOT
#
Question Closed

Your question, #1360318000309338396 (Advanced advancements detection), was resolved!

Original Message

#1360318000309338396 message

Duration open

8h22m