mojira.dev
MC-310069

Zombie-type mobs have a fixed 0% knockback resistance instead of 0-5%

In 26.3 Snapshot 3, all zombie-type mobs (Zombie, Husk, Drowned, Zombie Villager, Zombified Piglin) have their knockback_resistance attribute fixed at 0.0 (0%), without the intended 0%–5% random range applied on spawn.

Steps to Reproduce:   复现步骤:

  1. Spawn multiple zombies, husks, drowned, zombie villagers, or zombified piglins.

  2. Use command to get their knockback_resistance

    /attribute @n[type=#minecraft:zombies] minecraft:knockback_resistance base get
  3. Observe that all results are 0.0, with no variation.

Expected Result:  预期结果:

Zombie-type mobs should have a random base knockback resistance value between 0.0 (0%) and 0.05 (5%) when spawned.

Observed Result:   观察结果:

All zombie-type mobs spawn with fixed 0.0 (0%) knockback resistance; the 0%–5% random range is missing in 26.3 Snapshot 3.

Linked issues

Attachments

Comments 3

Thank you for helping us improve Minecraft! We saved your files:

[media]

Hi!
Thank you for your report! 

Could you please provide more details or any relevant media files?

  • Can you record a video of the issue and upload it?

  • Can you also include minecraft:knockback_resistance modifier and final value?

Quick Links: 
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Hi!  嗨!

Thank you for your follow-up. I'm really sorry – this report was based on my own misunderstanding. 

The behavior I described is actually the intended difference between /attribute get (which returns the total value including modifiers) and /attribute base get (which returns only the base value). Since this is not a bug, I don't think any additional details or video are needed. 

Could you please close this ticket as "Invalid"? I apologize for the inconvenience, and thank you for your time! 

AnonAya09081227

(Unassigned)

Unconfirmed

26.3 Snapshot 3

Retrieved