mojira.dev
MC-267967

Breezes ignore the deflects_projectiles entity type tag

There are three projectile deflectors in Minecraft snapshot 24w03b: no deflection, simple deflection, and breeze deflection (simple with an added sound).

Most entity types can have simple deflection enabled by being added to the deflects_projectiles entity type tag. However, breezes are special-cased to ignore the tag and use breeze deflection when the projectile is thrown or shot by a player.

Thus, breezes ignore the deflects_projectiles entity type tag. If breezes are removed from the tag, they will still deflect with a custom sound. If they are in the tag, then they will not deflect non-player projectiles like other entities in the tag will.

Steps to reproduce

1. Create a data pack containing an empty minecraft:deflects_projectiles entity type tag with "replace": true.
2. Enable/reload the data pack.
3. Shoot an arrow at a breeze
4. Notice that the breeze deflects the projectile.

Code analysis (Yarn mappings)

This bug can be fixed by calling the default implementation from within the BreezeEntity#getProjectileDeflector method (I'm not sure whether the fact that the breeze is in the tag means that removing the breeze from the tag should prevent the breeze's custom behavior, so if that is the case, then the tag check would have priority over the breeze deflection conditions).

Attachments

Comments 4

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please provide a data pack showcasing the issue?

Just a reminder, 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 – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

This issue occurs in the latest snapshot, reactivating.

This should be fixed now, but the datapack will need to use the correct directory in order to work:

tags/entities -> tags/entity

haykam

coschevi

1171610

Confirmed

Expansion B

Normal

Data Packs, Mob behaviour

breeze

24w03b, 24w06a, 1.20.6, 24w18a, 1.21, 1.21 Release Candidate 1

24w21a

Retrieved