1
0
Fork 0
VoxeLibre/mods/ITEMS/mcl_nether/lava.lua

41 lines
1.6 KiB
Lua
Raw Normal View History

2017-08-02 01:17:29 +02:00
-- Lava in the Nether
local S = minetest.get_translator("mcl_nether")
local N = function(s) return s end
local msg = {
N("@1 has become one with the lava."),
N("@1 has been consumed by the lava."),
}
2017-08-02 01:17:29 +02:00
-- 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 = S("Nether Lava Source")
2017-08-02 01:17:29 +02:00
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"
lava_src_def._mcl_node_death_message = msg,
2017-08-02 01:17:29 +02:00
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 = S("Flowing Nether Lava")
2017-08-02 01:17:29 +02:00
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"
lava_flow_def._mcl_node_death_message = msg,
2017-08-02 01:17:29 +02:00
minetest.register_node("mcl_nether:nether_lava_flowing", lava_flow_def)
2017-08-04 16:37:24 +02:00
-- Add entry aliases for the Help
if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", "mcl_core:lava_source", "nodes", "mcl_nether:nether_lava_source")
doc.add_entry_alias("nodes", "mcl_core:lava_source", "nodes", "mcl_nether:nether_lava_flowing")
end