Compatibility with Cobblemon
CubeMaster111 opened this issue ยท 3 comments
Hi,
it appears Torchmaster is unable to prevent Cobblemon mobs from spawning, likely due to some custom spawning system on their side.
To my knowledge the mod spawns a base mob (cobblemon:pokemon) which it then loads with data.
Adding the base mob to the blacklist of both the megatorch and the dreadlamp and setting aggressive spawn checks to true does not prevent the spawn of cobblemon mobs.
This was tried on
Minecraft 1.20.1
Forge 47.2.0
Torchmaster 20.1.5
Cobblemon 1.4.0
This is usually a problem with the mod, not with torchmaster. Pretty much all pokemon style mods have this issue because they dont utilize spawn events. I can look into it, but I'm not sure if it is possible to do this from my side.
FYI, mostly for others who stumble upon this looking for a solution like I did, the cobblemon mod at least appears to plan adding this type of functionality in the future (source: chatter on their discourse).
For now there is a third party addon for "unimplemented items" that adds a repel block which does more or less what torchmaster does, except for the spawns from cobblemon: https://modrinth.com/datapack/cobblemon-unimplemented-items
Unobtainable by default, but you can easily add a datapack recipe for it, or use crafttweaker or whatnot.
No idea if this makes this particular issue unnecessary, I guess compatibility with torchmaster would still be nice for your one-stop-shop to preventing mob spawns, but I also imagine that'd just cause unwanted churn in this repo given it does need to interact with a mod-specific spawning mechanism.