diff --git a/mods/_misc/aliases.lua b/mods/_misc/aliases.lua index 2cdc4aff..6e1b83f1 100755 --- a/mods/_misc/aliases.lua +++ b/mods/_misc/aliases.lua @@ -59,8 +59,3 @@ minetest.register_alias("wiki:wiki", "default:bookshelf") -- Remove "building_blocks:knife" minetest.register_alias("building_blocks:knife", "default:sword_steel") - --- Removal of [glow] mod -minetest.register_alias("glow:stone", "homedecor:glowlight_half_yellow") -minetest.register_alias("glow:lamp", "lantern:lantern") -minetest.register_alias("glow:lantern", "lantern:lantern") \ No newline at end of file diff --git a/mods/glow/.gitignore b/mods/glow/.gitignore new file mode 100755 index 00000000..d9c069a6 --- /dev/null +++ b/mods/glow/.gitignore @@ -0,0 +1,4 @@ +## Generic ignorable patterns and files +*~ +.*.swp +debug.txt diff --git a/mods/glow/README.md b/mods/glow/README.md new file mode 100755 index 00000000..883094c6 --- /dev/null +++ b/mods/glow/README.md @@ -0,0 +1,5 @@ +minetest-glow +============= + +Adds 2 glowing blocks for minetest: +Glowing stone and glowing lantern. diff --git a/mods/glow/glow/depends.txt b/mods/glow/glow/depends.txt new file mode 100755 index 00000000..4ad96d51 --- /dev/null +++ b/mods/glow/glow/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/glow/glow/glow_lamp.png b/mods/glow/glow/glow_lamp.png new file mode 100755 index 00000000..25131d08 Binary files /dev/null and b/mods/glow/glow/glow_lamp.png differ diff --git a/mods/glow/glow/init.lua b/mods/glow/glow/init.lua new file mode 100755 index 00000000..7dfdc4d2 --- /dev/null +++ b/mods/glow/glow/init.lua @@ -0,0 +1,39 @@ +-- glow/init.lua +-- mod by john and Zeg9 + +LIGHT_MAX = 15 + +minetest.register_node("glow:stone", { + description = "Glowing stone", + tile_images = {"glow_stone.png"}, + light_source = LIGHT_MAX, + groups = {cracky=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("glow:lamp", { + description = "Lamp", + tile_images = {"glow_stone.png^glow_lamp_frame.png"}, + light_source = LIGHT_MAX, + groups = {cracky=3}, + sounds = default.node_sound_glass_defaults(), +}) + + +minetest.register_craft( { + output = '"glow:stone" 2', + recipe = { + {'default:stone','default:coal_lump','default:stone'} + }, +}) + +minetest.register_craft( { + output = '"glow:lamp" 6', + recipe = { + {'default:stick', 'default:glass', 'default:stick'}, + {'default:glass', 'glow:stone', 'default:glass'}, + {'default:stick', 'default:glass', 'default:stick'}, + }, +}) + +minetest.register_alias("glow:lantern", "glow:lamp") diff --git a/mods/glow/glow/textures/glow_lamp_frame.png b/mods/glow/glow/textures/glow_lamp_frame.png new file mode 100755 index 00000000..0f763cac Binary files /dev/null and b/mods/glow/glow/textures/glow_lamp_frame.png differ diff --git a/mods/glow/glow/textures/glow_lamp_frame_normal.png b/mods/glow/glow/textures/glow_lamp_frame_normal.png new file mode 100755 index 00000000..4bdb5ef2 Binary files /dev/null and b/mods/glow/glow/textures/glow_lamp_frame_normal.png differ diff --git a/mods/glow/glow/textures/glow_stone.png b/mods/glow/glow/textures/glow_stone.png new file mode 100755 index 00000000..512475a2 Binary files /dev/null and b/mods/glow/glow/textures/glow_stone.png differ diff --git a/mods/glow/glow/textures/glow_stone_normal.png b/mods/glow/glow/textures/glow_stone_normal.png new file mode 100755 index 00000000..81731b2e Binary files /dev/null and b/mods/glow/glow/textures/glow_stone_normal.png differ diff --git a/mods/glow/modpack.txt b/mods/glow/modpack.txt new file mode 100755 index 00000000..e69de29b