How can I only execute a command in minecraft when both pressure plates are activated?

ju
5

I wanted to build a construction in minecraft that only when both players are standing on their printing plate a command is carried out, but I have no idea how I would do it best would be happy for suggestions.

Le

To do this, you have to build an AND gate. After that, watch best on Youtube.

Sn

You do that with an AND gate.

How can I only execute a command in minecraft when both pressure plates are activated

As you can see in the picture, the piston only becomes active when both levers are activated.

Lever = pressure plate, piston = command.

ju

Thank you very much

gl

Either like picasso22's answer or:

How can I only execute a command in minecraft when both pressure plates are activated
Le

With pleasure