mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-11-15 23:20:25 +01:00
34 lines
864 B
Lua
34 lines
864 B
Lua
local S = df_underworld_items.S
|
|
|
|
local glowstone_def = {
|
|
_doc_items_longdesc = df_underworld_items.doc.glowstone_desc,
|
|
_doc_items_usagehelp = df_underworld_items.doc.glowstone_usage,
|
|
light_source = minetest.LIGHT_MAX,
|
|
description = S("Lightseam"),
|
|
tiles = {
|
|
{
|
|
name = "dfcaverns_glowstone_anim.png",
|
|
backface_culling = true,
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 8,
|
|
},
|
|
},
|
|
},
|
|
is_ground_content = false,
|
|
groups = {cracky=3},
|
|
sounds = default.node_sound_glass_defaults(),
|
|
paramtype = "light",
|
|
--use_texture_alpha = true,
|
|
drawtype = "glasslike",
|
|
drop = "",
|
|
sunlight_propagates = true,
|
|
}
|
|
if minetest.get_modpath("tnt") then
|
|
glowstone_def.on_dig = function(pos, node, digger)
|
|
tnt.boom(pos, {radius=3})
|
|
end
|
|
end
|
|
minetest.register_node("df_underworld_items:glowstone", glowstone_def) |