add stained glass; change ice and slime drawtypes
|
@ -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
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
dye
|
|
@ -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
|
||||
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 2.9 KiB |