Affects Version/s: Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1-pre2, Minecraft 1.14.1 Pre-Release 1, 1.15.2, 20w08a, 1.16.3
Fix Version/s: None
Category:Commands, Data Packs
Using execute store result to get the number of commands ran in a function always outputs 1 if ran inside of another function.
Use attached datapack containing two functions:
1. Run the following command in chat, notice score gets set to 1
2. Run this command in chat or in a command block, notice score gets set to the amount of commands ran
I expected the execute store result to behave the same way inside of a function as it does in chat or in a command block.
The store gets set to 1 if the execute store command is inside of a function regardless of the amount of commands ran.