From 54c08aa94a181fa45215372902db23a1151bd031 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 2 Aug 2017 01:17:29 +0200 Subject: [PATCH] Add Nether lava --- mods/ITEMS/mcl_nether/depends.txt | 1 + mods/ITEMS/mcl_nether/init.lua | 1 + mods/ITEMS/mcl_nether/lava.lua | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 mods/ITEMS/mcl_nether/lava.lua diff --git a/mods/ITEMS/mcl_nether/depends.txt b/mods/ITEMS/mcl_nether/depends.txt index c5d5193f73..23488aae08 100644 --- a/mods/ITEMS/mcl_nether/depends.txt +++ b/mods/ITEMS/mcl_nether/depends.txt @@ -1,3 +1,4 @@ +mcl_core mcl_sounds mcl_util walkover diff --git a/mods/ITEMS/mcl_nether/init.lua b/mods/ITEMS/mcl_nether/init.lua index 7de4d46929..2ca9d94402 100644 --- a/mods/ITEMS/mcl_nether/init.lua +++ b/mods/ITEMS/mcl_nether/init.lua @@ -273,3 +273,4 @@ minetest.register_craft({ }) dofile(minetest.get_modpath(minetest.get_current_modname()).."/nether_wart.lua") +dofile(minetest.get_modpath(minetest.get_current_modname()).."/lava.lua") diff --git a/mods/ITEMS/mcl_nether/lava.lua b/mods/ITEMS/mcl_nether/lava.lua new file mode 100644 index 0000000000..f22dcec13f --- /dev/null +++ b/mods/ITEMS/mcl_nether/lava.lua @@ -0,0 +1,24 @@ +-- Lava in the Nether + + +-- TODO: Increase flow speed. This could be done by reducing viscosity, +-- but this would also allow players to swim faster in lava. + +local lava_src_def = table.copy(minetest.registered_nodes["mcl_core:lava_source"]) +lava_src_def.description = "Still Nether Lava" +lava_src_def._doc_items_create_entry = false +lava_src_def._doc_items_entry_name = nil +lava_src_def._doc_items_longdesc = nil +lava_src_def._doc_items_usagehelp = nil +lava_src_def.liquid_range = 7 +lava_src_def.liquid_alternative_source = "mcl_nether:nether_lava_source" +lava_src_def.liquid_alternative_flowing = "mcl_nether:nether_lava_flowing" +minetest.register_node("mcl_nether:nether_lava_source", lava_src_def) + +local lava_flow_def = table.copy(minetest.registered_nodes["mcl_core:lava_flowing"]) +lava_flow_def.description = "Flowing Nether Lava" +lava_flow_def._doc_items_create_entry = false +lava_flow_def.liquid_range = 7 +lava_flow_def.liquid_alternative_flowing = "mcl_nether:nether_lava_flowing" +lava_flow_def.liquid_alternative_source = "mcl_nether:nether_lava_source" +minetest.register_node("mcl_nether:nether_lava_flowing", lava_flow_def)