add stained glass; change ice and slime drawtypes

master
Martin Doege 2015-09-14 12:06:53 +02:00
parent 17dd48eccb
commit 41d62ef3fe
20 changed files with 38 additions and 7 deletions

View File

@ -415,14 +415,13 @@ minetest.register_node("default:snowblock", {
minetest.register_node("default:ice", {
description = "Ice",
tiles = {"default_ice.png"},
drawtype = "liquid",
liquidtype = "source",
drawtype = "glasslike",
sunlight_propagates = true,
use_texture_alpha = true,
is_ground_content = true,
paramtype = "light",
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),
alpha = 180,
on_dig = function(pos, node, digger)
minetest.add_node(pos, {name="default:water_source"})
end

View File

@ -4,11 +4,11 @@
tiles = {
"slime.png",
},
drawtype = "liquid",
liquidtype = "source",
drawtype = "glasslike",
sunlight_propagates = true,
alpha = 190,
groups = {level=0, dig_immediate=3, oddly_breakable_by_hand=1, bouncy=50, fall_damage_add_percent=-100},
use_texture_alpha = true,
is_ground_content = true,
groups = {level=0, dig_immediate=3, oddly_breakable_by_hand=1, bouncy=90, fall_damage_add_percent=-100},
})
minetest.register_craft({

View File

@ -0,0 +1,2 @@
default
dye

View File

@ -0,0 +1,30 @@
for _, row in ipairs(dye.dyes) do
local name = row[1]
local cname = "stained_glass:"..name
local wname = "dye:"..name
local img = "glass_"..name..".png"
local str = name.." Stained Glass"
str = string.gsub(str, "_", " ")
local desc = string.gsub(" "..str, "%W%l", string.upper):sub(2)
minetest.register_node(cname, {
description = desc,
drawtype = "glasslike",
tiles = {img},
paramtype = "light",
sunlight_propagates = true,
use_texture_alpha = true,
is_ground_content = true,
groups = {cracky=3, oddly_breakable_by_hand=3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = cname..' 8',
recipe = {
{"default:glass", "default:glass", "default:glass"},
{"default:glass", wname, "default:glass"},
{"default:glass", "default:glass", "default:glass"},
}
})
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB