Harvest with scythe

hayvest.jpg

For grass (hay), oat, wheat and corn fields, villagers wil use a scythe to harvest instead of a shovel.

Download | How to use (FVModSync installation)

What each file does:

  • scripts > common > buildings > plant.lua: defines the aforementioned plants as grass plants and sticks a condition in front of the harvesting procedures. This needs to override the actual game file so beware of incompatibilities.
local GRASS_PLANT = {["grass"] = true, ["oat"] = true, 
                     ["wheat"] = true, ["corn"] = true,}
..

if GRASS_PLANT[cell.plantCfg.name] then
    w:addTaskAttachModel("tools-scythe-01")
    w:addTaskPlayAnimationOnce("axecut")
else
    w:addTaskAttachModel("tools-shovel-01")
    w:addTaskPlayAnimationOnce("plant")

The axe animation is a bit strange for this, but right now it is the only one there is (villagers also use it when gathering hay with the scythe).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s