$summon $(id) ~ ~ ~ {Rotation:$(rotation),Motion:$(motion),Tags:["vb.new_summon","vb.loaded","vb.despawn_after_time"],DeathLootTable:"minecraft:empty"}

effect give @n[tag=vb.new_summon] minecraft:resistance infinite 200 true

tag @n[tag=vb.new_summon] remove vb.new_summon