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

Flint and steel in a dispenser does not lose durability when used to ignite TNT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.12.2, Minecraft 18w06a, Minecraft 18w08a, Minecraft 18w09a, Minecraft 18w10d, Minecraft 18w14b, Minecraft 18w20c, Minecraft 1.13-pre1, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8
    • Fix Version/s: Minecraft 1.13-pre10
    • Confirmation Status:
      Confirmed

      Description

      The bug

      If using a dispenser with a flint and steel in it with a TNT in front of the dispenser, the TNT will be ignited, but the flint and steel will not be damaged.

      Note that this is the flint and steel activating the TNT, and not the redstone signal that activates the dispenser; this happens when you have a button that indirectly powers the dispenser.

      Cause

      Bootstrap.java, dispenser flint and steel handler
      else if (world.getBlockState(blockpos).getBlock() == Blocks.TNT)
      {
          Blocks.TNT.onBlockDestroyedByPlayer(world, blockpos, Blocks.TNT.getDefaultState().withProperty(BlockTNT.EXPLODE, Boolean.valueOf(true)));
          world.setBlockToAir(blockpos);
      }
      

      does not attempt to damage the item.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rockenroll4life [Mojang] rockenroll4life (Josh Letellier)
                Reporter:
                pokechu22 [Mod] Pokechu22
              • Votes:
                4 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: