[![enter image description here][1]][1]UsingUsing 2 command blocks, 1 comparator, 1 building block, 1 redstone torch. You can accomplish this thus:
- Command Block 1:
testfor @e[r=radius, type=VillagerGolem]
- Command Block 2:
your command
You will still need to put a clock on it. Mine is underneath the golem :) [1]:
As a side note, you don't want to use the https://i.sstatic.net/Ehhna.pngc=0
because that is not saying find if there are 0 but rather it's saying when you match, match 0. So in your case, that has no real effect.