Jump to content

Library mod that can be used by both client and server mods?


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...