Apply potions effects to entity

hello, can i apply an potion effect to an entity?
i want apply speed to spider for troll my player’s for my role play…
how can i do this?

PotionEffectData is not currently implemented. It’s also going to need some changes in order for it to be properly implemented.

oki
do you have any idea when it will be implemented?