It was actuated by a ball valve, thanks to your help I upgraded it using a modded sprinkrel valve instead.
The proble was that the valve was too big for the gun (1 inch compared to the 1/2 inch gun) and that it could sustain only 15 bar.
So I thought to build a piston valve.
The problem is that the piston doesnt open when I open the pilot valve (ball valve)
This is a crappy diagram that I made in paint:

What I think is the problem is that the washer that seals the barrel is large like the tee I use (1/2)
Making that modification could help?
(making the barrel enter the tee and using a smaller washer)

Or could the problem be a too small pilot valve(3/8 ball valve)?
Thank you