summaryrefslogtreecommitdiff
path: root/plantlife_modpack/bushes_classic/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 20:02:19 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:09:33 -0400
commitda66780a569712c23ae4f2996cfb4608a9f9d69d (patch)
tree217556029a78bc23ad4564720afc86de97228a04 /plantlife_modpack/bushes_classic/init.lua
parent615b22df4d423aded3613db7716943a2f389b047 (diff)
downloaddreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.gz
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.bz2
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.xz
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.zip
copy all standard Dreambuilder mods in from the old subgame
(exactly as last supplied there, updates to these mods will follow later)
Diffstat (limited to 'plantlife_modpack/bushes_classic/init.lua')
-rw-r--r--plantlife_modpack/bushes_classic/init.lua59
1 files changed, 59 insertions, 0 deletions
diff --git a/plantlife_modpack/bushes_classic/init.lua b/plantlife_modpack/bushes_classic/init.lua
new file mode 100644
index 0000000..021f569
--- /dev/null
+++ b/plantlife_modpack/bushes_classic/init.lua
@@ -0,0 +1,59 @@
+-- Bushes classic mod originally by unknown
+-- now maintained by VanessaE
+--
+-- License: WTFPL
+
+local S = biome_lib.intllib
+
+bushes_classic = {}
+
+bushes_classic.bushes = {
+ "strawberry",
+ "blackberry",
+ "blueberry",
+ "raspberry",
+ "gooseberry",
+ "mixed_berry"
+}
+
+bushes_classic.bushes_descriptions = {
+ "Strawberry",
+ "Blackberry",
+ "Blueberry",
+ "Raspberry",
+ "Gooseberry",
+ "Mixed Berry"
+}
+
+bushes_classic.spawn_list = {}
+
+local modpath = minetest.get_modpath('bushes_classic')
+dofile(modpath..'/cooking.lua')
+dofile(modpath..'/nodes.lua')
+
+biome_lib:spawn_on_surfaces({
+ spawn_delay = 3600,
+ spawn_plants = bushes_classic.spawn_list,
+ avoid_radius = 10,
+ spawn_chance = 100,
+ spawn_surfaces = {
+ "default:dirt_with_grass",
+ "woodsoils:dirt_with_leaves_1",
+ "woodsoils:grass_with_leaves_1",
+ "woodsoils:grass_with_leaves_2",
+ "farming:soil",
+ "farming:soil_wet"
+ },
+ avoid_nodes = {"group:bush"},
+ seed_diff = 545342534, -- chosen by a fair mashing of the keyboard - guaranteed to be random :P
+ plantlife_limit = -0.1,
+ light_min = 10,
+ temp_min = 0.15, -- approx 20C
+ temp_max = -0.15, -- approx 35C
+ humidity_min = 0, -- 50% RH
+ humidity_max = -1, -- 100% RH
+})
+
+minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry")
+
+print(S("[Bushes] Loaded."))