Skip to content

Commit

Permalink
Add Meselamps
Browse files Browse the repository at this point in the history
- Mese glows
- Glass + Mese = Meselamp
- New mese mineral texture
  • Loading branch information
BlockMen committed Mar 29, 2015
1 parent 3f2e35e commit 820a97e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mods/default/README.txt
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions mods/default/crafting.lua
Expand Up @@ -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 = {
Expand Down
23 changes: 21 additions & 2 deletions mods/default/nodes.lua
Expand Up @@ -127,6 +127,8 @@ default:rail
default:brick
default:meselamp
Misc
----
default:cloud
Expand Down Expand Up @@ -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,
})
Expand Down Expand Up @@ -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
--
Expand Down
Binary file added mods/default/textures/default_meselamp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mods/default/textures/default_mineral_mese.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 820a97e

Please sign in to comment.