Added "Addon Related" since it's possible this might be easier with LootJS, but basically I'm trying to target an entity based on its NBT data (and have the script apply to it) to mainly modify drops and maybe other functionality on related events.
My guess is that in base KubeJS I'd be looking to perform a check or some sort of predicate using EntityEvents but that's undocumented on the wiki at the moment, so not sure there. Figured I'd ask here before diving into the repo to see if I can piece something together.
For the LootJS approach I'm assuming I might be able to use LootContext's getEntity and then use some property on that which will allow me to check the NBT, but their wiki doesn't provide a return type, nor would I really know where to look to reference the "Entity" return type which I assume it returns, so I'm not sure what kind of properties even exist on it (or the syntax I'd use to get the NBT data from it, if that's possible).
Programmer, but not familiar with MC's codebase or either modloader, so if I'm missing something obvious there my bad. I assume even if it's a "base MC type" there's still some discrepancy in the syntax/naming conventions from Java to KubeJS but idk.