#Advancement based on scoreboard

1 messages · Page 1 of 1 (latest)

fierce berry
#

Is there any way to grant an advancement based on a scoreboard without running it every tick? I'm trying to detect when a written book is used and give an advancement but the using_item trigger doesn't seem to pick up written books. only other way is with a scoreboard looking in used:written_book

round elbowBOT
#

<@&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:1722603182: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: #1268584325612568617

spiral moon
#

Well yes and no. Advancements have the tick trigger, in which you can define conditions for the player such as with a value check predicate so you can check their score. However I believe this is still more efficient than running a command in a ticking function

fierce berry
#

Oh yup true, I'll probably need to compare scores so will need commands anyway

#

im guessing a predicate cant do that?

spiral moon
#

Value check can compare scores to a fixed context, such as a fake player

fierce berry
#

what about the score of one objective to another

spiral moon
#

Yep

#

Misode is very useful here

fierce berry
#

hmm ok maybe I should try it, what's misode?

spiral moon
#

😮

humble marshBOT
#
Misode
About

misode.github.io is the most popular site for JSON datapack generators. This site has generators for commonly used files such as advancements, recipes, and more, as well as datapack changelogs, debug inspectors, and more.

spiral moon
#

A generator for all JSON files in the game

#

You've been around for long enough I'm surprised no one's directed you here yet

fierce berry
#

yeah, I think I've ended up there from google searches but didn't realise it was called misode

#

I almost finished doing it with tick commands now I can't be bothered trying to do it with the advancement tick XD

spiral moon
#

ok

#

Not sure what you needed help with then 😅

fierce berry
#

well figured id just get started while i waited for help ya know

round elbowBOT
fierce berry
#

probaly worth figuring out how to do it with advancements though, maybe tomorrow it's bed time