I want to make it so the guard villagers spawn with an Iron Shield from ShieldEXP instead of the vanilla shield. I tried a script but it didn't work.
if (event.entity.type != 'guardvillagers:guard') return
event.entity.offHandItem = 'shieldexp:iron_shield'
})```
And the startup logs didn't give me anything to work with either.