16 Commits

Author SHA1 Message Date
AntumDeluge
98d859fc22 Replace deprecated method 'setting_getbool' with 'settings:get_bool' 2017-09-30 11:44:27 -07:00
Auke Kok
ff3c34cb2f Convert to meshoptions plantlike.
- remove custom model for corn!
- corn model stays the same shape, param2 = 3
- tomato now is + shaped, not x, param2 = 1
2016-10-18 14:09:34 -07:00
Auke Kok
3b6c0e5e78 Luacheck cleanups and .luacheckrc
Use `luacheck .` to run luacheck on this mod.

Cleaned up luacheck errors.
2016-10-18 09:33:30 -07:00
xisd
e6421d8d49 Intllib (#5)
Support for translation via intllib.
2016-10-18 09:13:59 -07:00
Auke Kok
9a42477859 Enable placement prediction everywhere. 2015-12-11 15:57:08 -08:00
Auke Kok
1376e0b0b3 Reduce the hitboxes on tomatoes and potatoes.
These were really awkward when harvesting, so drop the
size by 10% or so.
2015-11-26 12:09:24 -08:00
Auke Kok
5329ff5b36 Particle spawner on dead plants: flies.
These buzz around dead plants, right after they die.
2015-11-25 22:25:41 -08:00
Auke Kok
7ba94da27a Abstract crops.register method a bit. 2015-05-07 23:40:14 -07:00
Auke Kok
bcf27ebd99 Fix a few errors exposed by difficult setting. 2015-05-07 23:08:53 -07:00
Auke Kok
a1be5250b8 Unify the difficulty settings into init.lua
All the scaling factors are now either in the plant table or the
crops.settings table. This makes end-user tuning a bit harder, but
switching easier and configuring easier as well.
2015-05-06 23:59:25 -07:00
Auke Kok
0bb0aceabe Humidity for melons.
Lots of more templated code here. Use swap_node throughout. Each
plant has it's own properties table now, which trims the settings.txt
file. Will be easier to maintain and extend.

Had to add a withered texture for the melon plant... yes melon
plants will be able to wither on hard settings.
2015-05-04 01:52:41 -07:00
Auke Kok
bf6c660aec Add damage to potato nodes.
Note this is highly unbalanced still. Potatoes grow way too fast and
so there's little damage with the default settings.
2015-05-03 11:33:33 -07:00
Auke Kok
7dbea2deb5 Start of getting humidity to work for potatoes. 2015-05-02 19:03:37 -07:00
Auke Kok
baf1b9ce6a Configuration - persistent config file
This allows a server admin to tweak the mods growth rate, chance
and required light level. For convenience I've made 3 sets of
"easy", "normal" and "difficult" settings so that it's easy to
understand what the difference is and what good starting values
are.
2015-04-23 22:51:27 -07:00
Pilcrow182
01105a6526 add support for enable_waving_plants shader setting 2015-04-14 23:53:30 -05:00
Auke Kok
aa239c4ae3 Potatoes.
The plants themselves don't drop anything. Only if the plant matures
can you dig potatoes from the soil. If you can reach the soil from the
side you can save yourself one dig by digging the soil as that will
remove the plant from the top, but otherwise you need to dig twice:
once to remove the plant, once to dig out the potatoes.

You get 3-5 potatoes. Each potato gives one (set of) "potato eyes"
which are the clones that can grow back to potatoes.

The plant itself is purposedly drawn "low" and not as a full block as
that's how the plant grows without support, mostly close to the ground.

Be careful not to dig the plant when there's flowers! You have to
wait until the soil below shows potatoes. It's fairly easy to see
the difference, though.
2015-04-14 01:09:35 -07:00