Commit Graph

226 Commits

Author SHA1 Message Date
Craig Robbins
d0d839df15 Bump minor version number 2014-08-23 10:35:57 -04:00
Craig Robbins
f44f81213c Stop polluting global namespace 2014-08-23 10:35:57 -04:00
Craig Robbins
50cb0a2741 Renamed SeTTiNGS.txt to settings.lua
It's a Lua file... the extension should reflect what it actually is
2014-08-23 10:35:57 -04:00
Craig Robbins
fe67913fc5 Refactor abstract_ferns.grow_giant_tree_fern
Arguably more readable; definately more maintainable

Potentially slower but if it is the difference would be negligable
2014-08-23 10:35:57 -04:00
Craig Robbins
bd8dadad0b Renamed "leave" to "leaf" where appropriate 2014-08-23 10:35:57 -04:00
Craig Robbins
99dd2db18a Early exit from abstract_ferns.grow_giant_tree_fern
(very) small performance increase
2014-08-23 10:35:57 -04:00
Vanessa Ezekowitz
27430814a0 allow multiple nodes to be specified as a table in the
nodes_or_function_or_model field of the mapgen register call
2014-08-22 23:31:30 -04:00
Vanessa Ezekowitz
a60f89a8a2 Merge branch 'api-tweak' 2014-08-21 01:06:52 -04:00
Vanessa Ezekowitz
9c7e96dd62 allow random_facedir parameter during mapgen call 2014-08-21 01:06:41 -04:00
Vanessa Ezekowitz
ea8ac7f95b fix spelling error in texture filename 2014-08-20 23:38:37 -04:00
Vanessa Ezekowitz
5f7d08ddc4 spelling error (bonsai, not bonzai) 2014-08-20 15:10:18 -04:00
Vanessa Ezekowitz
a0c3b2bd42 add potted bonzai and cactus 2014-08-20 14:01:20 -04:00
Vanessa Ezekowitz
0f20658a2a same for mixed berry pies 2014-08-18 23:16:38 -04:00
Vanessa Ezekowitz
27c1cc58e7 discontinue the old non-farming junglegrass-based pie recipe. 2014-08-18 23:12:13 -04:00
Vanessa Ezekowitz
9e8c58895e Add slightly reduced and rewritten version of mushroom mod by Dan
Duncombe and I, with tweaks added to make mushrooms able to spawn on
woodsoils grass/dirt with leaves.

Rewrites are just to make the ABMs a little lighter-weight, but they should
still function the same as before.

This mod does not hook into the map generator.
2014-08-18 22:33:28 -04:00
Vanessa Ezekowitz
5fdcaa25c4 roll "legacy" mapgen calls into a loop similar to the standard one, call them
"no air check" instead.  Adjust debug prints and summary accordingly.

