Copy BuildCraft's position library and reduce unused method