-
Bug
-
Resolution: Duplicate
-
None
-
1.21.1
-
None
-
Windows 10, Java 1.21
-
Unconfirmed
-
(Unassigned)
If you have a datapack with a function file at the location
datapacks\datapack_name\data\folder_a\function\folder_b\function.mcfunction
After running this command on a command block in the world:
/function folder_a:folder_b/function
If a redstone comparator or a chain command block is attached to this command block, they will not be activated even if the /function command itself has worked and triggered the command stored within the function.mcfunction file.
Same thing happens when I run a command in the chat such as:
/execute store success score @s testing run function folder_a:folder_b/function
I will not receive a positive output in my scoreboard named "testing" (I don't get a score of 1), however, when I run other commands like /say hi, it works.
In the image attached, I am running a function with the command "say hi" in it, although the command within the .mcfunction file has successfully activated, the command block did not output a redstone signal.
STEPS TO REPRODUCE:
- Set up a valid datapack
- Place down a command block chained to a chain command block, or use a redstone comparator, the command in this command block is a /function command that runs this function in the datapack
OBSERVED RESULT
- The chain command block is not activated and/or the redstone comparator did not turn on.
EXPECTED RESULT
1. The chain command block should have activated and/or the redstone comparator should have turned on
- duplicates
-
MC-265782 /function only returns a "success" score if /return is run
- Resolved