ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: IAteBlackMesaDonuts on Feb 23, 2025, 03:20 PM

Title: Mod detection
Post by: IAteBlackMesaDonuts on Feb 23, 2025, 03:20 PM
Sorry if that sounds stupid cause I have a feeling like there's obvious way to do such thing or somebody was asking it on forum before me, but... Is there any way to get a list of mods, or detect the exact one, loaded in game? At least in singleplayer, but would be better if it'll work on servers as well, at least if I'm an admin. I just need it for an adaptive stuff in my buildings, like "if there's no such block existing - do not expect this thing to happen, and if there's no such mob - do not try to use that thing" ... (and despite the method of "checking if that thing can connect to the computer" is, technically, good, 1 - not every mod that might communicate with others can communicate with CC as well, 2 - it might be items or other stuff, not connectable to computers in ordinary ways, 3 - better to detect the existence of block BEFORE trying to build it or it can become an irrational waste...)