So, just to make sure I understand it correctly, to fix an ID conflict, you can only guess until you find an unused number?
If it is a mod like Portal Gun or Gravity Gun, that only have a couple IDs, yes, that is fine. Or, you can do what Golrith said.