code:
world.afterEvents.dataDrivenEntityTrigger.subscribe(ev => {const {entity, eventId} = ev;
if (entity?.typeId === 'minecraft:bee') {if (eventId === 'angry_bee') entity?.setDynamicProperty('angry', true); else entity?.setDynamicProperty('angry', false); if (eventId === 'angry_bee' && eventId === 'has_nectar') entity?.setDynamicProperty('angry_nectar', true); else entity?.setDynamicProperty('angry_nectar', false)};
if (entity?.typeId === 'minecraft:wolf') if (eventId === 'minecraft:wolf_angry') entity?.setDynamicProperty('angry', true); else entity?.setDynamicProperty('angry', false);
});;```it should set a dynamic property to the bee / wolf after the specific event happens, but it doesn't give them any dynamic properties, what should i do to make it works?
