mojira.dev
MCPE-241991

`knockback_scaling` incorrectly scales explosion damage to entities.

Steps to reproduce the issue:

1. Create a behavior pack with `format_version` 1.21.40 or higher.

2. Define two custom entities with identical `minecraft:explode` components except for `knockback_scaling`.

Example A:

"minecraft:explode": {

"fuse_length": 0,

"fuse_lit": true,

"power": 8,

"damage_scaling": 1.0,

"knockback_scaling": 0.0

}

Example B:

"minecraft:explode": {

"fuse_length": 0,

"fuse_lit": true,

"power": 8,

"damage_scaling": 1.0,

"knockback_scaling": 1.0

}

3. Spawn each entity next to a test entity with identical health and armor at the same distance.

4. Trigger the explosion and record the direct explosion damage taken, without fall damage or other secondary damage.

Expected result:

The test entity takes the same damage from both explosions because `knockback_scaling` should only scale knockback force. Explosion damage should be controlled by `power` and `damage_scaling`.

Actual result:

The test entity takes less damage when `knockback_scaling` is lower, even though `power` and `damage_scaling` are identical. This shows that `knockback_scaling` is incorrectly scaling explosion damage.

Attachments

Comments 2

Thank you for your report!

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

Could you please attach an MCAddon showcasing the issue?

This ticket will automatically reopen when you reply.

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

I've attached the MCAddon (ExplodeKnockbackTest.mcaddon). It adds two spawn eggs with identical minecraft:explode settings except knockback_scaling: one is 1.0, the other is 0.0. Spawn each in survival from the same distance (3 blocks). Expected: same explosion damage, only knockback differs. Actual: the knockback_scaling: 0.0 entity deals less damage. Thanks.

[media]

H2VNull123

(Unassigned)

Unconfirmed

Multiple

26.50.24 Preview, 26.50.25 Preview, 26.50.26 Preview, 26.60.21 Preview, 26.60.23 Preview, 26.44 Hotfix, 26.45 Hotfix

Retrieved