summon minecraft:armor_stand ~ ~ ~ {Small:1,ArmorItems:[{},{},{},{id:"red_concrete",Count:1}],Invisible:1,Tags:["trap","trapT","trapN"],Invulnerable:1,CustomNameVisible:1,CustomName:"{\"translate\":\"TNT Trap\",\"color\":\"red\"}"}
scoreboard players operation @e[tag=trapN] trapid = @s id
tag @e[type=armor_stand] remove trapN
item replace entity @s weapon.mainhand with air

playsound minecraft:entity.item.break master @a ~ ~ ~ 1 0.5