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

mcfunction command direction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16.221 Hotfix
    • None
    • Unconfirmed
    • Android

      I tried to make a behaviour pack that makes mob stay still when you look at them

      tried using repeat command block

      /execute @a ^ ^ ^64 effect @e[r=64,type=!player] slowness 1 255

      and it works. no problem.

      so i put all that command into a mcfunction file and add a tick.json

      put the behaviour pack and load a world.

      the function is still there, but theres something wrong, the direction of the function is z+ not where im looking at.

      i tried to fix it by doubling the execute

      execute @a ~ ~ ~ execute @s ^ ^ ^64 effect @e[r=64,type=!player] slowness 1 255

       

      get in the world, and the problem is still there

      is this a bug? any solution to prevent this?

            Hinge 45 Hinge 45
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: