Add Meselamps 446/head
authorBlockMen <nmuelll@web.de>
Thu, 5 Mar 2015 15:46:49 +0000 (16:46 +0100)
committerBlockMen <nmuelll@web.de>
Sun, 29 Mar 2015 19:17:53 +0000 (21:17 +0200)
- Mese glows
- Glass + Mese = Meselamp
- New mese mineral texture

mods/default/README.txt
mods/default/crafting.lua
mods/default/nodes.lua
mods/default/textures/default_meselamp.png [new file with mode: 0644]
mods/default/textures/default_mineral_mese.png

index 888aae46c05f1db31a32b8bba6ff9e341a17843d..9a7e1930cdb8d1df972cfb05aef958f3669704fc 100644 (file)
@@ -131,6 +131,8 @@ BlockMen (CC BY-SA 3.0):
   default_chest_lock.png
   default_chest_side.png
   default_chest_top.png
+  default_mineral_mese.png
+  default_meselamp.png
   bubble.png
   heart.png
   gui_*.png
index 71f00a7ec8b604906e22f455668f1dcf8fb58cd2..8ca4f5e34c2b574bbe9bba51d2902c96625e8ef9 100644 (file)
@@ -564,6 +564,14 @@ minetest.register_craft({
        }
 })
 
+minetest.register_craft({
+       output = 'default:meselamp 1',
+       recipe = {
+               {'', 'default:mese_crystal',''},
+               {'default:mese_crystal', 'default:glass', 'default:mese_crystal'},
+       }
+})
+
 minetest.register_craft({
        output = 'default:obsidian_shard 9',
        recipe = {
index e64bd101a1f6a7942716c703c3e7d8610e1a5164..ef12559b5f552b1d0437c678d5ffb5b2f2cc4987 100644 (file)
@@ -127,6 +127,8 @@ default:rail
 
 default:brick
 
+default:meselamp
+
 Misc
 ----
 default:cloud
@@ -674,18 +676,22 @@ minetest.register_node("default:bronzeblock", {
 minetest.register_node("default:stone_with_mese", {
        description = "Mese Ore",
        tiles = {"default_stone.png^default_mineral_mese.png"},
+       paramtype = "light",
        is_ground_content = true,
-       groups = {cracky=1},
+       groups = {cracky = 1},
        drop = "default:mese_crystal",
        sounds = default.node_sound_stone_defaults(),
+       light_source = 1,
 })
 
 minetest.register_node("default:mese", {
        description = "Mese Block",
        tiles = {"default_mese_block.png"},
+       paramtype = "light",
        is_ground_content = true,
-       groups = {cracky=1,level=2},
+       groups = {cracky = 1, level = 2},
        sounds = default.node_sound_stone_defaults(),
+       light_source = 3,
 })
 
 
@@ -1446,6 +1452,19 @@ minetest.register_node("default:brick", {
        sounds = default.node_sound_stone_defaults(),
 })
 
+
+minetest.register_node("default:meselamp", {
+       description = "Mese Lamp",
+       drawtype = "glasslike",
+       tiles = {"default_meselamp.png"},
+       paramtype = "light",
+       sunlight_propagates = true,
+       is_ground_content = false,
+       groups = {cracky = 3, oddly_breakable_by_hand = 3},
+       sounds = default.node_sound_glass_defaults(),
+       light_source = 12,
+})
+
 --
 -- Misc
 --
diff --git a/mods/default/textures/default_meselamp.png b/mods/default/textures/default_meselamp.png
new file mode 100644 (file)
index 0000000..b227a25
Binary files /dev/null and b/mods/default/textures/default_meselamp.png differ
index 4e374481475a1825960e00fe2f5277a0498e5b57..566d379a73ba4c878bafd3c2611ade410e33dd6d 100644 (file)
Binary files a/mods/default/textures/default_mineral_mese.png and b/mods/default/textures/default_mineral_mese.png differ