execute on passengers run advancement grant @s only ws:workersimulator/carupgrade
execute if items entity @s horse.saddle *[minecraft:custom_data~{motor:1}] run return run effect give @s minecraft:speed 3 0
execute if items entity @s horse.saddle *[minecraft:custom_data~{motor:2}] run return run effect give @s minecraft:speed 3 1
execute if items entity @s horse.saddle *[minecraft:custom_data~{motor:3}] run return run effect give @s minecraft:speed 3 2