Jump to content

Crafting/tabs server/replication questions


Recommended Posts

I'm working on a new mod that will add a crafting tab and pre-existing recipes to it.

My understanding of DST is that the client sends a "create item from recipe ID #xxx" command to the server. From that I assume *only* the client needs to know about the new craft tab, but the server needs to know about any new recipe.

Does the AddRecipe function require any special set up to run in on the server? For example, should I do AddRecipe() on the server via a RPC callback, triggered from the client via one of the action hooks? (Or otherwise check if currently on the server)

Edited by DJPaul
Link to comment
Share on other sites

what are you trying to do? I did not understand your post.
AddRecipe has to run for client and server. But what has it to do with RPC ? You simply put it into modmain.
And what do you mean with pre-existing recipes?

and for adding custom crafting tab, you can use this (the pastebin link, don't know if latest version is linked):

 

Edited by Serpens
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...