how do I disable specific mobs naturally spawning from mods?

How do I disable specific parts of a mod; more specifically how do I stop specific mobs from spawning?

I have tried the bad mobs mod, but it doesn't work. The mod is Modern Warfare mod, I only want the guns, not natural enemy spawn in survival! I have gone through SO many posts and they don't answer my question. I have searched through google SO much and cant find anything.


Solution 1:

Here's a detailed explanation:

  • First, find your Minecraft 'Instances' folder. To do this, right-click on your Minecraft shortcut, and click 'Open File Location'. From there, you can go back to your 'Minecraft' folder and you should see your 'Instances' folder.
  • Go into that folder, and go into your mod folder.
  • Go into the 'config' folder and find the .cfg file for the mod that contains the mob you want to stop spawning.
  • Right-click it, click 'Open With', and choose Notepad or any other text editor. Look through the file until you find the setting for the mob you're looking for, and change the spawning value to 0.
  • Save the file and you should be good.