Biscuitism Posted November 1, 2013 Share Posted November 1, 2013 I'm making my first steps into modding. I have a few ideas I want to see if I can get working, however I have a question that I cannot find in the tutorials. I noticed there's a item type for food, but what about ingredients? Any help is appreciated! Link to comment Share on other sites More sharing options...
Ramibuk Posted November 1, 2013 Share Posted November 1, 2013 I dont know if it's what you mean but you can look into PZ/media/scripts/recipes.txt or items.txt recipe Make Grilled Cheese Sandwich { Bread, Butter, Cheese, keep Pan, Result:GrilledCheese, Time:120.0, }item GrilledCheese { HungerChange = -80, Type = Food, DisplayName = Grilled Cheese Sandwich, MinutesToCook = 5, Weight = 0.3, IsCookable = TRUE, DaysTotallyRotten = 4, DangerousUncooked = FALSE, MinutesToBurn = 8, Icon = Sandwich_Cheese, BoredomChange = -15, DaysFresh = 2, } Link to comment Share on other sites More sharing options...
Biscuitism Posted November 1, 2013 Author Share Posted November 1, 2013 I dont know if it's what you mean but you can look into PZ/media/scripts/recipes.txt or items.txt recipe Make Grilled Cheese Sandwich { Bread, Butter, Cheese, keep Pan, Result:GrilledCheese, Time:120.0, }item GrilledCheese { HungerChange = -80, Type = Food, DisplayName = Grilled Cheese Sandwich, MinutesToCook = 5, Weight = 0.3, IsCookable = TRUE, DaysTotallyRotten = 4, DangerousUncooked = FALSE, MinutesToBurn = 8, Icon = Sandwich_Cheese, BoredomChange = -15, DaysFresh = 2, } Not exactly what I meant. Thanks though. Link to comment Share on other sites More sharing options...
RoboMat Posted November 2, 2013 Share Posted November 2, 2013 Well you would have to write a new java.class to create a new type for the ingredients. But why not just use food for the ingredients!? Creating another type for ingredients (which mostly are food too I guess) would be a bit superflous in my opinion 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