mojira.dev
MC-271912

Mace smash attack does not affect players/entities on the same team with friendlyFire enabled

The mace smash attack will not work on players/entities that are on the same team as the player, when friendlyFire is enabled.

Steps to Reproduce:

  1. Add a team:

    /team add maceFriendly
  2. Ensure friendlyFire is enabled:

    /team modify maceFriendly friendlyFire true
  3. Summon/Spawn a pig:
    (optional) summon it with no gravity, to avoid it walking away from your test.

    /summon pig ~ ~ ~ {NoGravity:1b}
  4. Join it onto your team

    /team join maceFriendly @n[type=pig]
  5. Place an armor stand next to the pig

  6. Perform a mace smash attack onto the armor stand

Observed Behavior:

The pig will not be knocked back or be damaged at all (note; noGravity has no major affect on this normally)

Expected Result:

Because friendly fire is enabled, the smash attack would either deal knockback and damage, or at least knockback the entity and not deal damage. The fact that nothing happens is unexpected.

Screenshots/Videos:

[media]

Linked issues

Attachments

Comments 3

Can confirm in 24w19b.

Can't reproduce in 1.21.1

[media]
Minecraft386882

Can confirm for 1.21.3 

[Mod] Jingy

(Unassigned)

1243668

Community Consensus

Expansion B

Normal

Combat, Mob behaviour

friendlyfire, mace, mace-smash, team

1.20.6, 24w19b, 24w36a, 1.21.3

Retrieved