Mojira Archive
MC-271414

Damage command at position applies knockback in random direction

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.

Fixed

paulo khayat

[Mojang] SHugoh

2024-05-03, 02:05 PM

2024-05-15, 10:06 AM

2024-05-15, 10:06 AM

1

1

Confirmed

Normal

Platform

Commands

23w06a, 1.20.6, 24w18a

24w20a