diff --git a/init.lua b/init.lua index 3a8facf..d8a6036 100644 --- a/init.lua +++ b/init.lua @@ -14,6 +14,7 @@ dofile(modpath.."/nodes.lua") dofile(modpath.."/functions.lua") --function definitions dofile(modpath.."/features.lua") dofile(modpath.."/player_spawn.lua") +dofile(modpath.."/legacy.lua") -- contains old node definitions, will be removed at some point in the future. subterrane.disable_mapgen_caverns = function() local mg_name = minetest.get_mapgen_setting("mg_name") diff --git a/legacy.lua b/legacy.lua new file mode 100644 index 0000000..46fb528 --- /dev/null +++ b/legacy.lua @@ -0,0 +1,44 @@ +--These nodes used to be defined by subterrane but were pulled due to not wanting to force all mods that use it to create these nodes. +--For backwards compatibility they can still be defined here, however. + +if minetest.setting_getbool("subterrane_enable_legacy_dripstone") then + +subterrane.register_stalagmite_nodes("subterrane:dry_stal", { + description = "Dry Dripstone", + tiles = { + "default_stone.png^[brighten", + }, + groups = {cracky = 3, stone = 2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("subterrane:dry_flowstone", { + description = "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("subterrane:wet_stal", { + description = "Wet Dripstone", + tiles = { + "default_stone.png^[brighten^subterrane_dripstone_streaks.png", + }, + groups = {cracky = 3, stone = 2, subterrane_wet_dripstone = 1}, + sounds = default.node_sound_stone_defaults(), +}, "subterrane:dry_stal") + +minetest.register_node("subterrane:wet_flowstone", { + description = "Wet Flowstone", + tiles = {"default_stone.png^[brighten^subterrane_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(), +}) + +end \ No newline at end of file diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 0000000..114022b --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1 @@ +subterrane_enable_legacy_dripstone (Adds old dripstone node definitions) bool false \ No newline at end of file diff --git a/textures/subterrane_dripstone_streaks.png b/textures/subterrane_dripstone_streaks.png new file mode 100644 index 0000000..1e3002a Binary files /dev/null and b/textures/subterrane_dripstone_streaks.png differ