I created a datapack to give anyone without a dummy score of knowledgeBook of 1 a knowledge book and sets your score to 1. After a while of playing, a new book is given.
Two functions (in datapack)
tick.mcfunction (called by a tick function):
scoreboard players add @a knowledgeBook 0
execute as @a[scores={knowledgeBook=0}] at @s run function survival:give_knowledge_book
give_knowledge_book:
give @s minecraft:knowledge_book{Recipes:["survival:diamond_horse_armor","survival:enchanted_golden_apple","survival:golden_horse_armor","survival:iron_horse_armor","survival:leather_smelt","survival:leather_smoker","survival:saddle"]}
scoreboard players set @s knowledgeBook 1
There are no other commands resetting the score after the few hours I noticed it happening.
Attachments
Comments 4
Attached all data packs I have on the world (the one player sleep one isn't working atm and was going to remove it but added it here just in case). They were all created by me. I'm fairly sure none of them reset everyone's scores.
The one with (must unzip) I keep as a folder so I can easily modify it. All the others are kept as .zips
Can you attach the data pack (or a test data pack for this issue) here?