I've researched and read through so many docs to try and find the end solution of this code. I'm not sure how to make naturally spawned zombie pigmen turn aggressive. I have this so far and would love to know if it's possible to end it like the mod that makes pigmen aggro when mining nether ores.
Code:
on mine of quartz ore:
loop all entities in radius 10 of player:
if loop-entity is a zombie pigman:
# make pigman turn aggro