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

Damage command only issues knockback if it was done by an entity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 23w06a, 1.19.4 Release Candidate 3, 1.19.4
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      Steps to reproduce/explanation:

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

       

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

      however, if the location is signalled, no damage is given:

      /damage @p 3 minecraft:fly_into_wall 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.

       

       

            Unassigned Unassigned
            pauloalbert paulo khayat
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: