force_heal: type: task script: - ratelimit 12s - itemcooldown diamond duration:12 - cast slow amplifier:1 duration:8s no_clear no_icon hide_particles - define playerLoc - flag player healing:true - repeat 8: - wait 1s - if ! || ]> > 0.5: - cast slow remove - flag player healing:! - stop - define target ;range=8;raysize=0.3]||null> - if <[target]> != null || (<[target].is_player> || <[target].is_mob> || <[target].is_npc>): - heal <[target]> 1 - narrate "healing target: <[target].name>" - else: - heal 1 - narrate "healing target: "