blackteapie Posted March 18, 2015 Share Posted March 18, 2015 I know this is a silly question..... Link to comment Share on other sites More sharing options...
RobertJohnson Posted March 18, 2015 Share Posted March 18, 2015 It's an event throw when you create a recipe, check lua/server/recipecode.lua to have some example Dudeman325 1 Link to comment Share on other sites More sharing options...
blackteapie Posted March 19, 2015 Author Share Posted March 19, 2015 It's an event throw when you create a recipe, check lua/server/recipecode.lua to have some example Thank you.Then,what is the difference between the recipes with oncreate feature and those without?I saw many recipes don't have oncreate code,in recipes.txt. Link to comment Share on other sites More sharing options...
oooooooooott Posted March 24, 2015 Share Posted March 24, 2015 It's an event throw when you create a recipe, check lua/server/recipecode.lua to have some example Thank you.Then,what is the difference between the recipes with oncreate feature and those without?I saw many recipes don't have oncreate code,in recipes.txt. Maybe it's used to subtract durability from items that were kept in a recipe? Link to comment Share on other sites More sharing options...
blackteapie Posted March 25, 2015 Author Share Posted March 25, 2015 It's an event throw when you create a recipe, check lua/server/recipecode.lua to have some example Thank you.Then,what is the difference between the recipes with oncreate feature and those without?I saw many recipes don't have oncreate code,in recipes.txt.Maybe it's used to subtract durability from items that were kept in a recipe?not very understand what you are saying. Link to comment Share on other sites More sharing options...
oooooooooott Posted March 25, 2015 Share Posted March 25, 2015 It's an event throw when you create a recipe, check lua/server/recipecode.lua to have some example Thank you.Then,what is the difference between the recipes with oncreate feature and those without?I saw many recipes don't have oncreate code,in recipes.txt.Maybe it's used to subtract durability from items that were kept in a recipe?not very understand what you are saying. Maybe, when a recipe is completed, and you used twine (but specified to keep it in the recipe).... You could use the OnCreate code to remove from the remaining twine in a spool. ._. Link to comment Share on other sites More sharing options...
blackteapie Posted March 25, 2015 Author Share Posted March 25, 2015 It's an event throw when you create a recipe, check lua/server/recipecode.lua to have some example Thank you.Then,what is the difference between the recipes with oncreate feature and those without?I saw many recipes don't have oncreate code,in recipes.txt.Maybe it's used to subtract durability from items that were kept in a recipe?not very understand what you are saying. Maybe, when a recipe is completed, and you used twine (but specified to keep it in the recipe).... You could use the OnCreate code to remove from the remaining twine in a spool. ._. Maybe....I need to check the recipes first. Link to comment Share on other sites More sharing options...
SiderisAnon Posted March 28, 2015 Share Posted March 28, 2015 You can also use OnCreate if you want to have a recipe return more than one thing. As an example, you can tie logs together with rope in the game. Then when you untie the logs, you get both the rope and the logs back. The recipe returns the logs, the OnCreate code returns the ropes. Dudeman325 1 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