DJPaul Posted March 11, 2017 Share Posted March 11, 2017 (edited) 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 March 11, 2017 by DJPaul Link to comment Share on other sites More sharing options...
DJPaul Posted April 18, 2017 Author Share Posted April 18, 2017 Bump :'( Link to comment Share on other sites More sharing options...
Serpens Posted April 18, 2017 Share Posted April 18, 2017 (edited) 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 April 18, 2017 by Serpens 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