Hold a lodestone compass and an ender pearl at the same time, it doesn't matter which hand they are in. Then throw the ender pearl while standing on any lodestone and you will be teleported to the lodestone that your compass is linked to.
Use /function clgd.lodestone:menu to open the config menu
Available Settings
Note: Setting the maximum distance to be a negative number will remove the limit
You must be in the same dimension as the lodestone to be teleported. This is an intended feature but may become configurable in future versions.
Due to technical limitations, you can only travel a maximum distance of 46,340 in a single direction and a maximum L1 distance (manhattan distance) of 46,766 blocks from the lodestone when the distance limit is enabled.

Use a lodestone compass to teleport back to the lodestone