Adjust the cooking time up or down depending on the beans and the desired softness. For example, smaller beans, such as black beans, will become mushy if pressure cooked for longer than 30 minutes.
If you don’t have a pressure cooker, you can boil beans the traditional way. Cold soak beans in a pot of water over night. Discard water. Then boil beans with all ingredients for 2-3 hours.