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

Damage command at position applies knockback in random direction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w20a
    • 23w06a, 1.20.6, 24w18a
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      a player being given damage from an entity causes knockback from the direction the damage was coming from:

      summon an entity. then run

      /damage @p 3 minecraft:arrow by @e[sort=nearest,limit=1,type=!player] 

      The player will be knocked back in the opposite direction.
      If the location is signaled instead, the player will be randomly thrown in some direction.

      /damage @s 1 minecraft:arrow at ~ ~ ~1

      This behaviour hasn't really been defined, but I think it would make sense for the 'at' signifier to declare the location the damage was dealt from.

            HugoHagglund [Mojang] SHugoh
            pauloalbert paulo khayat
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: