diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +default diff --git a/falling_light.lua b/falling_light.lua new file mode 100644 index 0000000..0c151b3 --- /dev/null +++ b/falling_light.lua @@ -0,0 +1,23 @@ +-- Falling Light +-- A simple mod for explorers +-- (C) Tai "DuCake" Kedzierski 2016 +-- Provided to you under 3-Clause BSD + +minetest.register_alias(":falling_light:light","vivarium:falling_light") + +minetest.register_node("vivarium:falling_light", { + description = "Falling Light", + paramtype = "light", + light_source = 14, + light_propagates = true, + sunlight_propagates = true, + tiles = {"default_sand.png"}, + groups = {crumbly = 3, falling_node = 1}, +}) + +minetest.register_craft ({ + output = "vivarium:falling_light", + type = "shapeless", + recipe = {"group:sand","default:torch"} +} +) diff --git a/init.lua b/init.lua index bc78794..cc1c0f0 100644 --- a/init.lua +++ b/init.lua @@ -1,21 +1,2 @@ --- Falling Light --- A simple mod for explorers --- (C) Tai "DuCake" Kedzierski 2016 --- Provided to you under 3-Clause BSD - -minetest.register_node("falling_light:light", { - description = "Falling Light", - paramtype = "light", - light_source = 14, - light_propagates = true, - sunlight_propagates = true, - tiles = {"default_sand.png"}, - groups = {crumbly = 3, falling_node = 1}, -}) - -minetest.register_craft ({ - output = "falling_light:light 2", - type = "shapeless", - recipe = {"group:sand","default:torch"} -} -) +-- Load the Falling Light mod +dofile(minetest.get_modpath("vivarium") .. "/falling_light.lua") diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..9c6463f --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +name = vivarium