Likely caused by the fix for MC-222818, TNT cannot be directly ignited by a player in adventure mode even if their flint and steel or fire charge in the can_place_on data component. The player can crouch to place fire against it, and if fire spread is enabled, the TNT may ignite, but otherwise the TNT will not be set off.
This breaks adventure maps that rely on the player’s ability to ignite TNT, such as to unlock new areas.
Steps to reproduce:
In a new creative world, place a block of TNT.
Give your player an item that can ignite the TNT with this command: /give @s minecraft:flint_and_steel[can_place_on=[{blocks:"minecraft:tnt"}]]
Change your gamemode to adventure mode.
Try to use the flint and steel on the TNT with the right mouse button.
Expected result:
The TNT ignites and explodes.
Actual result:
The player’s arm swings but nothing else happens.
Comments 3
can_break is not a valid replacement for this. Adding can_break to a flint and steel then allows you to either:
a) light the TNT, as was previously the case with can_place_on
b) break the TNT and turn it into an item, which can_place_on did not allow you to do. The TNT may not drop in the adventure map, if tile drops are disabled in game rules, and the player will most likely be unable to place the TNT again due to adventure mode.
Furthermore, can_break on TNT does not use up durability on the flint and steel (or other items) the same way that it would have done with can_break, which means that adventure maps which used a low durability flint and steel to remove the item after x number of doors were opened, now need to add a workaround for this, “pretending” to damage/break the item through a combination of item modify entity for damage, or clear @p flint_and_steel, and playsound minecraft:entity.item.break to simulate it breaking.
If nothing else, no longer being able to control whether players light or break the TNT block is a pretty notable regression, and potentially breaks existing adventure maps that relied on only can_place_on to control what the players did to the TNT block. It’s
While can_place_on is not intended to control TNT ignition - this would be a new feature. For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.
On review, we do however consider can_break controlling TNT ignition to be a bug in itself - though this should be reported in a new bug.
Thank you!
TNT can be ignited using the can_break component instead.