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

"targeted_entity" in predicates does not work for Hoglins and Zoglins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 20w21a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5 Release Candidate 1, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w08a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Data Packs
    • Mojang Priority:
      Low

      Description

      The bug

      Using the targeted_entity parameter in an entity_properties predicate condition does not work for Hoglins and Zoglins. The parameter can be used with other mobs without issues.

      Here are examples of affected predicates:

      {
        "condition": "entity_properties",
        "entity": "this",
        "predicate": {
          "type": "hoglin",
          "targeted_entity": {}
        }
      }
      
      {
        "condition": "entity_properties",
        "entity": "this",
        "predicate": {
          "type": "zoglin",
          "targeted_entity": {}
        }
      }
      

      How to reproduce

      1. Install the data pack below in a world for easier reproduction.
      2. Use the following command to give yourself a customized Name Tag:
        /give @s name_tag{display:{Name:'{"text":"targeted_entity","italic":false}'}}
      3. Use the customized Name Tag on a different mob such as a Zombie, and then make it attack another mob.
        That mob shows dust particles.
      4. Use the same Name Tag on a Hoglin or Zoglin, and then repeat the same procedure.
        The Hoglin or Zoglin does not show dust particles.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            BoyrexMacaraya Alireza Macaraya
            Votes:
            10 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: