From 1818ba023081d3093e2a9b1925e184d638f1d944 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Fri, 18 May 2018 01:43:56 -0600 Subject: [PATCH] add giant mese stalactites to lava sea --- biomes/lava_sea.lua | 10 +++ .../flowstone_nodes.lua | 0 features/glow_crystals.lua | 24 +++++++ glow_water.lua => features/glow_water.lua | 0 glow_worms.lua => features/glow_worms.lua | 0 ground_cover.lua => features/ground_cover.lua | 0 init.lua | 9 +-- locale/it.po | 67 +++++++++++++----- locale/template.pot | 67 +++++++++++++----- textures/dfcaverns_glow_mese.png | Bin 0 -> 330 bytes textures/license.txt | 3 + 11 files changed, 142 insertions(+), 38 deletions(-) rename flowstone_nodes.lua => features/flowstone_nodes.lua (100%) create mode 100644 features/glow_crystals.lua rename glow_water.lua => features/glow_water.lua (100%) rename glow_worms.lua => features/glow_worms.lua (100%) rename ground_cover.lua => features/ground_cover.lua (100%) create mode 100644 textures/dfcaverns_glow_mese.png diff --git a/biomes/lava_sea.lua b/biomes/lava_sea.lua index 5b10fe3..0565b7e 100644 --- a/biomes/lava_sea.lua +++ b/biomes/lava_sea.lua @@ -5,15 +5,25 @@ local c_cobble = minetest.get_content_id("default:cobble") local c_dirt = minetest.get_content_id("default:dirt") local c_sand = minetest.get_content_id("default:sand") local c_lava = minetest.get_content_id("default:lava_source") +local c_meseore = minetest.get_content_id("default:stone_with_mese") +local c_mesecry = minetest.get_content_id("dfcaverns:glow_mese") ------------------------------------------------------------------------------------------- +local lava_ceiling = function(area, data, ai, vi, bi) + if math.random() < 0.005 then + subterrane:giant_stalactite(ai, area, data, 6, 13, c_meseore, c_meseore, c_mesecry) + end +end + + local lava_sea_biome_def = { name = "dfcaverns_lava_sea", y_min = dfcaverns.config.lava_sea_min, y_max = dfcaverns.config.lava_sea_max, heat_point = 50, humidity_point = 50, + _subterrane_ceiling_decor = lava_ceiling, } minetest.register_biome(lava_sea_biome_def) diff --git a/flowstone_nodes.lua b/features/flowstone_nodes.lua similarity index 100% rename from flowstone_nodes.lua rename to features/flowstone_nodes.lua diff --git a/features/glow_crystals.lua b/features/glow_crystals.lua new file mode 100644 index 0000000..8e2e0eb --- /dev/null +++ b/features/glow_crystals.lua @@ -0,0 +1,24 @@ +-- internationalization boilerplate +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + +--glowing mese crystal blocks +minetest.register_node("dfcaverns:glow_mese", { + description = S("Flawless Mese Block"), + tiles = {"dfcaverns_glow_mese.png"}, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_glass_defaults(), + light_source = 13, + paramtype = "light", + use_texture_alpha = true, + drawtype = "glasslike", + sunlight_propagates = true, +}) + +minetest.register_craft({ + output = 'default:mese_crystal 12', + recipe = { + {'dfcaverns:glow_mese'}, + } +}) \ No newline at end of file diff --git a/glow_water.lua b/features/glow_water.lua similarity index 100% rename from glow_water.lua rename to features/glow_water.lua diff --git a/glow_worms.lua b/features/glow_worms.lua similarity index 100% rename from glow_worms.lua rename to features/glow_worms.lua diff --git a/ground_cover.lua b/features/ground_cover.lua similarity index 100% rename from ground_cover.lua rename to features/ground_cover.lua diff --git a/init.lua b/init.lua index 0ae8b60..436f293 100644 --- a/init.lua +++ b/init.lua @@ -7,10 +7,11 @@ local modpath = minetest.get_modpath(minetest.get_current_modname()) dofile(modpath.."/config.lua") dofile(modpath.."/doc.lua") -dofile(modpath.."/ground_cover.lua") -dofile(modpath.."/glow_worms.lua") -dofile(modpath.."/flowstone_nodes.lua") -dofile(modpath.."/glow_water.lua") +dofile(modpath.."/features/ground_cover.lua") +dofile(modpath.."/features/glow_worms.lua") +dofile(modpath.."/features/flowstone_nodes.lua") +dofile(modpath.."/features/glow_water.lua") +dofile(modpath.."/features/glow_crystals.lua") -- Plants dofile(modpath.."/plants.lua") -- general functions diff --git a/locale/it.po b/locale/it.po index a10dcb2..9c818ab 100644 --- a/locale/it.po +++ b/locale/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: dfcaverns module's Italian locale\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-04-19 19:58-0600\n" +"POT-Creation-Date: 2018-05-18 01:34-0600\n" "PO-Revision-Date: 2017-08-17 23:01+0100\n" "Last-Translator: H4mlet \n" "Language-Team: ITALIANO\n" @@ -366,18 +366,6 @@ msgid "" "material." msgstr "" -#: glow_worms.lua:6 -msgid "Glow Worms" -msgstr "Vermi luminosi" - -#: ground_cover.lua:11 -msgid "Dirt With Cave Moss" -msgstr "Terra con muschio di caverna" - -#: ground_cover.lua:52 -msgid "Cobblestone With Floor Fungus" -msgstr "Ciottoli con funghi del terreno" - #: plants.lua:10 msgid "Dead Fungus" msgstr "Fungo morto" @@ -386,6 +374,51 @@ msgstr "Fungo morto" msgid "Cavern Fungi" msgstr "Funghi di caverna" +#: features\flowstone_nodes.lua:19 +#: features\flowstone_nodes.lua:39 +msgid "Dry Dripstone" +msgstr "" + +#: features\flowstone_nodes.lua:28 +msgid "Dry Flowstone" +msgstr "" + +#: features\flowstone_nodes.lua:49 +msgid "Wet Flowstone" +msgstr "" + +#: features\flowstone_nodes.lua:60 +msgid "Icicle" +msgstr "" + +#: features\glow_crystals.lua:7 +msgid "Flawless Mese Block" +msgstr "" + +#: features\glow_water.lua:6 +msgid "Mese Water" +msgstr "" + +#: features\glow_water.lua:55 +msgid "Flowing Mese Water" +msgstr "" + +#: features\glow_water.lua:160 +msgid "Glow Water Bucket" +msgstr "" + +#: features\glow_worms.lua:6 +msgid "Glow Worms" +msgstr "Vermi luminosi" + +#: features\ground_cover.lua:11 +msgid "Dirt With Cave Moss" +msgstr "Terra con muschio di caverna" + +#: features\ground_cover.lua:52 +msgid "Cobblestone With Floor Fungus" +msgstr "Ciottoli con funghi del terreno" + #: plants\cave_wheat.lua:10 #: plants\cave_wheat.lua:69 msgid "Cave Wheat" @@ -661,12 +694,12 @@ msgstr "Tubo di galleria" msgid "Tunnel Tube Plies" msgstr "Strati di tubo di galleria" -#: trees\tunnel_tube.lua:79 -#: trees\tunnel_tube.lua:135 -#: trees\tunnel_tube.lua:157 +#: trees\tunnel_tube.lua:82 +#: trees\tunnel_tube.lua:138 +#: trees\tunnel_tube.lua:158 msgid "Tunnel Tube Fruiting Body" msgstr "Corpo fruttifero del tubo di galleria" -#: trees\tunnel_tube.lua:187 +#: trees\tunnel_tube.lua:189 msgid "Tunnel Tube Spawn" msgstr "Prole di tubo di galleria" diff --git a/locale/template.pot b/locale/template.pot index a85a65d..97d5dfb 100644 --- a/locale/template.pot +++ b/locale/template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-04-19 19:58-0600\n" +"POT-Creation-Date: 2018-05-18 01:34-0600\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -365,18 +365,6 @@ msgid "" "material." msgstr "" -#: glow_worms.lua:6 -msgid "Glow Worms" -msgstr "" - -#: ground_cover.lua:11 -msgid "Dirt With Cave Moss" -msgstr "" - -#: ground_cover.lua:52 -msgid "Cobblestone With Floor Fungus" -msgstr "" - #: plants.lua:10 msgid "Dead Fungus" msgstr "" @@ -385,6 +373,51 @@ msgstr "" msgid "Cavern Fungi" msgstr "" +#: features\flowstone_nodes.lua:19 +#: features\flowstone_nodes.lua:39 +msgid "Dry Dripstone" +msgstr "" + +#: features\flowstone_nodes.lua:28 +msgid "Dry Flowstone" +msgstr "" + +#: features\flowstone_nodes.lua:49 +msgid "Wet Flowstone" +msgstr "" + +#: features\flowstone_nodes.lua:60 +msgid "Icicle" +msgstr "" + +#: features\glow_crystals.lua:7 +msgid "Flawless Mese Block" +msgstr "" + +#: features\glow_water.lua:6 +msgid "Mese Water" +msgstr "" + +#: features\glow_water.lua:55 +msgid "Flowing Mese Water" +msgstr "" + +#: features\glow_water.lua:160 +msgid "Glow Water Bucket" +msgstr "" + +#: features\glow_worms.lua:6 +msgid "Glow Worms" +msgstr "" + +#: features\ground_cover.lua:11 +msgid "Dirt With Cave Moss" +msgstr "" + +#: features\ground_cover.lua:52 +msgid "Cobblestone With Floor Fungus" +msgstr "" + #: plants\cave_wheat.lua:10 #: plants\cave_wheat.lua:69 msgid "Cave Wheat" @@ -660,12 +693,12 @@ msgstr "" msgid "Tunnel Tube Plies" msgstr "" -#: trees\tunnel_tube.lua:79 -#: trees\tunnel_tube.lua:135 -#: trees\tunnel_tube.lua:157 +#: trees\tunnel_tube.lua:82 +#: trees\tunnel_tube.lua:138 +#: trees\tunnel_tube.lua:158 msgid "Tunnel Tube Fruiting Body" msgstr "" -#: trees\tunnel_tube.lua:187 +#: trees\tunnel_tube.lua:189 msgid "Tunnel Tube Spawn" msgstr "" diff --git a/textures/dfcaverns_glow_mese.png b/textures/dfcaverns_glow_mese.png new file mode 100644 index 0000000000000000000000000000000000000000..ed433fede4e16cc143a3b33996857ab0e8fdd93b GIT binary patch literal 330 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Uw}`DYf2nrWieBC3)7N0%s@tU zDTqC>lWFlRrfqAOXHR0Eak7A<24>)2YQk zfZ^avx#ArPIYLu^{O^wvb>MpO`ggkcV}Xkyr?1y|1zc4Q)%bqrh%deG9j3+{O{rsl2dv>%$4c zhxoQs+ur!Rhi9#aWOjC_^9rY(&lhK0*x0sh<39)HT}o3v?l%6*o)pLysl=$Y3Ftls MPgg&ebxsLQ06DLYpa1{> literal 0 HcmV?d00001 diff --git a/textures/license.txt b/textures/license.txt index 85540e7..0779d0b 100644 --- a/textures/license.txt +++ b/textures/license.txt @@ -21,3 +21,6 @@ dfcaverns_bread - derived from farming dfcaverns_pig_tail_thread - copied from farming dfcaverns_sugar - derived from farming dfcaverns_spore_tree_spores, dfcaverns_cave_wheat_seed, dfcaverns_pig_tail_seed - all derived from farming wheat seed + + +dfcaverns_glow_mese - from caverealms glow_mese \ No newline at end of file