mojira.dev
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

Linked issues

Attachments

Comments 4

Additional information: this used to work in 1.19 when I last played on this world, after I upgrade it to 1.21.1 it stopped working.

We do not have enough information to reproduce this issue.

Please include the following information to help us understand your problem:

Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

I don't know how to reply but I have updated the report with the informationΒ 

Thank you for your report!
We're tracking this issue in MC-265782, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

Desert Blaster

(Unassigned)

Unconfirmed

(Unassigned)

1.21.1

Retrieved