Creating a 3d Border

When I Put my cursor over a block, it creates a color-changing 3d Border. I want to add this into my game, but I don’t want to manually create all the small parts. Is there a easy way to do this?