Project Zomboid

Project Zomboid

168 ratings
Vanilla Wheat Farming
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
54.079 KB
7 Apr, 2023 @ 8:52pm
9 Apr, 2023 @ 7:31am
3 Change Notes ( view )

Subscribe to download
Vanilla Wheat Farming

Description
I have been developing a new mod to replace this, as this one became broken with updates and required a rewrite. The replacement I am testing is unliisted
https://steamproxy.net/sharedfiles/filedetails/?id=3152846963

This mod allows you the ability to grow wheat and mill it into sacks of flour. It is designed to be balanced and makes use of vanilla game assets.

Wheat can be grown in the same way as other produce. Then you can use a Mortar and Pestle together with a sack to mill the wheat into flour. There are many great farming mods for the game. However, the aim of this mod is to provide a simple, vanilla, and balanced addition of wheat to the game with nothing else.

Bugfixes
Includes a bugfix for the base game, which was preventing plants from taking damage during cold temperatures
The mod has to replace some existing farming system functions with slightly modified ones. Their operation is generally completely the same, just adding handling for wheat. However one key bugfix has been applied. When the new climate system was added it broke damage to plants in winter. This mod includes a fix for this that means crops will die when covered in snow and be damaged by lower temperatures.

Specifically plants have the following damage now:
  • If the plant tile has snow on it, the plant will die.
  • If the plant tile is not in a room and the temperature is below freezing it will take damage.
  • If the plant tile is not in a room and the temperature is very below freezing it will die.

Wheat

In the mod wheat has freshness but cannot be directly eaten. It is both the seed and the vegetable from the wheat plant. It can be either planted to grow more wheat, or it can be milled into flour. It has only one mature state, not a separate maturity state like many of the plants.

How to Find
Sacks of Flour have been added to spawn tables where you would see farming supplies and sacks of produce.

How to Grow
It is grown in the same way as other produce. Wheat takes much longer to grow than the other produce. It only has one mature state, of the wheat is both the seed and the product. Five wheat is required to plant in a furrow.

Spoilage
Wheat has freshness and can go stale or even rot. It takes months for the wheat to become stale, and even longer for it to rot. To extend the life of wheat, pack into into a sack. This uses the features added in another of my mods, which adds the ability to pack produce into the sacks in the vanilla game.

https://steamproxy.net/sharedfiles/filedetails/?id=2826801787

If you have DaysForRottenFoodRemoval set to remove rotten food, note that stale food is considered by this, so any setting may delete Wheat when you are unpacking it from a sack

Making a Sack of Wheat
As noted above, you can make a sack of wheat. This lasts longer than lose wheat. This is a useful way to store wheat when you want to use it for future growing, rather than conversion into flour. The following is used to make a sack of wheat:
  • A needle*
  • An empty sack
  • 100 wheat
  • Thread
* designates the item is not consumed during crafting

Milling into Flour
This requires Cooking (level 3) and Farming (level 1) skills, as well as:
  • A mortar and pestle*
  • An empty sack
  • 100 wheat
* designates the item is not consumed during crafting

Given you require 100 wheat to make flour, you will have to grow quite a lot of wheat to be able to make a bag of flour. Each wheat plant will give you roughly 10 wheat, so you will need ten plants to mature to be able to make one bag.

Balance Notes

The sacks are consumed in the process, as empty flour does not leave a sack behind. Significant cooking and a little farming skill is required to mill the flour, and the action of milling takes considerable time.

Mod Details for Servers

The mod is fully compatible with multiplayer and be added to existing games, however wheat to begin growing will only spawn in new zones.

Workshop ID: 2959228808
Mod ID: VanillaWheatFarming
Popular Discussions View All (3)
3
3 Oct, 2023 @ 4:28pm
GetRoom of non-table: null
Kyrox
0
21 Oct, 2023 @ 5:38am
MOD BROKEN: Growth stuck in infinite loop
NerdgamerDave
0
20 Jul, 2023 @ 3:14pm
Translation (PL)
Eren
32 Comments
Ninethousand 15 Jun @ 6:06am 
Wondering about that too... How do you start growing wheat if you need wheat, but you can only find flour?
Nevo 15 May @ 2:54am 
How do I plant it? I can find make sacks of wheat, but I never ever find any seed packages, nor can I make them..?
Rocket  [author] 14 May @ 7:14am 
No, but I have been testing a replacement mod for this. It has wheat among some other ones. Tested working in multiplayer as well:

https://steamproxy.net/sharedfiles/filedetails/?id=3152846963

I want to do some more testing before replacing into this.
Goose 12 May @ 1:37pm 
does this mod still work?
I notice it hasn't been updated in like a million zillion gillion years, so i'd like to ask before downloading.
Rocket  [author] 28 Mar @ 8:01pm 
You can but this is a bit broken.

I have an unlisted version of this that includes Wheat and corn and has been extensively multiplayer tested.

It's currently unlisted, but it is at:
https://steamproxy.net/sharedfiles/filedetails/?id=3152846963
Morgan 28 Mar @ 5:42pm 
May I add this to my modpack?
SkinnyPeTe 30 Nov, 2023 @ 10:07pm 
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1228)
at zombie.ui.UIManager.update(UIManager.java:816)
at zombie.GameWindow.logic(GameWindow.java:262)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
SkinnyPeTe 30 Nov, 2023 @ 10:07pm 
ERROR: General , 1701410692558> 16 265 340> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: __sub not defined for operands in onCheatGrow at KahluaUtil.fail line:82.
ERROR: General , 1701410692558> 16 265 340> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: __sub not defined for operands in onCheatGrow
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:676)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1924)
NerdgamerDave 21 Oct, 2023 @ 5:40am 
Follow up to previous comment.

Yeah, mod is broken. Don't use it anymore unless it's updated. Wheat can NOT grow past stage 1, and gets stuck in an infinite loop and will just spit out infinite errors if anyone inspects it.
NerdgamerDave 21 Oct, 2023 @ 5:33am 
MAJOR BUG: MOD BROKEN

Infinite Errors when you inspect wheat.

Lua Line 426 for "hours elapsed" for the growing phase gets stuck in an infinite loop and spits out a few hundred thousand errors in a few seconds.

It seems to be forever stuck on phase 1/7 and cannot progress and just loops over and over again.