Add coloured river water
This commit is contained in:
parent
2d54873963
commit
2447afe5d9
@ -6,7 +6,7 @@ assert(minetest.get_mapgen_setting("mg_name") ~= "v6", "Please choose another Ma
|
|||||||
-- mapgen aliases
|
-- mapgen aliases
|
||||||
minetest.register_alias("mapgen_stone", "abri:stone_black")
|
minetest.register_alias("mapgen_stone", "abri:stone_black")
|
||||||
minetest.register_alias("mapgen_water_source", "abri:blue_water_source")
|
minetest.register_alias("mapgen_water_source", "abri:blue_water_source")
|
||||||
minetest.register_alias("mapgen_river_water_source", "abri:blue_water_source")
|
minetest.register_alias("mapgen_river_water_source", "abri:blue_river_water_source")
|
||||||
|
|
||||||
|
|
||||||
-- register biomes
|
-- register biomes
|
||||||
@ -34,7 +34,7 @@ for i in ipairs(col_list) do
|
|||||||
-- node_water_top = "default:ice",
|
-- node_water_top = "default:ice",
|
||||||
-- depth_water_top = 1,
|
-- depth_water_top = 1,
|
||||||
node_water = "abri:"..col.."_water_source",
|
node_water = "abri:"..col.."_water_source",
|
||||||
-- node_river_water = "",
|
node_river_water = "abri:"..col.."_river_water_source",
|
||||||
node_riverbed = "abri:stone",
|
node_riverbed = "abri:stone",
|
||||||
depth_riverbed = 2,
|
depth_riverbed = 2,
|
||||||
y_min = -30000,
|
y_min = -30000,
|
||||||
|
@ -109,4 +109,98 @@ for i in ipairs(source_list) do
|
|||||||
not_in_creative_inventory = 1, cools_lava = 1},
|
not_in_creative_inventory = 1, cools_lava = 1},
|
||||||
-- sounds = default.node_sound_water_defaults(),
|
-- sounds = default.node_sound_water_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_node("abri:"..name.."_river_water_source", {
|
||||||
|
description = description.." Water Source",
|
||||||
|
drawtype = "liquid",
|
||||||
|
tiles = {
|
||||||
|
{
|
||||||
|
name = "abri_water_source_animated.png^[colorize:#"..colour..":70",
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 2.0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
name = "abri_water_source_animated.png^[colorize:#"..colour..":70",
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 2.0,
|
||||||
|
},
|
||||||
|
backface_culling = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
alpha = 160,
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
drop = "",
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "abri:"..name.."_water_flowing",
|
||||||
|
liquid_alternative_source = "abri:"..name.."_water_source",
|
||||||
|
liquid_viscosity = 1,
|
||||||
|
post_effect_color = {a = 50, r = red, g = green, b = blue},
|
||||||
|
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
|
||||||
|
liquid_renewable = false,
|
||||||
|
-- sounds = default.node_sound_water_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("abri:"..name.."_river_water_flowing", {
|
||||||
|
description = description.." Flowing Water",
|
||||||
|
drawtype = "flowingliquid",
|
||||||
|
tiles = {"abri_water.png^[colorize:#"..colour},
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
name = "abri_water_flowing_animated.png^[colorize:#"..colour..":70",
|
||||||
|
backface_culling = false,
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 0.8,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "abri_water_flowing_animated.png^[colorize:#"..colour..":70",
|
||||||
|
backface_culling = true,
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 0.8,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
alpha = 160,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "flowingliquid",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
drop = "",
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "flowing",
|
||||||
|
liquid_alternative_flowing = "abri:"..name.."_water_flowing",
|
||||||
|
liquid_alternative_source = "abri:"..name.."_water_source",
|
||||||
|
liquid_viscosity = 1,
|
||||||
|
post_effect_color = {a = 50, r = red, g = green, b = blue},
|
||||||
|
groups = {water = 3, liquid = 3, puts_out_fire = 1,
|
||||||
|
not_in_creative_inventory = 1, cools_lava = 1},
|
||||||
|
liquid_renewable = false,
|
||||||
|
-- sounds = default.node_sound_water_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user