Mojira Archive
MC-264285

Unbreakable flint and steels are completely consumed when igniting a creeper

The fix for MC-257875 which was to add a check to see if the itemstack had a damageable item failed to take into account the "Unbreakable" nbt tag. Currently, if you give yourself an unbreakable flint and steel via

/give @s flint_and_steel[unbreakable={}]

and ignite a creeper with it in survival mode, the itemstack is completely removed due to the stack size being shrunk by one in Creeper#mobInteract.

The proper fix I believe is shown here in the Paper repository.

Unresolved

Jake Potrebic

2023-07-18, 03:26 AM

2025-02-06, 08:06 AM

18

7

Confirmed

Low

Platform

Items

1.20.1 - 1.21.11.20.1, 1.20.2, 1.20.4, 24w09a, 24w12a, 1.21 Pre-Release 4, 1.21.1

-