left the actual function in, and replaced one call with a print statement
since if it happens, it indicates a non-fatal error that should always be
reported anyway (invalid object refs in mapgen calls)
when setting spawning and growing ABM intervals.
also, add some basic sanity checks to the interval value just in case
the math comes out wrong. Rearranged a bit of code to accommodate these
changes.
Make bushes use default farming mod's flour for making pies instead of
jungle grass, if that mod is installed. Junglegrass will be used if farming
is not present.
Make bushes mod support farming_plus more completely - either its or
bushes' strawberries may be used to make a strawberry pie or a mixed
fruit pie - mix and match the two types of strawberries as desired.
move clone node function from junglegrass mod to plants_lib so that
other mods can use it.
Lilies will be rotated randomly on place, in the same manner as they're
usually generated.
Hold 'sneak' (usually shift) while placing to force them to follow your
facedir instead.
Liles will replace buildable_to nodes when placed, including themselves.
This will cause a loss of lilies if you just keep placing them over and
over, but this is intentional.
node_ownership, glomie's protection mod, and zeg9's protection mod are
accounted for, as are infinite item stacks (e.g. plain creative mode).
Also, compact the waterlily register node calls into a loop.
deleting nodes surrounding the spawn target during the mapgen code, replacing
the spawn target, and checking the type of node directly below the spawn
target.
and to allow the spawned object to *replace* the node it would otherwise
spawn on top of.
Also, extended API to allow for a node to be directly named in the
register_generate_plant() call.
calling options. This opens the door for even more features in the future.
Changed flowers, junglegrass, poisonivy to match.
Made plants lib faster in some places, especially the surface-hunting
algorithm, and especially over water. Fixed a few other misc. bugs.
Made growth code properly execute all biome-control code before executing
any string-named function or spawn_tree().
Tuned flowers settings. Made flowers require at least some light to spawn,
made waterlilies require shallower water. Fixed a bug in water depth detection
and made water depth depend on whether the bottom of the water area is dirt,
dirt with grass, or sand, rather than just anything.
Made waterlilies randomly rotate on spawning to break up the patterns (now has
16 orientations with the help of nodeboxes and facedir, requires only 3 new
nodes). Smoothed edges of the regular waterlily texture. Made all flowers and
water- lilies spawn using only 3 ABM calls instead of 8.
Got rid of colon prefix node def overrides on all plants, since this is a
modpack now instead of an integrated mod. Fixed a misspelled folder name for
poisonivy.
Fixed a bug in the wall detection routine - it returned the last wall found,
not the first.
Made the top-side-check for air only apply when spawning on top of the
target rather than its sides/bottom.
Many other features and enhancements have been made. Too many to list here.
Please see API.txt for details.
This causes trees to be just a tad more sparse than intended, but greatly
speeds up the map generator.
Worst case drops from thousands of nodes to test per tree type to a 5-15 nodes
per tree type.
(two new variables defining min and max temperature, normalized to 0.53 = 0
degrees centigrade).
The values used for this new Perlin layer come from Splizard's Snow Biomes mod,
so other mods that use plantlife to create biomes should be able to blend
nicely with that mod.