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

Lightning bolts cannot be targeted by selectors


    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.16 Pre-release 1
    • Minecraft 14w31a, Minecraft 14w32d, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w17a, Minecraft 17w17b, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w20c, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 3, 1.14.4, 19w46b, 1.15 Pre-Release 2, 1.15.2, 20w06a
    • Confirmed
    • Commands

      The bug

      Lightning bolts (lightning_bolt) cannot be targeted by selectors.
      However their id can be used as type argument value (explanation in this comment).

      How to reproduce

      Have two command blocks, one constantly spawning lightning bolts, the other running for example

      /execute as @e[type=lightning_bolt] run say Found

            slicedlime [Mojang] slicedlime
            flapjacksmike Mike B
            16 Vote for this issue
            14 Start watching this issue