Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Currently, there are crafts for flour, coffee, tea bags, vegetable oil, and popcorn."
Unfortunately, I'm currently working on three different projects, leaving time only for sleep and work.
function Seed_Apple(items, result, player)
local seed = 0
for i = 0, items:size() - 1 do
if instanceof(items:get(i), "Food") then
if items:get(i):isRotten() then
seed = ZombRand(1, 3)
else
seed = ZombRand(4, 9)
end
end
end
player:getInventory():AddItems("SHFR.Appleseed", seed)
end
'items' is an array of objects that represent the items being processed.
For each item in the array, I check if the item is of type "Food" using the instanceof(items:get(i), "Food") function.
If the item is food, I then check if it is rotten using the isRotten() method, which returns a boolean.
Depending on whether the item is rotten or not, I set the number of seeds to be added. Rotten items yield fewer seeds (ZombRand(1, 3)), while fresh items yield more seeds (ZombRand(4, 9)).
Finally, the seeds are added to the player's inventory with player:getInventory():AddItems("SHFR.Appleseed", seed).
Thank you so much for your enthusiasm! I'm really glad you love the mod. Your support means a lot and motivates me to keep improving it. Stay tuned for more updates!
Best regards,
ZooM
I'm glad to hear you're having fun with the mod!
I apologize for not noticing this earlier. I'm currently changing jobs and have been very busy. However, I will try to fix this bug today. Thank you for bringing this to my attention. If you have any ideas for improving the mod, I'm happy to hear them.
Best regards,
ZooM
Thank you so much for your positive feedback on my mod! I'm thrilled to hear that you're enjoying it. Your suggestion about allowing the harvesting of seeds from rotten veggies and fruits is a great idea. I will definitely add the "AllowRottenItem
" line to the main version of the mod.
Thank you again for your contribution and support! If you have any more suggestions or feedback, feel free to share.
Best regards,
ZooM
I also have an error where planting lettuce produces green onions. I've written about the error in the Bug Reporting Thread.
/* семена яблоки */
recipe Claim Apple Seeds {
Apple,
Result:Apple,
Time:150.0,
OnGiveXP:Recipe.OnGiveXP.SHFRFarming3,
Category:Farming,
NeedToBeLearn:False,
Sound:GetingSeeds,
AllowRottenItem:true,
RemoveResultItem:true,
OnCreate: Seed_Apple,
}
I borrowed the "AllowRottenItem:true," from the Seedy+ mod and i'm looking on how to reduce the number of seed given if rotten (i'm still learning).
Author: don't worry i won't post the file, people will have to edit it themselves. And a big thank you for the mod.
Later phase only seeds.
Could you add beets.
the mod i made for eaxamble hace some with normal grow, but other like cabbage where or you harvest the cabage or you harvest the seeds