summaryrefslogtreecommitdiff
path: root/vines/init.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-12-17 02:20:30 -0500
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-12-17 02:20:30 -0500
commitec25fd83415d0ecb49f41295af3dc30f14850b2f (patch)
tree59fe699656e75a52e6665b385907b86cc0b89c16 /vines/init.lua
parent856b86858ebfa4af2c352b022188f82dcff7ed92 (diff)
downloaddreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.tar
dreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.tar.gz
dreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.tar.bz2
dreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.tar.xz
dreambuilder_modpack-ec25fd83415d0ecb49f41295af3dc30f14850b2f.zip
update biome_lib, digilines, hotbar, mesecons, pipeworks,
ropes, technic, unified inventory, unified dyes, vines, and worldedit
Diffstat (limited to 'vines/init.lua')
-rw-r--r--vines/init.lua15
1 files changed, 11 insertions, 4 deletions
diff --git a/vines/init.lua b/vines/init.lua
index cce7cca..cb4c1e1 100644
--- a/vines/init.lua
+++ b/vines/init.lua
@@ -3,6 +3,8 @@ vines = {
recipes = {}
}
+local enable_roots = minetest.settings:get_bool("vines_enable_roots")
+
-- support for i18n
local S = plantlife_i18n.gettext
@@ -305,6 +307,14 @@ minetest.register_tool("vines:shears", {
})
-- VINES
+local spawn_root_surfaces = {}
+
+if enable_roots ~= false then
+ spawn_root_surfaces = {
+ "default:dirt_with_grass",
+ "default:dirt"
+ }
+end
vines.register_vine('root',
{description = S("Roots"), average_length = 9}, {
@@ -313,10 +323,7 @@ vines.register_vine('root',
avoid_radius = 5,
spawn_delay = 500,
spawn_chance = 10,
- spawn_surfaces = {
- "default:dirt_with_grass",
- "default:dirt"
- },
+ spawn_surfaces = spawn_root_surfaces,
spawn_on_bottom = true,
plantlife_limit = -0.6,
humidity_min = 0.4,