
# -> Set operation ticking to 10
scoreboard players set #or.minecart_operation_ticking OverlyRealistic.General.ArbitraryData 10

# --> Boost minecart

# -> +X
execute if predicate overly_realistic:global/entity_moving_horizontal_pos_x \
    if block ~1 ~ ~ #rails \
    if block ~2 ~ ~ #rails run \
        return run \
            tp ~1.35 ~ ~

# -> +Z
execute if predicate overly_realistic:global/entity_moving_horizontal_pos_z \
    if block ~ ~ ~1 #rails \
    if block ~ ~ ~2 #rails run \
        return run \
            tp ~ ~ ~1.35

# -> -X
execute if predicate overly_realistic:global/entity_moving_horizontal_neg_x \
    if block ~-1 ~ ~ #rails \
    if block ~-2 ~ ~ #rails run \
        return run \
            tp ~1.35 ~ ~

# -> -Z
execute if predicate overly_realistic:global/entity_moving_horizontal_neg_z \
    if block ~ ~ ~-1 #rails \
    if block ~ ~ ~-2 #rails run \
        return run \
            tp ~ ~ ~-1.35
