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

@n entity selector, selecting the nearest entity, is not available in Bedrock Edition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.10.21 Preview, 1.21.10.20 Preview, 1.20.81 Hotfix, 1.21.30.22 Preview, 1.21.30.21 Preview, 1.21.2 Hotfix
    • Confirmed
    • Multiple
    • 1273238

      Summary:
      @n entity selector, selecting the nearest entity, is not available in Bedrock Edition. In Java Edition 24w21a it has been introduced, but didn't make its way to Bedrock.
      https://www.minecraft.net/article/minecraft-snapshot-24w21a

      Added @n entity selector, selecting the nearest entity

      • This functions as @e[sort=nearest,limit=1]
      • Additional requirements may still be provided; for example: @n[type=pig] will select the closest Pig

      Steps to reproduce:

      1. Enter a world with cheats on.
      2. Go to chat.
      3. Type:
        /kill @n

      Observed results:
      There is no @n entity selector in Bedrock.

      Expected results:
      It should be there in Bedrock as Java Edition has it in Java Edition 24w21a.

            EVGENSYPERPRO [Mod] EVGENSYPERPRO
            Votes:
            10 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: