mojira.dev
MCPE-74444

Zoglins uselessly try to attack Withers

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
      },

Linked issues

Attachments

Comments 2

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

Is this still an issue in the latest version? If so, please add a comment or update the affected version field.

To make your bug report as effective as possible, please try and include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

Quick Links:
πŸ““ Issue Guidelines – πŸ’¬ Mojang Support – πŸ“§ Suggestions – πŸ“– Minecraft Wiki

Affects latest version

Jarl-Penguin

(Unassigned)

359423

Confirmed

Multiple

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.201 Hotfix, 1.18.10, 1.20.0, 1.20.81 Hotfix, 1.21.2 Hotfix

Retrieved