Mojira Archive
MC-277385

No success output when successfully activating a /function command

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:

  1. Set up a valid datapack
  2. 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

  1. 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

Duplicate

Desert Blaster

2024-10-08, 03:06 AM

2024-10-14, 05:03 PM

2024-10-14, 05:03 PM

0

2

Unconfirmed

(Unassigned)

1.21.1

-