How to check the armor trim pattern and its material?
I am trying to make a datapack for version 1.21.10, where trims give powers (trim type = power, material = additional power boost), but after like 2 hours of research I have found nothing. I need to run a function if someone has this trim. Please, help. (I question other people only if I will never find an answer without them.)