1
0
Fork 0
MineClone2/mods/ITEMS/mclx_core/init.lua

37 lines
1.5 KiB
Lua
Raw Normal View History

local S = minetest.get_translator(minetest.get_current_modname())
2017-11-30 14:16:04 +01:00
-- Liquids: River Water
local source = table.copy(minetest.registered_nodes["mcl_core:water_source"])
source.description = S("River Water Source")
2017-11-30 14:16:04 +01:00
source.liquid_range = 2
2022-08-12 15:11:17 +02:00
source.waving = 3
2023-02-18 09:27:22 +01:00
source.color = "#0084FF"
source.paramtype2 = nil
source.palette = nil
2017-11-30 14:16:04 +01:00
source.liquid_alternative_flowing = "mclx_core:river_water_flowing"
source.liquid_alternative_source = "mclx_core:river_water_source"
2017-11-30 15:01:33 +01:00
source.liquid_renewable = false
source._doc_items_longdesc = S("River water has the same properties as water, but has a reduced flowing distance and is not renewable.")
source._doc_items_entry_name = S("River Water")
2017-11-30 14:16:04 +01:00
-- Auto-expose entry only in valleys mapgen
source._doc_items_hidden = minetest.get_mapgen_setting("mg_name") ~= "valleys"
2023-02-18 09:27:22 +01:00
source.post_effect_color = {a=60, r=0, g=132, b=255}
2017-11-30 14:16:04 +01:00
local flowing = table.copy(minetest.registered_nodes["mcl_core:water_flowing"])
flowing.description = S("Flowing River Water")
2017-11-30 14:16:04 +01:00
flowing.liquid_range = 2
2022-08-12 15:11:17 +02:00
flowing.waving = 3
2023-02-18 09:27:22 +01:00
flowing.color = "#0084FF"
2017-11-30 14:16:04 +01:00
flowing.liquid_alternative_flowing = "mclx_core:river_water_flowing"
flowing.liquid_alternative_source = "mclx_core:river_water_source"
2017-11-30 15:01:33 +01:00
flowing.liquid_renewable = false
2023-02-18 09:27:22 +01:00
flowing.post_effect_color = {a=60, r=0, g=132, b=255}
2017-11-30 14:16:04 +01:00
minetest.register_node("mclx_core:river_water_source", source)
minetest.register_node("mclx_core:river_water_flowing", flowing)
if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", "mclx_core:river_water_source", "nodes", "mclx_core:river_water_flowing")
end