This Command Block will allow you to install laser beams in the distributor, which will be triggered if the player passing through them has previously specified items. In total, there will be three modes of operation: in the first case, the laser will emit a kind of noise, the second will clean the inventory of the player, and the third will kill him.
How to use Laser Beams Command Block
- Copy the command text from a file (Ctrl+A -> Ctrl+C)
- Launch the game and get a command block, to do this type in console /give @p command_block
- Put the command block on the ground
- Click on it right click and paste the command in the “Command console” (Ctrl+V)
- Activate the command block using the button or the lever