DoomGiver32 Posted September 28, 2014 Share Posted September 28, 2014 So I'm just getting started with trying to mod this game, but it's not my first time being exposed to LUA (Thanks minecraft ComputerCraft mod!) I cannot for the life of me figure out how to distinguish between a rotten pot of soup (the recipe version) and a fresh/unrotten/uncooked one. Pretty much the idea is: Take rotten pot of soup, boil again, get unrotten (but not fresh) pot of soup that's edible. Is there no way for recipes to require an item that's in a certain "State" of degradation? Link to comment Share on other sites More sharing options...
RoboMat Posted September 28, 2014 Share Posted September 28, 2014 You should be able to distinguish the soups by checking their item names. Link to comment Share on other sites More sharing options...
DoomGiver32 Posted September 29, 2014 Author Share Posted September 29, 2014 Alright, so since this is my first time even dabbling with mods in PZ, your response didn't help too much, so I downloaded a mod off the forums to check to see what exactly makes up a PZ-Mod, where files are stored and the such. I'll spend some more time familiarizing myself before coming back to ask more questions. Sorry for the rushed enthusiasm. Link to comment Share on other sites More sharing options...
gaunti12 Posted September 29, 2014 Share Posted September 29, 2014 I think the rotten state is only related to the age of the item. The item stays the same. Recipes like in the canning mod, change food items that have a "rotten" in their name to new items with longer "lifespan" and can in the process change the rotten state to normal again. If you delete the line that sets when an item is rotten in the "items.txt", items that were already rotten change back to normal in the game again. So, if you want to make I mod that changes rotten food items back to unrotten food, I would take the approach to change the rotten items to new items with a different name in a recipe, but have the same "evolvedrecipe" line in the new items and add those items to every recipe that has the original food item in them. 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