This reduces the total number of mapgen hooks from 5 down to just 2.
2014-08-18 19:23:56 -04:00
Vanessa Ezekowitz
3b32a4acb7 typo 2014-08-18 19:23:56 -04:00
Vanessa Ezekowitz
809a91e619 don't use inventory/wield image on youngtrees:bamboo.
let the engine show the nodebox instead.
2014-08-18 19:23:56 -04:00
Vanessa Ezekowitz
bc48ee59e3 fix wield scale of giant fern tree crown 2014-08-18 19:23:56 -04:00
Vanessa Ezekowitz
b914e5395b use set_node(), not add_node()
don't use minetest.env:* method (deprecated), use minetest.* instead
2014-08-15 19:34:15 -04:00
Vanessa Ezekowitz
985111d17c that wasn't a memory leak
the table falls out of context at the end of the loop anyway
so the GC will delete it when the loop ends. No reason to delete it manually.
2014-08-15 18:58:05 -04:00
Vanessa Ezekowitz
1e4ad757a5 route most of the various recent print statements through plantslib:dbg()
(still defaults to false)
2014-08-15 16:25:32 -04:00
Vanessa Ezekowitz
f1356dfd65 don't execute abstract_dryplants.grow_grass with "short" grass as a "surface" node.
as short grass may not always be there.  will do it a more proper way later.
2014-08-15 16:21:55 -04:00
Vanessa Ezekowitz
8e4c942d9a don't register surface types if their nodes aren't defined. 2014-08-15 16:14:09 -04:00
Vanessa Ezekowitz
a25fb55c57 print a final report of the number of actions and legacy mapgen hooks that were registered 2014-08-15 15:51:03 -04:00
Vanessa Ezekowitz
760160d638 legacy stuff should always be marked as "Warning:"
and make warnings more consistent
2014-08-15 11:10:17 -04:00
Vanessa Ezekowitz
5cf07fd39f remove useless mention of last revision. 2014-08-15 11:01:42 -04:00
Vanessa Ezekowitz
da732bb18e use real function calls instead of the old string method where possible
(basically leaving only the old legacy mapgen calls still using the string method)
2014-08-15 10:47:44 -04:00
Vanessa Ezekowitz
7f4fc1d553 fix wield scale on giant tree fern leaves 2014-08-15 08:42:57 -04:00
Craig Robbins
ae9c8c307d Bugfix: giant tree fern leaves dropping wrong item 2014-08-15 17:43:11 +10:00
Vanessa Ezekowitz
8f9b8014c7 Don't allow registration of actions for undefined nodes 2014-08-15 00:51:08 -04:00
Vanessa Ezekowitz
6a13ffc5d2 don't bother testing if air check is enabled in legacy
...because it never will be :P
2014-08-15 00:00:30 -04:00
Vanessa Ezekowitz
c312c4e52f local-ize the block cache table 2014-08-14 23:52:23 -04:00
Vanessa Ezekowitz
33c565fbdb move perlin1 (perlin_fertile_area) out of the inner loop
(it only needs to be inside the action loop)
2014-08-14 23:47:23 -04:00
Vanessa Ezekowitz
6bc8fead15 optimize out table.insert() and ipairs() calls 2014-08-14 23:35:02 -04:00
Craig Robbins
d1aae719d0 Fixed emerge tread dig messages for ferns
Pretty sure it's right this time :)
2014-08-15 12:20:50 +10:00
Craig Robbins
b2c30c9a5e Use a loop to generate the giant ferns rather than lots of if statements.
NB: Technically giant tree ferns are a subcanopy species and not emergent (which with the current truck heights they are in jungles)
2014-08-14 10:48:07 -04:00
Vanessa Ezekowitz
c311de6694 free the block cache memory after using it (fix mem leak) 2014-08-13 21:19:53 -04:00
Vanessa Ezekowitz
ce9212c413 make ferns not spawn on gravel actively by default 2014-08-13 00:07:28 -04:00
Vanessa Ezekowitz
6ac71ebf91 same for juncus grass 2014-08-12 23:57:23 -04:00
Vanessa Ezekowitz
c499030f7c do the same for the other small ferns 2014-08-12 23:55:34 -04:00
Vanessa Ezekowitz
c736a719eb make horsetail ferns buildable_to 2014-08-12 23:50:37 -04:00
Vanessa Ezekowitz
f3cdd1b7a1 don't disable air checking in biome defs when it isn't necessary
doing so greatly slows down plants_lib by forcing the use of the legacy
mapgen code.
2014-08-12 23:44:00 -04:00
Vanessa Ezekowitz
c636c62480 new mapgen algorithm - do the surface eval in one pass. 2014-08-12 22:04:48 -04:00
Wuzzy
d56516de3a Cleanup node naming, node drops and inv. images
Descriptions of all nodes are (hopefully) in proper English now,
no more stupid non-descriptions like “Young2treebottom” etc.
Bush branches drop sticks, young tree trunks drop sticks, too.
2014-08-12 16:07:43 -04:00
Vanessa Ezekowitz
c89d6c52b3 fix spelling of Mossmanikin's name in LICENSE. 2014-08-12 15:47:48 -04:00
Vanessa Ezekowitz
3b7b242481 Imported dryplants and ferns mods and all components of the Undergrowth modpack 2014-08-12 15:08:11 -04:00
Vanessa Ezekowitz
da211cc07d get rid of the old clone_node function. nothing uses or needs it now.
use minetest.override_item() instead
2014-07-30 14:29:42 -04:00
Vanessa Ezekowitz
829c69c351 make nature_classic aware of moretrees
If moretrees is not present, nature_classic spawns blossoms and
eventually apples on default trees, as it always has.

If moretrees IS present, the code will only spawn apple blossoms on
moretrees' own apple tree leaves, and will only grow new apples on those
trees, not on default trees.  In this case, the nature:blossom node is
considered deprecated and is aliased to default:leaves to avoid causing
undefined nodes in old maps.
2014-07-30 12:55:49 -04:00
Zefram
49c1d35ddb Exclude fruitless bush from creative inventory
The fruitless bush isn't an independent item, but a node type used only
for its appearance, representing the the fruitless state of some specific
type of fruit bush.  One should never have a fruitless bush in inventory,
and it makes no sense to plant a fruitless bush per se.
2014-07-05 12:49:24 -04:00