mojira.dev
MC-151475

Dummy scoreboard resets itself on its own

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

Can you attach the data pack (or a test data pack for this issue) here?

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

Also might be happening with trigger scoreboards.

Potentially found something in data pack. Mark as resolved for now please? Something hidden in a function file for far too long. Spawner mover specifically in the tick.mcfunction

user-2a4c8

(Unassigned)

Unconfirmed

(Unassigned)

Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2

Retrieved