'execute if/unless score' sets the score to 0 if unset
The bug
Using /execute if/unless score and testing for players which do not have a score sets 0 for them and the test succeeds.
Expected would be that the comparison failed and no score was set.
How to reproduce
- Create a new objective called something like test
- Run the following to set the value to test with
/scoreboard players set value test 0
- Run
/execute if score something test = value test run say test
The command runs successfully even though the player "something" hasn't been initialized in the objective "test"
Created Issue:
'execute if/unless score' sets the score to 0 if unset
What I expected to happen was:
The test would fail and the score wouldn't change. Even if it was testing for 0.
This is the behaviour in 1.12What actually happened was:
The tested score would be set to 0 and if the test was testing for the value being 0, it would succeed.Steps to reproduce:
- Create a new objective called something like test
- Run
scoreboard players set value test 0to set the value to test with
- Run
execute if score something test = value test run say test- The command runs successfully even though the player "something" hasn't been initialized in the objective "test"
This might be related to
MC-122431
What Iexpected to happen was:Thetestwould fail and the score wouldn't change. Even if it was testing for 0.
This is the behaviour in 1.12What actually happened was:
The tested score would be set to 0 and if the test was testing for the value being 0, it would succeed.
Steps to reproduce:
- Create a new objective called something like test
- Run
scoreboard players set value test 0to set the value to test with
- Run
execute if score something test = value test run say test- The command runs successfully even though the player "something" hasn't been initialized in the objective "test"
This might be related to
MC-122431The bug
Using /execute if/unless score and testing for players which do not have a score sets 0 for them and the test succeeds.
Expected would be that the comparison failed and no score was set.
This might be related to
MC-122431How to reproduce
- Create a new objective called something like test
- Run the following to set the value to test with
/scoreboard players set value test 0- Run
/execute if score something test = value test run say test
The command runs successfully even though the player "something" hasn't been initialized in the objective "test"
The bug
Using /execute if/unless score and testing for players which do not have a score sets 0 for them and the test succeeds.
Expected would be that the comparison failed and no score was set.
This might be related to
MC-122431How to reproduce
- Create a new objective called something like test
- Run the following to set the value to test with
/scoreboard players set value test 0- Run
/execute if score something test = value test run say test
The command runs successfully even though the player "something" hasn't been initialized in the objective "test"
The bug
Using /execute if/unless score and testing for players which do not have a score sets 0 for them and the test succeeds.
Expected would be that the comparison failed and no score was set.
How to reproduce
- Create a new objective called something like test
- Run the following to set the value to test with
/scoreboard players set value test 0- Run
/execute if score something test = value test run say test
The command runs successfully even though the player "something" hasn't been initialized in the objective "test"
Confirmed