+minetest.register_node("main:mossy_cobble", {
+ description = "Mossy Cobblestone",
+ tiles = {"mossy_cobble.png"},
+ groups = {stone = 1, pathable = 1},
+ sounds = main.stoneSound(),
+ drop = {
+ max_items = 1,
+ items= {
+ {
+ rarity = 0,
+ tools = tool,
+ items = {"main:mossy_cobble"},
+ },
+ },
+ },
+})
+
+minetest.register_node("main:glass", {
+ description = "Glass",
+ tiles = {"glass.png"},
+ drawtype = "glasslike",
+ paramtype = "light",
+ sunlight_propagates = true,
+ is_ground_content = false,
+ groups = {glass = 1, pathable = 1},
+ sounds = main.stoneSound({
+ footstep = {name = "glass_footstep", gain = 0.4},
+ dug = {name = "break_glass", gain = 0.4},
+ }),
+ drop = "",
+})
+
+minetest.register_node("main:ice", {
+ description = "Ice",
+ tiles = {"ice.png"},
+ drawtype = "glasslike",
+ paramtype = "light",
+ sunlight_propagates = true,
+ sunlight_propagates = true,
+ is_ground_content = false,
+ groups = {glass = 1, pathable = 1,slippery=3},
+ sounds = main.stoneSound({
+ footstep = {name = "glass_footstep", gain = 0.4},
+ dug = {name = "break_glass", gain = 0.4},
+ }),
+ use_texture_alpha = false,
+ alpha = 100,
+ drop = "",
+ after_destruct = function(pos, oldnode)
+ minetest.set_node(pos, {name="main:water"})
+ end
+})
+minetest.register_node("main:ice_mapgen", {
+ description = "Ice",
+ tiles = {"ice.png"},
+ drawtype = "normal",
+ sunlight_propagates = true,
+ sunlight_propagates = true,
+ is_ground_content = false,
+ groups = {glass = 1, pathable = 1,slippery=3},
+ sounds = main.stoneSound({
+ footstep = {name = "glass_footstep", gain = 0.4},
+ dug = {name = "break_glass", gain = 0.4},
+ }),
+ use_texture_alpha = false,
+ drop = "",
+})
+