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

/execute as in 18w09a in datapacks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 18w09a
    • None
    • OS: win. 10, Java 8 update 161
      i am not using mods.
    • Unconfirmed

      to reproduce:
      make a datapack with a function, any name will do.
      in this function, paste this line:
      say nearest to me: @e[sort=nearest,type=!player,limit=1]
      put down any command block and paste this line:
      execute as @p run function namespace:function
      now, put any entity close to this command block except players
      go away so you can have a different entity close to you
      activate the command block by any means
      it should say:
      [your name here] nearest to me: <entity near command block>
      correct output SHOULD be:
      [your name here] nearest to me: <something actually near you>

      the screenshot attached demonstrates this.

            Unassigned Unassigned
            RobotMan2412 Julian Scheffers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: