Commit Graph

17 Commits (master)

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 61de78e439 Plant humidity.
More explanation needed, and will be coming later.
2015-05-02 14:59:30 -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 318f3815d3 Interval/chance update.
- Globally use the same across all veggies
- use a shorter ABM, with lower chance

I don't like the fact that if you have 100 plants, then half of them
will ALL change phase every 90 seconds. It's just very unnatural. By
changing the rate/chance proportionally, plants still grow about as
fast (~1200secs for 90% growth rate to 5 phases), but there will be
less abrupt changes and no massive block updates, just small amounts
at a time. Yes, more ABM's will fire, but that's unlikely a load that
it won't be able to handle.
2015-04-13 21:01:45 -07:00
Auke Kok 5f9a5d7835 Add default leaf sounds to all the crops.
Only melon blocks have a different sound at this point.
2015-04-12 18:56:52 -07:00
Auke Kok 54ce1777f0 Tomatoes.
Tomatoes appear to work simple enough, until you harvest them
the first time: The plant stays! However, after the 3rd to 5th
harvest, the plant wilts and needs to be removed, since no more
tomatoes will grow on the plant. Per harvest you can get 1-2
tomatoes only. You can craft the tomatoes to tomato seeds, as
expected.
2015-04-11 17:36:59 -07:00