kill @e[type=command_block_minecart,tag=delay_end]
tag @e[type=command_block_minecart,tag=delay2] add delay_end
tag @e[type=command_block_minecart,tag=delay,nbt={PortalCooldown:0}] add delay2
tp @e[type=command_block_minecart,tag=delay2] 0 1 0