Code: Select all
core.register_node('mossworld:sludge_source', {
description = 'Sludge',
drawtype = "liquid",
tiles = { 'mossworld_sludge.png' },
special_tiles = {
{
name = "mossworld_sludge_source_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0,
},
name = "mossworld_sludge_source_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0,
},
},
},
groups = { oddly_breakable_by_hand = 3 },
is_ground_content = false,
walkable = false,
pointable = false,
drop = "",
paramtype = "light",
liquid_viscocity = 7,
liquidtype = "source",
liquid_range = 2,
liquid_move_physics = true,
drowning = 1,
waving = 3,
groups = {sludge = 3, liquid = 2},
post_effect_color = {a = 200,"#5d4336"},
liquid_alternative_flowing = "mossworld:sludge_flowing",
liquid_alternative_source = "mossworld:sludge_source"
})
core.register_node('mossworld:sludge_flowing', {
description = 'Sludge',
drawtype = "flowingliquid",
tiles = { 'mossworld_sludge.png' },
special_tiles = {
{
name = "mossworld_sludge_source_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.3,
},
name = "mossworld_sludge_source_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.3,
}
},
},
groups = { oddly_breakable_by_hand = 3 },
is_ground_content = false,
walkable = false,
pointable = false,
drop = "",
liquid_viscocity = 7,
liquidtype = "flowing",
liquid_range = 2,
paramtype2 = "flowingliquid",
liquid_move_physics = true,
drowning = 1,
waving = 3,
groups = {sludge = 3, liquid = 2},
post_effect_color = {a = 200,"#5d4336"},
liquid_alternative_flowing = "mossworld:sludge_flowing",
liquid_alternative_source = "mossworld:sludge_source"
})