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

Zoglins uselessly try to attack Withers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.20.22 Preview, 1.18.20.26 Preview, 1.17.11 Hotfix, 1.16.100.50 Beta, 1.16.20.54 Beta, 1.16.20.53 Beta, 1.16.0.68 Beta, 1.16.0.63 Beta, 1.16.0.61 Beta, 1.16.0.60 Beta, 1.16.0.59 Beta, 1.16.0, 1.16.1, 1.16.10, 1.16.201 Hotfix, 1.18.10, 1.20.0, 1.20.81 Hotfix, 1.21.2 Hotfix
    • None
    • Confirmed
    • Multiple
    • 359423

      Zoglins try to attack Withers, which they cannot damage.

      Steps to reproduce:

      1. Spawn a wither and a zoglin next to each other

      Observed result:
      The zoglin chases the wither to no avail.

      Expected result:
      The zoglin does not attack the wither, which it cannot damage.

      Fix:
      Change the following field in the zoglin.json file to:

            "minecraft:behavior.nearest_attackable_target": {
              "priority": 3,
              "within_radius": 16.0,
              "entity_types": [
                {
                  "filters": {
                    "all_of": [
                      {
                        "test": "is_family",
                        "subject": "other",
                        "operator": "!=",
                        "value": "zoglin"
                      },
                      {
                        "test": "is_family",
                        "subject": "other",
                        "operator": "!=",
                        "value": "creeper"
                      },
                      {
                        "test": "is_family",
                        "subject": "other",
                        "operator": "!=",
                        "value": "wither"
                      }
                    ]
                  },
                  "max_dist": 16
                }
              ],
              "must_see": true
            },
      

            Jarl-Penguin [Mod] Jarl-Penguin
            Votes:
            18 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: