From 4aaeaabc5f7d25322ee8226d4da01fc17f671c76 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Wed, 23 May 2018 23:54:23 -0600 Subject: [PATCH] adding the option to define the old dripstone nodes --- init.lua | 1 + legacy.lua | 44 ++++++++++++++++++++++ settingtypes.txt | 1 + textures/subterrane_dripstone_streaks.png | Bin 0 -> 465 bytes 4 files changed, 46 insertions(+) create mode 100644 legacy.lua create mode 100644 settingtypes.txt create mode 100644 textures/subterrane_dripstone_streaks.png 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 0000000000000000000000000000000000000000..1e3002a670784155ae177aaec75a78d3f54c1f04 GIT binary patch literal 465 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPtv#^MWfXz3Z-9RDP%#er@=ltB<)VvZPmw~~#C^fMp zHASI3vm`^o-P1Q9MK6_|fq~J~)5S5w;&kh!{eB^V0&E}d+wRu6C=j;b0*8n|EvNPU z=C*scj;I^ha7~@Nhb`;~pRa?EPl@R#^LG&z((2FBzGtUBn`3OebsZH=>PRIO=8A%PX^@VTbm;H!&WjHTs=RIX6XK7q8gXcYe8Ypz{-}bPzWD2} zCAt?XL*7-_UJ`rphe7>w&84c6cU|Y&cV>M(`TNym`)SLX*?SgU0!12wr>mdKI;Vst E0Bl3Pi2wiq literal 0 HcmV?d00001