diff --git a/mods/ITEMS/mcl_lanterns/README.md b/mods/ITEMS/mcl_lanterns/README.md new file mode 100644 index 000000000..11acb450e --- /dev/null +++ b/mods/ITEMS/mcl_lanterns/README.md @@ -0,0 +1,13 @@ +# Blackstone Mod + +This mod is made for the Minetest Subgame Mineclone2. + +It adds new Blocks: Blackstone, Basalt, Soul Fire, Soul Torch etc. + +## Version: + +Its version 1.0.2 + +## License + +CC BY-SA 4.0 diff --git a/mods/ITEMS/mcl_lanterns/depends.txt b/mods/ITEMS/mcl_lanterns/depends.txt new file mode 100644 index 000000000..c1ada2d4e --- /dev/null +++ b/mods/ITEMS/mcl_lanterns/depends.txt @@ -0,0 +1,7 @@ +mcl_core +screwdriver +mcl_stairs +mclx_stairs +mcl_walls +mclx_fences +mcl_torches diff --git a/mods/ITEMS/mcl_lanterns/init.lua b/mods/ITEMS/mcl_lanterns/init.lua new file mode 100644 index 000000000..c4a717f77 --- /dev/null +++ b/mods/ITEMS/mcl_lanterns/init.lua @@ -0,0 +1,44 @@ +local S = minetest.get_translator("mcl_lanterns") +local N = function(s) return s end + +minetest.register_node("mcl_lanterns:lantern", { + tiles = { + "lantern_top.png", + "lantern_bottom.png", + "lantern.png", + "lantern.png", + "lantern.png", + "lantern.png", + }, + groups = {pickaxey=3}, + inventory_image = "lantern.png", + light_source = 15, + description = S("Lantern"), + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + _mcl_hardness = 1, + node_box = { + type = "fixed", + fixed = { + {-0.1875, -0.5000, -0.1875, 0.1875, -0.06250, 0.1875}, + {-0.1250, -0.06250, -0.1250, 0.1250, 0.06250, 0.1250}, + {-0.06250, 0.1250, -0.006250, 0.06250, 0.1875, 0.006250}, + {-0.06250, 0.06250, -0.006250, -0.03125, 0.1250, 0.006250}, + {0.03125, 0.06250, -0.006250, 0.06250, 0.1250, 0.006250}, + } + }, + stack_max = 64, +}) + + + +minetest.register_craft({ + type = "shaped", + output = "mcl_lanterns:lantern", + recipe = { + {"mcl_core:iron_nugget", "mcl_core:iron_nugget","mcl_core:iron_nugget"}, + {"mcl_core:iron_nugget", "mcl_core:torch", "mcl_core:iron_nugget"}, + {"mcl_core:iron_nugget", "mcl_core:iron_nugget", "mcl_core:iron_nugget"} + } +}) \ No newline at end of file