BlueBeka Posted October 9, 2021 Share Posted October 9, 2021 How can I make a library that can be used by both client and server mods? I tried making it as a client only mod and adding it as a dependency (via mod_dependencies in modinfo.lua) to a server mod, but the server mod couldn't seem to access anything in it. If I simply change my library mod to be a server mod then it all works perfectly; but then obviously other client only mods can't use it. Is there any way I can simply have one library mod that works for both the server and for clients? Or do I have to just make 2 different mods that are exactly identical, except for one being a client mod and the other a server mod? Link to comment Share on other sites More sharing options...
BlueBeka Posted October 18, 2021 Author Share Posted October 18, 2021 bump Link to comment Share on other sites More sharing options...
Monti18 Posted October 18, 2021 Share Posted October 18, 2021 Is your server mod a server only mod or a all clients require mod? If it's the first one, this is probably your problem as this mod then exists only on the server and not on the clients. Link to comment Share on other sites More sharing options...
BlueBeka Posted October 19, 2021 Author Share Posted October 19, 2021 Right now I have 2 mods that are identical except one is "client only" and the other is "all clients require". I'd like to ideally have only one mod that can be used (via "mod_dependencies" in "modinfo.lua") by both other "client only" and "all clients require" mods. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now