mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-11-14 14:40:29 +01:00
38 lines
1.0 KiB
Lua
38 lines
1.0 KiB
Lua
local S = minetest.get_translator(minetest.get_current_modname())
|
|
|
|
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, pickaxey = 1, building_block = 1, material_stone =1},
|
|
sounds = df_dependencies.sound_glass(),
|
|
paramtype = "light",
|
|
drawtype = "glasslike",
|
|
drop = "",
|
|
sunlight_propagates = true,
|
|
_mcl_blast_resistance = 0.5,
|
|
_mcl_hardness = 0.5,
|
|
}
|
|
local tnt_boom = df_dependencies.tnt_boom
|
|
if tnt_boom then
|
|
glowstone_def.on_dig = function(pos, node, digger)
|
|
if minetest.node_dig(pos, node, digger) then
|
|
tnt_boom(pos, {radius=3})
|
|
end
|
|
end
|
|
end
|
|
minetest.register_node("df_underworld_items:glowstone", glowstone_def) |