mojira.dev
MC-124991

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

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.

Linked issues

Comments 0

No comments.

pokechu22

migrated

Confirmed

dispenser, durability, flint_and_steel, tnt

Minecraft 1.12.2, Minecraft 18w06a, Minecraft 18w08a, Minecraft 18w09a, Minecraft 18w10d, ..., Minecraft 1.13-pre1, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8

Minecraft 1.13-pre10

Retrieved