From 1a567ced125470e9539771a9075cd7d7ecb27f89 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Thu, 27 Jul 2017 21:05:41 +0200 Subject: [PATCH] glass like type --- spawners_env/spawners_env.lua | 9 ++++++--- spawners_mobs/spawners_mobs.lua | 12 ++++++++---- spawners_ores/spawners_ores.lua | 9 ++++++--- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/spawners_env/spawners_env.lua b/spawners_env/spawners_env.lua index 7da5857..cf0f995 100644 --- a/spawners_env/spawners_env.lua +++ b/spawners_env/spawners_env.lua @@ -49,7 +49,8 @@ function spawners_env.create(mob_name, mod_prefix, size, offset, mesh, texture, description = mod_prefix.."_"..mob_name.." spawner active env", paramtype = "light", light_source = 4, - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), damage_per_second = 4, @@ -92,7 +93,8 @@ function spawners_env.create(mob_name, mod_prefix, size, offset, mesh, texture, description = mod_prefix.."_"..mob_name.." spawner waiting env", paramtype = "light", light_source = 2, - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), sunlight_propagates = true, @@ -128,7 +130,8 @@ function spawners_env.create(mob_name, mod_prefix, size, offset, mesh, texture, minetest.register_node("spawners_env:"..mod_prefix.."_"..mob_name.."_spawner", { description = mod_prefix.."_"..mob_name.." spawner env", paramtype = "light", - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), sunlight_propagates = true, diff --git a/spawners_mobs/spawners_mobs.lua b/spawners_mobs/spawners_mobs.lua index 5a38b30..9129129 100644 --- a/spawners_mobs/spawners_mobs.lua +++ b/spawners_mobs/spawners_mobs.lua @@ -51,7 +51,8 @@ function spawners_mobs.create(mob_name, mod_prefix, size, offset, mesh, texture, description = mod_prefix.."_"..mob_name.." spawner active", paramtype = "light", light_source = 6, - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), damage_per_second = 4, @@ -125,7 +126,8 @@ function spawners_mobs.create(mob_name, mod_prefix, size, offset, mesh, texture, description = mod_prefix.."_"..mob_name.." spawner waiting", paramtype = "light", light_source = 2, - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), sunlight_propagates = true, @@ -155,7 +157,8 @@ function spawners_mobs.create(mob_name, mod_prefix, size, offset, mesh, texture, minetest.register_node("spawners_mobs:"..mod_prefix.."_"..mob_name.."_spawner", { description = mod_prefix.."_"..mob_name.." spawner", paramtype = "light", - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), sunlight_propagates = true, @@ -189,7 +192,8 @@ function spawners_mobs.create(mob_name, mod_prefix, size, offset, mesh, texture, description = mod_prefix.."_"..mob_name.." spawner overheated", paramtype = "light", light_source = 2, - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), damage_per_second = 4, diff --git a/spawners_ores/spawners_ores.lua b/spawners_ores/spawners_ores.lua index b634b95..a4e6aa7 100644 --- a/spawners_ores/spawners_ores.lua +++ b/spawners_ores/spawners_ores.lua @@ -163,7 +163,8 @@ function spawners_ores.create_ore(ore_name, mod_prefix, size, offset, texture, s description = ore_name.." spawner active", paramtype = "light", light_source = 4, - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), damage_per_second = 4, @@ -193,7 +194,8 @@ function spawners_ores.create_ore(ore_name, mod_prefix, size, offset, texture, s description = ore_name.." spawner waiting", paramtype = "light", light_source = 2, - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), sunlight_propagates = true, @@ -221,7 +223,8 @@ function spawners_ores.create_ore(ore_name, mod_prefix, size, offset, texture, s minetest.register_node("spawners_ores:"..ore_name.."_spawner", { description = ore_name.." spawner", paramtype = "light", - drawtype = "allfaces", + paramtype2 = "glasslikeliquidlevel", + drawtype = "glasslike_framed_optional", walkable = true, sounds = default.node_sound_metal_defaults(), sunlight_propagates = true,