ModsJava
Selective Entity Removal (Fabric)
Selective Entity Removal (Fabric) allows the user to disable specific mobs from rendering and set the range at which they are visible.
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Selective Entity Removal (Fabric) is a free Minecraft Java mod. Compatible with Minecraft 1.20.4, 1.20.1, 1.19.4, 1.19.1 and newer. Downloaded 3,479 times (via CurseForge). Download it and open it directly in the game.