mojira.dev
MC-259987

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

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.

Comments 5

Can confirm in 1.19.4-rc3, but it might intended

If this is by design, the "at" syntax has no purpose; if it were left out, I'd agree.

I've updated this old issue with the recent knockback changes, I was going to check if this was fixed. some of the little details have changed, but the outcome remains inconsistent

⚠️ Please do not add Affected Versions to resolved reports.

Have a look at the Resolution and the comments to see why this ticket has been resolved. If you think this ticket has been resolved erroneously you can contact the Mojira staff on Discord or Reddit.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

my apologies, I didnt mean to edit the existing one, i'll create a new one because this issue resurfaced after it was fixed

paulo khayat

(Unassigned)

Confirmed

Platform

Low

Commands

23w06a, 1.19.4 Release Candidate 3, 1.19.4

24w18a

Retrieved