Minecraft redstone signal from a locked trap chest

minecraft-commandsminecraft-java-editionminecraft-redstone

I know that when you open a trapped chest, it generates a small redstone signal. So I locked the chest with /blockdata ~ ~-1 ~ {Lock:"Name of chest"}, but when I right click, it doesn't generate a redstone signal. I know this is quite obvious, but I wanted to make a system where if you try and open a trapped chest, it would trigger a command block.

How can I do this?

Best Answer

Are you sure no redstone signal is generated? The strength of the signal is determined by the number of players accessing the chest at any one time, meaning if you are the only person opening it, it will have a strength of one, which is hard to see. Of course, this also means a range of a measly one block, meaning you will have to boost it with a repeater or redstone torch construct.