Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-277385

No success output when successfully activating a /function command

XMLWordPrintable

    • Icon: Bug 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:

      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

        1. image.png
          376 kB
          Desert Blaster

            Unassigned Unassigned
            DesertBlaster Desert Blaster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: