mojira.dev
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.

Comments 0

No comments.

paulo khayat

Shugoh

Confirmed

Platform

Normal

Commands

23w06a, 1.20.6, 24w18a

24w20a

Retrieved