It's by design for now that in a before event you can't run essentially any "update functions" in a before event, because the rest of the Minecraft infra is in an un-ideal state to be able to process those changes. The main thing is to wrap them in a system.run (which will typically run a half-tick later) in a before event, and you should ensure you "re-fetch" things like entity objects inside of that functions.. Definitely feel that this is somewhat painful..
It's by design for now that in a before event you can't run essentially any "update functions" in a before event, because the rest of the Minecraft infra is in an un-ideal state to be able to process those changes. The main thing is to wrap them in a system.run (which will typically run a half-tick later) in a before event, and you should ensure you "re-fetch" things like entity objects inside of that functions.. Definitely feel that this is somewhat painful..