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

@e target selector not working with some commands



    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: Minecraft 14w02b, Minecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b, Minecraft 14w05a, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w10b, Minecraft 14w10c, Minecraft 14w21b
    • Fix Version/s: None
    • Confirmation Status:


      @e target selector does not work with some commands I think would make sense to be possible. This includes /give and /clear, and I will use those as examples. There are other commands which could benefit from @e, although I will need to look up the format to test them.

      What I expected to happen was...:
      When using /give and /clear with an entity target selector (@e), I would be able to respectively give the entity an item and clear the entities inventory or specific items.

      What actually happened was...:
      For each entity, you receive the message "The player cannot be found," meaning that the commands do not support entities. This is a lack of control which @e would benefit to include.

      Steps to Reproduce:
      1. Have commands enabled and be within 5 blocks of a zombie, then copy and paste either of these commands into chat:

      /give @e[type=Zombie,r=5,c=-1] minecraft:stone_sword

      /clear @e[type=Zombie,r=5,c=-1] minecraft:stone_sword 0 0

      2. Instead of the zombie respectively being given a stone block or returning if it has a stone block, you will receive the message: That player cannot be found




            • Assignee:
              searge [Mojang] Searge (Michael Stoyke)
              megascience LAN
            • Votes:
              3 Vote for this issue
              9 Start watching this issue


              • Created: