spawn adult horse 1 meter above the player
make player ride last spawned adult horse
set {_text} to "%nbt of last spawned adult horse%"
set {_uuid::*} to {_text} split at "UUIDMost"
set {_uuid2::*} to {_uuid::2} split at ","
set {-ridinghorse.%player%} to {_uuid2::1}
add "{Variant:%{_variant}%,CustomName:%{_nombre}%,CustomNameVisible:1,PersistenceRequired:0b,Attributes:[{Name:""generic.maxHealth"",Base:20},{Name:""generic.movementSpeed"",Base:%{_speed}%f},{Name:""horse.jumpStrength"",Base:%{_jump}%f}],Invulnerable:1,SaddleItem:{id:saddle,Count:1},ArmorItem:{id:""minecraft:%{_armadura}%"",Count:1b,Damage:0s},Tame:1,ActiveEffects:[{Id:11,Amplifier:6,Duration:2147483647,ShowParticles:0b}]}" to nbt of player's vehicle
on teleport:
{-ridinghorse.%player%} is set
loop all entities in radius 20 around player:
set {_text} to "%nbt of loop-entity%"
set {_uuid::*} to {_text} split at "UUIDMost"
set {_uuid2::*} to {_uuid::2} split at ","
{_uuid2::1}=={-ridinghorse.%player%}
delete loop-entity
stop loop