Component Stuff

I'm currently in the process of porting one of my old datapacks to 1.21. The problem is, I have no idea how components work, at all. The wiki is not easy to understand, and my datapack used custom NBT data. It used them in predicates, and in commands. My tiny (stupid) brain cannot comprehend. Here is an example predicate I'm trying to port: json { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "equipment": { "mainhand": { "items": [ "minecraft:carrot_on_a_stick" ], "nbt": "{JMJ:{Wand:1b}}" } } } } Could someone PLEASE teach me how this works???
Continue to help post