mojira.dev
MCPE-74465

Hoglins and Zoglins do not fling entities into the air

Summary:
When a hoglin or zoglin attacks an entity or player, it does not fling the entity into the air like on Java Edition.

Steps to Reproduce:

  1. Spawn hoglin/zoglin

  2. Have the hoglin/zoglin attack an entity or player

Observed Results:
Entity/player is not flung into the air.

Expected Results:
Entity/player should be flung into the air.

Linked issues

Attachments

Comments 17

Java comparison:

[media]

Ravagers have the same issue, as per MCPE-79580.

Still affects every release/beta to this day

affects 1.16.200.56

7 more comments

Affects Beta 1.18.30.28 and Preview 1.18.30.29

Affects Beta 1.19.0.24 and Preview 1.19.0.25

The new minecraft:apply_knockback_rules component that was added in 26.30 can be useful for fixing this bug.

I don’t know what values are to be used though.

Actually just add the iron golem’s minecraft:apply_knockback_rules component to the minecraft:hoglin_adult and zoglin_adult component groups:

"minecraft:apply_knockback_rules": {
        "presets": [
          {
            "horizontal_power": 0.52,
            "vertical_power": 0.39,
            "vertical_velocity_cap": 0.8
          }
        ]
      }

migrated

(Unassigned)

357708

Confirmed

Multiple

vanilla-parity

1.19.0.25 Preview, 1.19.0.24 Beta, 1.18.30.27 Preview, 1.18.30.26 Beta, 1.18.20.25 Beta, , 1.16.100, 1.16.101 Hotfix, 1.16.221 Hotfix, 1.17.2 Hotfix, 1.20.32 Hotfix

Retrieved