Affects Version/s: Minecraft 18w06a, Minecraft 1.13-pre4, Minecraft 1.14, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2
Fix Version/s: None
This seems related to
MC-123628, but not quite the same.
When running a function within an execute that stores the success value to a scoreboard objective, said objective cannot be changed.
Use the attached datapack MC-125145 datapack.zip or create the following functions within the namespace bug_test:
Run bug_test:func1 as a player
(I think it's also valid for "value once inside func2" to be 1, depends if the "success" value should get set immediately, or after. As long as "value after calling func2" represents whether it called the function or not)
If you remove store success score @s my_objective such that the execute command is
Then the variable is set accordingly. (i.e. "value reset to 10: 10")