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
    • None
    • Confirmed
    • Multiple
    • 359423

      Summary
      Zoglins try to attack Withers, which they cannot damage.

      How to reproduce:

      1. Spawn a wither and a zoglin

      -> The zoglin chases the wither to no avail

      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 [Helper] Jarl-Penguin
            Votes:
            15 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: