How can I change the clothing ?[1.12]

I want to achieve dynamic replacement of clothing features, real-time replacement clothes pants hats etc…

I noticed there is a component Attachment, but it does not seem to fulfill my needs. What should I do?

@HDN