dfcaverns/features/flowstone_nodes.lua

82 lines
3.4 KiB
Lua
Raw Normal View History

-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
minetest.register_alias("subterrane:dry_stal_1", "dfcaverns:dry_stal_1")
minetest.register_alias("subterrane:dry_stal_1", "dfcaverns:dry_stal_1")
minetest.register_alias("subterrane:dry_stal_1", "dfcaverns:dry_stal_1")
minetest.register_alias("subterrane:dry_stal_1", "dfcaverns:dry_stal_1")
minetest.register_alias("subterrane:wet_stal_1", "dfcaverns:wet_stal_1")
minetest.register_alias("subterrane:wet_stal_1", "dfcaverns:wet_stal_1")
minetest.register_alias("subterrane:wet_stal_1", "dfcaverns:wet_stal_1")
minetest.register_alias("subterrane:wet_stal_1", "dfcaverns:wet_stal_1")
minetest.register_alias("subterrane:wet_flowstone", "dfcaverns:wet_flowstone")
minetest.register_alias("subterrane:dry_flowstone", "dfcaverns:dry_flowstone")
-----------------------------------------------
2018-05-25 03:37:12 +02:00
dfcaverns.dry_stalagmite_ids = subterrane.register_stalagmite_nodes("dfcaverns:dry_stal", {
description = S("Dry Dripstone"),
_doc_items_longdesc = dfcaverns.doc.dripstone_desc,
_doc_items_usagehelp = dfcaverns.doc.dripstone_usage,
tiles = {
"default_stone.png^[brighten",
},
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("dfcaverns:dry_flowstone", {
description = S("Dry Flowstone"),
_doc_items_longdesc = dfcaverns.doc.flowstone_desc,
_doc_items_usagehelp = dfcaverns.doc.flowstone_usage,
tiles = {"default_stone.png^[brighten"},
groups = {cracky = 3, stone = 1},
is_ground_content = true,
drop = 'default:cobble',
sounds = default.node_sound_stone_defaults(),
})
-----------------------------------------------
2018-05-25 03:37:12 +02:00
dfcaverns.wet_stalagmite_ids = subterrane.register_stalagmite_nodes("dfcaverns:wet_stal", {
description = S("Wet Dripstone"),
_doc_items_longdesc = dfcaverns.doc.dripstone_desc,
_doc_items_usagehelp = dfcaverns.doc.dripstone_usage,
tiles = {
"default_stone.png^[brighten^dfcaverns_dripstone_streaks.png",
},
groups = {cracky = 3, stone = 2, subterrane_wet_dripstone = 1},
sounds = default.node_sound_stone_defaults(),
}, "dfcaverns:dry_stal")
minetest.register_node("dfcaverns:wet_flowstone", {
description = S("Wet Flowstone"),
_doc_items_longdesc = dfcaverns.doc.flowstone_desc,
_doc_items_usagehelp = dfcaverns.doc.flowstone_usage,
tiles = {"default_stone.png^[brighten^dfcaverns_dripstone_streaks.png"},
groups = {cracky = 3, stone = 1, subterrane_wet_dripstone = 1},
is_ground_content = true,
drop = 'default:cobble',
sounds = default.node_sound_stone_defaults(),
})
-----------------------------------------------
2018-05-25 03:37:12 +02:00
dfcaverns.icicle_ids = subterrane.register_stalagmite_nodes("dfcaverns:icicle", {
description = S("Icicle"),
_doc_items_longdesc = dfcaverns.doc.icicle_desc,
_doc_items_usagehelp = dfcaverns.doc.icicle_usage,
tiles = {
"default_ice.png",
},
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 3},
sounds = default.node_sound_glass_defaults(),
})
if minetest.get_modpath("handholds") and handholds ~= nil and handholds.register_handholds_node ~= nil then
handholds.register_handholds_node("dfcaverns:dry_flowstone", "dfcaverns:dry_flowstone_handholds", {description = S("Dry Flowstone Handholds")})
handholds.register_handholds_node("dfcaverns:wet_flowstone", "dfcaverns:wet_flowstone_handholds", {description = S("Wet Flowstone Handholds")})
end