Add liquid mud

master
migdyn 2019-01-23 13:56:35 +00:00
parent 305420165f
commit 916be4a05b
8 changed files with 148 additions and 4 deletions

View File

@ -221,7 +221,7 @@ minetest.register_node("main:water_source", {
is_ground_content = false,
--Properties
liquid_range = 10,
liquid_range = 14,
liquid_viscosity = 0.1,
drowning = 1,
liquidtype = "source",
@ -274,7 +274,7 @@ minetest.register_node("main:water_flowing", {
is_ground_content = false,
--Properties
liquid_range = 10,
liquid_range = 14,
liquid_viscosity = 0.1,
drowning = 1,
liquidtype = "flowing",
@ -311,7 +311,7 @@ minetest.register_node("main:toxicwater_source", {
is_ground_content = false,
--Properties
liquid_range = 10,
liquid_range = 14,
liquid_viscosity = 0.1,
drowning = 1,
liquidtype = "source",
@ -365,7 +365,7 @@ minetest.register_node("main:toxicwater_flowing", {
is_ground_content = false,
--Properties
liquid_range = 10,
liquid_range = 14,
liquid_viscosity = 0.1,
drowning = 1,
liquidtype = "flowing",
@ -374,3 +374,147 @@ minetest.register_node("main:toxicwater_flowing", {
damage_per_second = 4 * 2,
groups = {liquid = 3, water = 1},
})
--Muddy water
minetest.register_node("main:muddywater_source", {
description = "Muddy Water Source",
drawtype = "liquid",
paramtype = "light",
tiles = {name = "main_muddywater.png"},
alpha = 200,
post_effect_color = {a = 190, r = 80, g = 60, b = 166},
--Behavior
walkable = false,
pointable = false,
buildable_to = true,
diggable = false,
is_ground_content = false,
--Properties
liquid_range = 14,
liquid_viscosity = 2,
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "main:muddywater_flowing",
liquid_alternative_source = "main:muddywater_source",
groups = {liquid = 1, water = 1},
})
minetest.register_node("main:muddywater_flowing", {
description = "Flowing Muddy Water",
drawtype = "flowingliquid",
paramtype = "light",
tiles = {name = "main_muddywater.png"},
special_tiles = {
{
name = "main_muddywater.png",
animation = {type = "vertical_frames", aspect_w = 16,
aspect_h = 16, length = 2.0},
backface_culling = true,
},
{
name = "main_muddywater.png",
animation = {type = "vertical_frames", aspect_w = 16,
aspect_h = 16, length = 2.0},
backface_culling = false,
}
},
alpha = 200,
post_effect_color = {a = 190, r = 80, g = 60, b = 166},
--Behavior
walkable = false,
pointable = false,
buildable_to = true,
diggable = false,
is_ground_content = false,
--Properties
liquid_range = 14,
liquid_viscosity = 2,
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "main:muddywater_flowing",
liquid_alternative_source = "main:muddywater_source",
groups = {liquid = 1, water = 1},
})
--Liquid mud
minetest.register_node("main:mud_source", {
description = "Liquid Mud Source",
drawtype = "liquid",
paramtype = "light",
tiles = {name = "main_mud_source.png"},
post_effect_color = {r = 60, g = 40, b = 10},
--Behavior
walkable = false,
pointable = false,
buildable_to = true,
diggable = false,
is_ground_content = false,
--Properties
liquid_range = 6,
liquid_viscosity = 20,
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "main:mud_flowing",
liquid_alternative_source = "main:mud_source",
groups = {liquid = 3},
})
minetest.register_node("main:mud_flowing", {
description = "Flowing Liquid Mud",
drawtype = "flowingliquid",
paramtype = "light",
tiles = {name = "main_mud_flowing.png"},
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 1.0
},
special_tiles = {
{
name = "main_mud_flowing.png",
animation = {type = "vertical_frames", aspect_w = 16,
aspect_h = 16, length = 1.0},
backface_culling = true,
},
{
name = "main_mud_flowing.png",
animation = {type = "vertical_frames", aspect_w = 16,
aspect_h = 16, length = 1.0},
backface_culling = false,
}
},
post_effect_color = {r = 60, g = 40, b = 10},
--Behavior
walkable = false,
pointable = false,
buildable_to = true,
diggable = false,
is_ground_content = false,
--Properties
liquid_range = 6,
liquid_viscosity = 20,
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "main:mud_flowing",
liquid_alternative_source = "main:mud_source",
groups = {liquid = 3},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

After

Width:  |  Height:  |  Size: 614 B