projectile_remove: type: task definitions: projectile script: - remove <[projectile]> projectile1: type: task definitions: playerloc | headitem | speed | range | hitbox | damagescript | damage | knockback script: # SPAWN ARMORSTAND - spawn armor_stand <[playerloc]> save:projectile - define projectile - equip <[projectile]> head:<[headitem]> - adjust <[projectile]> armor_pose:head|,0,0 # PUSH ARMORSTAND - push <[projectile]> origin: destination:<[range]> speed:<[speed]> script:projectile_remove def: force_along no_rotate no_damage # CHECK MOBS - define hit 0 - while <[projectile].is_spawned>: - foreach <[projectile].location.find_entities[zombie].within[5].deduplicate> as:targets: ## MOB IMMUNE FOR THIS PROJECTILE AFTER DAMAGESCRIPT - run <[damagescript]> def:<[damage]>|<[knockback]>|<[targets]> - wait 1t projectiledamage: type: task definitions: damage | knockback | targets script: