mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-11-09 20:11:47 +01:00
85 lines
3.5 KiB
Lua
85 lines
3.5 KiB
Lua
|
-- 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")
|
||
|
|
||
|
-----------------------------------------------
|
||
|
|
||
|
subterrane.register_stalagmite_nodes("dfcaverns:dry_stal", {
|
||
|
description = S("Dry Dripstone"),
|
||
|
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"),
|
||
|
tiles = {"default_stone.png^[brighten"},
|
||
|
groups = {cracky = 3, stone = 1},
|
||
|
is_ground_content = true,
|
||
|
drop = 'default:cobble',
|
||
|
sounds = default.node_sound_stone_defaults(),
|
||
|
})
|
||
|
|
||
|
-----------------------------------------------
|
||
|
|
||
|
subterrane.register_stalagmite_nodes("dfcaverns:wet_stal", {
|
||
|
description = S("Dry Dripstone"),
|
||
|
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"),
|
||
|
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(),
|
||
|
})
|
||
|
|
||
|
-----------------------------------------------
|
||
|
|
||
|
subterrane.register_stalagmite_nodes("dfcaverns:icicle", {
|
||
|
description = S("Icicle"),
|
||
|
tiles = {
|
||
|
"default_ice.png",
|
||
|
},
|
||
|
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1, slippery = 3},
|
||
|
sounds = default.node_sound_glass_defaults(),
|
||
|
})
|
||
|
|
||
|
|
||
|
|
||
|
local c_dry_stal_1 = minetest.get_content_id("dfcaverns:dry_stal_1") -- thinnest
|
||
|
local c_dry_stal_2 = minetest.get_content_id("dfcaverns:dry_stal_2")
|
||
|
local c_dry_stal_3 = minetest.get_content_id("dfcaverns:dry_stal_3")
|
||
|
local c_dry_stal_4 = minetest.get_content_id("dfcaverns:dry_stal_4") -- thickest
|
||
|
dfcaverns.dry_stalagmite_ids = {c_dry_stal_1, c_dry_stal_2, c_dry_stal_3, c_dry_stal_4}
|
||
|
local c_wet_stal_1 = minetest.get_content_id("dfcaverns:wet_stal_1") -- thinnest
|
||
|
local c_wet_stal_2 = minetest.get_content_id("dfcaverns:wet_stal_2")
|
||
|
local c_wet_stal_3 = minetest.get_content_id("dfcaverns:wet_stal_3")
|
||
|
local c_wet_stal_4 = minetest.get_content_id("dfcaverns:wet_stal_4") -- thickest
|
||
|
dfcaverns.wet_stalagmite_ids = {c_wet_stal_1, c_wet_stal_2, c_wet_stal_3, c_wet_stal_4}
|
||
|
local c_icicle_1 = minetest.get_content_id("dfcaverns:icicle_1") -- thinnest
|
||
|
local c_icicle_2 = minetest.get_content_id("dfcaverns:icicle_2")
|
||
|
local c_icicle_3 = minetest.get_content_id("dfcaverns:icicle_3")
|
||
|
local c_icicle_4 = minetest.get_content_id("dfcaverns:icicle_4") -- thickest
|
||
|
dfcaverns.icicle_ids = {c_icicle_1, c_icicle_2, c_icicle_3, c_icicle_4}
|