Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-269735

Entities controlled by players do not consistently experience knockback or being pulled by frogs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 24w12a, 1.20.5 Pre-Release 2
    • None
    • Community Consensus
    • (Unassigned)

      When players ride a horse, donkey, mule, skeleton horse, zombie horse, or camel with a saddle, they assume control. Similarly, holding a carrot on a stick while riding a pig, or a warped fungus on a stick while riding a strider, grants control. However, in these instances, knockback inflicted by attacks doesn't consistently function for the controlled mob. Additionally, frogs do not consistently pull them when eating them.

      Steps to test the bug

      1. Spawn a pig and saddle it
      2. Mount the pig
      3. /effect give @e[type=pig,limit=1,sort=nearest,distance=..2] minecraft:slowness infinite 6 true
      4. /effect give @e[type=pig,limit=1,sort=nearest,distance=..3] minecraft:resistance infinite 4 true
      5. Hold a carrot on a stick in your offhand.
      6. Toss harming potions towards the pig.
      7. /damage @e[type=minecraft:pig,limit=1,sort=nearest] 1 minecraft:player_attack by @s
      8. Download the provided datapack.
      9. Spawn a frog

      Similar actions can be performed on any other entity from the listed ones that players can control. Although the methods may vary slightly, you should be able to figure out how to do it yourself.

      Observation: The pig inconsistently experiences being pulled by the frog or taking knockback from harming potions or the /damage command.
      Expectation: The knockback should be accurately conveyed to the client, ensuring that mobs take knockback as anticipated when controlled by a player.

        1. frog_horse.mp4
          7.05 MB
        2. frog_pig.mp4
          7.25 MB
        3. frogs_eat_ridable_mobs.zip
          2 kB
        4. pig_knockback.mp4
          6.66 MB

            Unassigned Unassigned
            NoUser No User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: