127 Commits

Author SHA1 Message Date
Auke Kok
c33ff695c0 Off-by one change.
take damge when water <>= damage_limit (and not <>)

corn can go down to 5. 0-4 is considered bone dry anyway.
2015-05-07 23:44:23 -07:00
Auke Kok
68f0acc354 Prevented corn from actually taking damage 2015-05-07 23:43:27 -07: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
50420edd77 Damage/difficulty scaling. Adjust lots of sliders a bit. 2015-05-07 22:34:55 -07:00
Auke Kok
27fb2fa79b Fix settings - this actually works OK. 2015-05-07 21:27:41 -07:00
Auke Kok
123c866c84 Attached melon plants were not getting damage/hydration applied. 2015-05-07 00:01:59 -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
59d53aa5a6 Missed this one plant: damage ripe beanpoles. 2015-05-06 16:44:13 -07:00
Auke Kok
896da8d1be dmg for polebean harvest 2015-05-06 00:58:07 -07:00
Auke Kok
342fd7881e Make tops of seedling beans behave like double plants too.
More consistent. You can use the watering can on either top
or bottom at any stage. Same for hydrometer.
2015-05-06 00:48:38 -07:00
Auke Kok
7d4c89842d Adding humidity to polebeans 2015-05-06 00:42:36 -07:00
Auke Kok
761c6618aa No need for this. 2015-05-06 00:29:00 -07:00
Auke Kok
fa07d3307a Humidity for corn.
Adding some code to handle double sized plants easily. The
watering can now redirects water to the bottom, and the hydrometer
reads the bottom half water value instead of the top. No ABM's for
hydration happen on the top half, so no risk of double damage there.
2015-05-05 23:47:42 -07:00
Auke Kok
a4a53ba854 No need to hardcode nodenames here. 2015-05-05 22:44:22 -07:00
Auke Kok
6a1946e22f Updates with latest texts from forum 2015-05-05 13:48:28 -07:00
Auke Kok
177244f9bb Make the act of growing cost extra water. 2015-05-04 23:00:33 -07:00
Auke Kok
a25d61bc75 Handle water damage for melons.
copy the dmg val over to the melon, then at dig time calculate the
loss of melon slices. One melon slice always remains (there's no
rotten melon...)
2015-05-04 22:52:12 -07:00
Auke Kok
20901ab7af For easy creating of release tarbals. Once I start tagging, that is. 2015-05-04 22:23:31 -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
01925abc36 Make this a bit more useful, plus link to forum topic 2015-05-03 11:43:55 -07:00
Auke Kok
29e7a20f28 Revert "Apparently I can turn off al these gimp export PNG options."
This reverts commit 4b71d7af7610a9f6c6e1ba692a245c566402e284.
2015-05-03 11:33:33 -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
6d1552cf5e FIxed aspect ratio, re-cropped from original. 2015-05-03 11:33:33 -07:00
Auke Kok
4df176e4ed Apparently I can turn off al these gimp export PNG options. 2015-05-03 11:33:33 -07:00
Auke Kok
8c61511152 Merge pull request #9 from HybridDog/adv_optipng_textures
advpng and optipng textures to reduce texture file sizes
2015-05-03 11:16:48 -07:00
HybridDog
c5535a31ef advpng and optipng textures 2015-05-03 11:38:49 +02:00
Auke Kok
3501c6d8d0 Merge pull request #7 from ExcaliburZero/compress-textures
Compressed texture images
2015-05-02 19:04:27 -07:00
Auke Kok
7dbea2deb5 Start of getting humidity to work for potatoes. 2015-05-02 19:03:37 -07:00
Auke Kok
30b3b14312 Merge pull request #8 from ExcaliburZero/basic-files
Added description and screenshot files for in-game mod manager
2015-05-02 19:00:55 -07:00
ExcaliburZero
ce40a99348 Added description and screenshot files
Added a description and screenshot file that will be used by the Mod tab of the main menu of Minetest.
2015-05-02 18:04:19 -04:00
ExcaliburZero
d80c8ae142 Compressed texture images
Compressed all of the texture images using Trimage Image Compressor.
2015-05-02 18:00:09 -04:00
Auke Kok
61de78e439 Plant humidity.
More explanation needed, and will be coming later.
2015-05-02 14:59:30 -07:00
Auke Kok
ee955ef0e8 Rename this to README 2015-04-24 22:12:37 -07:00
Auke Kok
6dad719fba Note about this file not updating itself. 2015-04-23 23:09:42 -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
Auke Kok
9e2f05283c Start of some cooking recipes that use crops. 2015-04-23 21:18:10 -07:00
Auke Kok
2b520045ed Fixing normals, groups on this model 2015-04-18 00:19:34 -07:00
Auke Kok
b9e89221ec copy/paste 2015-04-17 00:33:31 -07:00
Auke Kok
9ec21f77b3 Green beans. 2015-04-17 00:31:38 -07:00
Auke Kok
86df3322d2 Green Beans.
These green beans are unnaturally green, but there's so many
of them that grow on a vine! Sadly, these beans don't grow beans
unsupported, so you stick some sticks together to make a beanpole,
something like this way:

empty empty empty
stick empty stick
stick empty stick

There, that should help the viney bean plant to grow to 2 meters
high. It has remarkable purple flowers, that pop all over the plant
just before the beans grow.

Sadly, once the beans are picked, this plant turns into an unusable
mess that makes it hard for the next plant to grow on the beanpole,
so you salvage the beanpole's sticks after harvesting in order to
make more beanpoles again. It's a bit of work, but worth it, these
beans are delicious!
2015-04-17 00:27:21 -07:00
Auke Kok
b72267b19d Merge pull request #6 from Pilcrow182/master
add support for enable_waving_plants shader setting
2015-04-14 22:46:10 -07:00
Pilcrow182
01105a6526 add support for enable_waving_plants shader setting 2015-04-14 23:53:30 -05:00
Auke Kok
e2ce73d686 Added the Potato. 2015-04-14 20:37:38 -07: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
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
6b0ff22e53 Add an unripe, green tomato in the pre-harvest stage.
This adds some nice color and shows a hint to the farmer that
there's going to be harvestable fruit soon. The green tomatoes
are not harvestable, but clearly stand out. They're significantly
smaller than the ripe tomato.
2015-04-12 18:41:27 -07:00
Auke Kok
d8daf94c69 Tomato textures: more color depth, better color spread. 2015-04-11 20:09:58 -07:00
Auke Kok
d00e8b4f89 Tweaked tomato leaves to be lighter. 2015-04-11 17:51:22 -07:00