Im using the push function though it seems more like a pull and push than a push. Are there any alternatives or is there a setting that Im missing because this looks a bit weird.
force_push:
type: task
script:
- define target <player.eye_location.ray_trace_target[ignore=<player>;range=12]||null>
- if <[target]> != null && (<[target].is_player> || <[target].is_mob>):
- push <[target]> speed:0.5 duration:0.5```