mojira.dev
MC-266801

/damage with any damage type damages item entities

Using any damage type in /damage damages a targeted item entity.

This makes sense if you use a damage type like cactus or lava, but it even destroys it if the type doesn't make sense for items such as fall, drown, or fly_into_wall.

Steps to Reproduce:

  1. Throw an item on the ground

  2. Run a damage command using a damage type that wouldn't normally affect items.
    Example:

/damage @e[type=item,limit=1,sort=nearest] 10 minecraft:fall
/damage @e[type=item,limit=1,sort=nearest] 10 minecraft:fall

Attachments

Comments 1

Can confirm item will take damage, 1.20.2

Ran following command:

/damage @e[type=item,limit=1,sort=nearest] 10 minecraft:fall
/damage @e[type=item,limit=1,sort=nearest] 10 minecraft:fall

Result

[System] [CHAT] Applied 10.0 damage to Diamond Sword
[System] [CHAT] Applied 10.0 damage to Diamond Sword

mattp12

(Unassigned)

Confirmed

Commands, Entities

1.20.2, 23w46a, 1.20.3 Pre-Release 1, 1.20.3 Pre-Release 2

Retrieved