Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-184554

using the 'execute' command in a minecraft function does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21.2 Hotfix
    • None
    • Unconfirmed
    • Windows

      When using the 'execute' command in a Minecraft function file (.mcfunction) in a behavior pack, the function does not appear on typing the '/function' command in game. However when using another command for example, 'say' in a different function file it does appear upon typing the command '/function'. Also i followed the steps given in https://learn.microsoft.com/en-us/minecraft/creator/documents/functionsintroduction?view=minecraft-bedrock-stable

      Steps to Reproduce:
      1.Create a basic behaviour pack containing a 'functions' folder

      2.in the folder, create 2 new .mcfunction files, name them function1 and function2

      3.in function1 type "execute at @s run say Hello!"

      4. in function2 type "say Hello!"

      5. save everything and add the behaviour pack to a new world

      Observed Results:
      upon running "/function function1" in the in-game chat, it will give an error that says that the function file does not exist.

      However, upon running "/function function2" in the in-game chat, it will not give an error and give the output of the normal /say command

      Expected Results:
      both function1 and function2 must run upon executing them individually using the /function command

            Intrucx_kode Intrucx_kode
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: