mojira.dev
MC-259810

/damage can be set to 0 with an incorrect error message

Steps to Reproduce:
1) Run

/damage @s 0

2) Look at the output: "Target is invulnerable to the given damage type"

Linked issues

Comments 2

Players are invulnerable to damage with 0 damage value before /damage exists. This also happens when you throw a snowball to ohter players.

I think change it to Target is invulnerable to the given damage will solve it.

Shuddery

(Unassigned)

Confirmed

Platform

Low

Commands

23w06a, 1.19.4 Pre-release 1, 1.20.1, 1.21

Retrieved