summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-07 20:59:50 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-07 21:01:09 -0500
commit620a799fb47f06fef8e09e10f779fcf659fe1402 (patch)
tree910e79f208f39f3c0c8f5495fc2ee4d9bbf9e8f4 /init.lua
parentc3e3f7ae38001fc0eeec8c20b65c4a3536998642 (diff)
Moretrees' trunks can now be turned sideways when placing,
using minetest.rotate_and_place() Requires Minetest git commit 1d856b73 or later.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 0dec9e5..dc7d733 100644
--- a/init.lua
+++ b/init.lua
@@ -44,6 +44,27 @@ else
dofile(worldpath.."/moretrees_settings.txt")
end
+-- Boilerplate to support localized strings if intllib mod is installed.
+
+local S
+if moretrees.intllib_modpath then
+ dofile(moretrees.intllib_modpath.."/intllib.lua")
+ S = intllib.Getter(minetest.get_current_modname())
+else
+ S = function ( s ) return s end
+end
+moretrees.gettext = S
+
+-- infinite stacks checking
+
+if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then
+ moretrees.expect_infinite_stacks = false
+else
+ moretrees.expect_infinite_stacks = true
+end
+
+-- tables, load other files
+
moretrees.cutting_tools = {
"default:axe_bronze",
"default:axe_diamond",
@@ -56,6 +77,7 @@ moretrees.cutting_tools = {
"titanium:axe",
}
+dofile(modpath.."/ownership.lua")
dofile(modpath.."/tree_models.lua")
dofile(modpath.."/node_defs.lua")
dofile(modpath.."/biome_defs.lua")