mojira.dev
MC-312825

Dispensers consume the durability of flint and steel and play their clicking sound when facing a sulfur cube holding TNT while the `tnt_explodes` game rule is set to false

The Bug:

Dispensers consume the durability of flint and steel and play their clicking sound when facing a sulfur cube holding TNT while the tnt_explodes game rule is set to false.

A dispenser holding flint and steel fails when there is nothing it can ignite, and it also fails when facing a TNT block that can't be primed when the tnt_explodes game rule is set to false. However, a dispenser holding flint and steel will still consume durability when activated and facing a sulfur cube that has TNT in it when the tnt_explodes game rule is set to false.

Steps to Reproduce:

  1. Set the tnt_explodes game rule to false by using the command provided below.

    /gamerule tnt_explodes false
  2. Place down a dispenser and put some flint and steel inside of it.

  3. Stand in font of the dispenser and summon a sulfur cube holding TNT by using the command provided below.

    /summon minecraft:sulfur_cube ~ ~ ~ {Size:1,equipment:{body:{count:1,id:"minecraft:tnt"}}}
  4. Activate the dispenser and observe if the durability of the flint and steel was consumed.

Observed Behavior:

Durability of the flint and steel was consumed despite nothing being ignited.

Expected Behavior:

Durability of the flint and steel would not be consumed in this situation because nothing has been ignited.

Linked issues

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

Entities, Items, Redstone

26.3, 26.4 Snapshot 5

Retrieved