Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-264285

Unbreakable flint and steels are completely consumed when igniting a creeper

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1, 1.20.2, 1.20.4, 24w09a, 24w12a
    • None
    • Confirmed
    • Items
    • Low
    • Platform

      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:1b}
      

      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.

            Unassigned Unassigned
            Machine Maker Jake Potrebic
            Votes:
            12 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: