2019-04-17 18:16:36 +02:00
local S = lib_materials.intllib
--TO BE REVIEWED _MGS-20180220
if minetest.get_modpath ( " default " ) then
local waterflow = 3
minetest.override_item ( " default:river_water_source " , { liquid_range = waterflow } )
minetest.override_item ( " default:river_water_flowing " , { liquid_range = waterflow } )
minetest.override_item ( " default:river_water_source " , { is_ground_content = true } )
minetest.override_item ( " default:river_water_flowing " , { is_ground_content = true } )
minetest.override_item ( " default:water_source " , { is_ground_content = true } )
minetest.override_item ( " default:water_flowing " , { is_ground_content = true } )
if false then
minetest.override_item ( " default:river_water_source " , { light_source = 14 } )
minetest.override_item ( " default:river_water_flowing " , { light_source = 14 } )
minetest.override_item ( " default:water_source " , { light_source = 14 } )
minetest.override_item ( " default:water_flowing " , { light_source = 14 } )
end
if false then
local newnode = lib_materials.clone_node ( " default:water_source " )
newnode.description = " Water "
newnode.alpha = 0
newnode.liquid_alternative_source = " lib_materials:water_source "
newnode.liquid_alternative_flowing = " lib_materials:water_flowing "
minetest.register_node ( " lib_materials:water_source " , newnode )
newnode = lib_materials.clone_node ( " default:water_flowing " )
newnode.description = " Water "
newnode.alpha = 0
newnode.liquid_alternative_source = " lib_materials:water_source "
newnode.liquid_alternative_flowing = " lib_materials:water_flowing "
minetest.register_node ( " lib_materials:water_flowing " , newnode )
end
end
--
-- Liquids
--
--Dev Liquid
minetest.register_node ( " lib_materials:fluid_liquid_source " , {
description = S ( " Liquid Source " ) ,
drawtype = " liquid " ,
tiles = {
{
name = " default_water_source_animated.png^[colorize:#1F1F1F:alpha " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style lava source material (mostly unused)
{
name = " default_water_source_animated.png^[colorize:#1F1F1F:alpha " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
backface_culling = false ,
} ,
} ,
paramtype = " light " ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " source " ,
liquid_alternative_flowing = " lib_materials:fluid_liquid_flowing " ,
liquid_alternative_source = " lib_materials:fluid_liquid_source " ,
liquid_viscosity = 7 ,
liquid_renewable = false ,
damage_per_second = 4 * 2 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
2019-04-19 21:33:56 +02:00
groups = { liquid = 3 , } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_liquid_flowing " , {
description = S ( " Flowing Liquid " ) ,
drawtype = " flowingliquid " ,
tiles = { " default_water.png^[colorize:#1F1F1F:alpha " } ,
special_tiles = {
{
name = " default_water_flowing_animated.png^[colorize:#1F1F1F:alpha " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
{
name = " default_water_flowing_animated.png^[colorize:#1F1F1F:alpha " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
} ,
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 = " lib_materials:fluid_liquid_flowing " ,
liquid_alternative_source = " lib_materials:fluid_liquid_source " ,
liquid_viscosity = 7 ,
liquid_renewable = false ,
damage_per_second = 4 * 2 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
2019-04-19 21:33:56 +02:00
groups = { liquid = 3 , not_in_creative_inventory = 1 } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
2019-06-13 21:20:42 +02:00
--Lava
minetest.register_node ( " lib_materials:lava_source " , {
description = " Lava Source " ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_lava_source_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
} ,
{
name = " lib_materials_fluid_lava_source_animated.png " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
} ,
} ,
paramtype = " light " ,
light_source = 13 ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " source " ,
liquid_alternative_flowing = " lib_materials:lava_flowing " ,
liquid_alternative_source = " lib_materials:lava_source " ,
liquid_viscosity = 7 ,
liquid_renewable = false ,
damage_per_second = 4 * 2 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
groups = { lava = 3 , liquid = 2 , igniter = 1 } ,
} )
minetest.register_node ( " lib_materials:lava_flowing " , {
description = " Flowing Lava " ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_lava.png " } ,
special_tiles = {
{
name = " lib_materials_fluid_lava_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
{
name = " lib_materials_fluid_lava_flowing_animated.png " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
} ,
paramtype = " light " ,
paramtype2 = " flowingliquid " ,
light_source = 12 ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " flowing " ,
liquid_alternative_flowing = " lib_materials:lava_flowing " ,
liquid_alternative_source = " lib_materials:lava_source " ,
liquid_viscosity = 7 ,
liquid_renewable = false ,
damage_per_second = 4 * 2 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
groups = { lava = 3 , liquid = 2 , igniter = 1 , not_in_creative_inventory = 1 } ,
} )
minetest.register_node ( " lib_materials:lava_cooling_source " , {
description = " Lava Cooling Source " ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_stone_cobble_default.png^(lib_materials_fluid_lava_source_animated.png^[mask:lib_materials_mask_cobble.png) " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
} ,
{
name = " lib_materials_stone_cobble_default.png^(lib_materials_fluid_lava_source_animated.png^[mask:lib_materials_mask_cobble.png) " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
} ,
} ,
paramtype = " light " ,
light_source = 10 ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " source " ,
liquid_alternative_flowing = " lib_materials:lava_cooling_flowing " ,
liquid_alternative_source = " lib_materials:lava_cooling_source " ,
liquid_viscosity = 97 ,
liquid_renewable = false ,
liquid_range = 1 ,
damage_per_second = 4 * 2 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
groups = { lava = 3 , liquid = 1 , igniter = 1 , crumbly = 3 } ,
} )
minetest.register_node ( " lib_materials:lava_cooling_flowing " , {
description = " Lava Cooling Flowing " ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_stone_cobble_default.png^(lib_materials_fluid_lava.png^[mask:lib_materials_mask_cobble.png) " } ,
special_tiles = {
{
name = " lib_materials_stone_cobble_default.png^(lib_materials_fluid_lava_flowing_animated.png^[mask:lib_materials_mask_cobble.png) " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
{
name = " lib_materials_stone_cobble_default.png^(lib_materials_fluid_lava_flowing_animated.png^[mask:lib_materials_mask_cobble.png) " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
} ,
paramtype = " light " ,
paramtype2 = " flowingliquid " ,
light_source = 8 ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " flowing " ,
liquid_alternative_flowing = " lib_materials:lava_cooling_flowing " ,
liquid_alternative_source = " lib_materials:lava_cooling_source " ,
liquid_viscosity = 7 ,
liquid_renewable = false ,
liquid_range = 3 ,
damage_per_second = 4 * 2 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
groups = { lava = 3 , liquid = 1 , igniter = 1 , crumbly = 3 , not_in_creative_inventory = 1 } ,
} )
2019-04-17 18:16:36 +02:00
--Water
minetest.register_node ( " lib_materials:fluid_water_source " , {
description = S ( " Water Source " ) ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_water_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style lava source material (mostly unused)
{
name = " lib_materials_fluid_water_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
backface_culling = false ,
} ,
} ,
paramtype = " light " ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " source " ,
liquid_alternative_flowing = " lib_materials:fluid_water_flowing " ,
liquid_alternative_source = " lib_materials:fluid_water_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 103 , r = 30 , g = 60 , b = 90 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 3 , cools_lava = 1 , puts_out_fire = 1 , } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_water_flowing " , {
description = S ( " Flowing Water " ) ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_water.png " } ,
special_tiles = {
{
name = " lib_materials_fluid_water_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
{
name = " lib_materials_fluid_water_flowing_animated.png " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
} ,
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 = " lib_materials:fluid_water_flowing " ,
liquid_alternative_source = " lib_materials:fluid_water_source " ,
liquid_viscosity = 1 ,
liquid_renewable = false ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 3 , cools_lava = 1 , puts_out_fire = 1 , not_in_creative_inventory = 1 } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
2019-06-13 21:20:42 +02:00
2019-04-17 18:16:36 +02:00
minetest.register_node ( " lib_materials:fluid_water_river_source " , {
description = S ( " River Water Source " ) ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_river_water_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style lava source material (mostly unused)
{
name = " lib_materials_fluid_river_water_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
backface_culling = false ,
} ,
} ,
paramtype = " light " ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " source " ,
liquid_alternative_flowing = " lib_materials:fluid_water_river_flowing " ,
liquid_alternative_source = " lib_materials:fluid_water_river_source " ,
liquid_viscosity = 7 ,
liquid_renewable = false ,
damage_per_second = 4 * 2 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 2 , cools_lava = 1 , puts_out_fire = 1 , } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_water_river_flowing " , {
description = S ( " Flowing River Water " ) ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_river_water.png " } ,
special_tiles = {
{
name = " lib_materials_fluid_river_water_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
{
name = " lib_materials_fluid_river_water_flowing_animated.png " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
} ,
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 = " lib_materials:fluid_water_river_flowing " ,
liquid_alternative_source = " lib_materials:fluid_water_river_source " ,
liquid_viscosity = 7 ,
liquid_renewable = false ,
damage_per_second = 4 * 2 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 2 , cools_lava = 1 , puts_out_fire = 1 , not_in_creative_inventory = 1 } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_water_dirty_source " , {
description = S ( " Dirty Water Source " ) ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_water_dirty_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 2.0 ,
} ,
} ,
} ,
special_tiles = {
{
name = " lib_materials_fluid_water_dirty_source_animated.png " ,
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 = " lib_materials:fluid_water_dirty_flowing " ,
liquid_alternative_source = " ,lib_materials:fluid_water_dirty_source " ,
liquid_viscosity = 2 ,
liquid_renewable = false ,
liquid_range = 2 ,
post_effect_color = { a = 103 , r = 30 , g = 76 , b = 90 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 3 , cools_lava = 1 , puts_out_fire = 1 , } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_water_dirty_flowing " , {
description = S ( " Flowing Dirty Water " ) ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_water_dirty_source " } ,
special_tiles = {
{
name = " lib_materials_fluid_water_dirty_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 2.0 ,
} ,
} ,
{
name = " lib_materials_fluid_water_dirty_flowing_animated.png " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 2.0 ,
} ,
} ,
} ,
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 = " lib_materials:fluid_water_dirty_flowing " ,
liquid_alternative_source = " lib_materials:fluid_water_dirty_source " ,
liquid_viscosity = 1 ,
liquid_renewable = false ,
liquid_range = 2 ,
post_effect_color = { a = 103 , r = 30 , g = 76 , b = 90 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 3 , cools_lava = 1 , puts_out_fire = 1 , not_in_creative_inventory = 1 } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
2019-06-13 21:20:42 +02:00
2019-04-17 18:16:36 +02:00
minetest.register_node ( " lib_materials:fluid_water_murky_source " , {
description = S ( " Murky Water Source " ) ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_water_source_animated.png^[colorize:#1F1F00:alpha " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 2.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style water source material (mostly unused)
{
name = " lib_materials_fluid_water_source_animated.png^[colorize:#1F1F00:alpha " ,
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 = " lib_materials:fluid_water_murky_flowing " ,
liquid_alternative_source = " lib_materials:fluid_water_murky_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 103 , r = 30 , g = 60 , b = 90 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 3 , cools_lava = 1 , puts_out_fire = 1 , } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_water_murky_flowing " , {
description = S ( " Murky Flowing Water " ) ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_water.png^[colorize:#1F1F00:alpha " } ,
special_tiles = {
{
name = " lib_materials_fluid_water_flowing_animated.png^[colorize:#1F1F00:alpha " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 0.8 ,
} ,
} ,
{
name = " lib_materials_fluid_water_flowing_animated.png^[colorize:#1F1F00:alpha " ,
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 = " lib_materials:fluid_water_murky_flowing " ,
liquid_alternative_source = " lib_materials:fluid_water_murky_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 103 , r = 30 , g = 60 , b = 90 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 3 , cools_lava = 1 , puts_out_fire = 1 , not_in_creative_inventory = 1 , } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_water_river_muddy_source " , {
description = S ( " Muddy River Water Source " ) ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_water_river_muddy_flowing.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 2.0 ,
} ,
} ,
} ,
special_tiles = {
{
name = " lib_materials_fluid_water_river_muddy_flowing.png " ,
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 = " lib_materials:muddy_river_water_flowing " ,
liquid_alternative_source = " lib_materials:muddy_river_water_source " ,
liquid_viscosity = 1 ,
liquid_renewable = false ,
liquid_range = 2 ,
post_effect_color = { a = 103 , r = 30 , g = 76 , b = 90 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 3 , cools_lava = 1 , puts_out_fire = 1 , } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_water_river_muddy_flowing " , {
description = S ( " Muddy Flowing River Water " ) ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_water_river_muddy_source.png " } ,
special_tiles = {
{
name = " lib_materials_fluid_water_river_muddy_flowing.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 0.8 ,
} ,
} ,
{
name = " lib_materials_fluid_water_river_muddy_flowing.png " ,
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 = " lib_materials:muddy_river_water_flowing " ,
liquid_alternative_source = " lib_materials:muddy_river_water_source " ,
liquid_viscosity = 1 ,
liquid_renewable = false ,
liquid_range = 2 ,
post_effect_color = { a = 103 , r = 30 , g = 76 , b = 90 } ,
2019-04-19 21:33:56 +02:00
groups = { water = 3 , liquid = 3 , cools_lava = 1 , puts_out_fire = 1 , not_in_creative_inventory = 1 , } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
--Quicksand as fluid. Will spread like lava
minetest.register_node ( " lib_materials:fluid_quicksand_source " , {
description = S ( " Quicksand Source " ) ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_quicksand_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style lava source material (mostly unused)
{
name = " lib_materials_fluid_quicksand_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
backface_culling = false ,
} ,
} ,
paramtype = " light " ,
light_source = default.LIGHT_MAX - 1 ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " source " ,
liquid_alternative_flowing = " lib_materials:fluid_quicksand_flowing " ,
liquid_alternative_source = " lib_materials:fluid_quicksand_source " ,
liquid_viscosity = 8 ,
liquid_renewable = false ,
damage_per_second = 3 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
groups = { quicksand = 3 , liquid = 2 } ,
} )
minetest.register_node ( " lib_materials:fluid_quicksand_flowing " , {
description = S ( " Flowing Quicksand " ) ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_quicksand_source.png " } ,
special_tiles = {
{
name = " lib_materials_fluid_quicksand_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
{
name = " lib_materials_fluid_quicksand_flowing_animated.png " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
} ,
paramtype = " light " ,
paramtype2 = " flowingliquid " ,
light_source = default.LIGHT_MAX - 1 ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " flowing " ,
liquid_alternative_flowing = " lib_materials:fluid_quicksand_flowing " ,
liquid_alternative_source = " lib_materials:fluid_quicksand_source " ,
liquid_viscosity = 7 ,
liquid_renewable = false ,
damage_per_second = 4 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
groups = { quicksand = 3 , liquid = 2 , not_in_creative_inventory = 1 } ,
} )
-- Quicksand as node. Player will sink, slow, and take drowning damage. (new style, sinking inside shows yellow effect with or without noclip, but old quicksand is shown as black until block placed nearby to update light)
minetest.register_node ( " lib_materials:quicksand " , {
description = S ( " Quicksand " ) ,
tiles = { " default_sand.png " } ,
drawtype = " glasslike " ,
paramtype = " light " ,
drop = " default:sand " ,
liquid_viscosity = 15 ,
liquidtype = " source " ,
liquid_alternative_flowing = " lib_materials:quicksand " ,
liquid_alternative_source = " lib_materials:quicksand " ,
liquid_renewable = false ,
liquid_range = 0 ,
drowning = 1 ,
walkable = false ,
climbable = false ,
post_effect_color = { r = 230 , g = 210 , b = 160 , a = 245 } ,
groups = { crumbly = 3 , sand = 1 , liquid = 3 , disable_jump = 1 } ,
sounds = default.node_sound_sand_defaults ( ) ,
} )
-- craft quicksand
minetest.register_craft ( {
output = " lib_materials:quicksand " ,
recipe = {
{ " group:sand " , " group:sand " , " group:sand " } ,
{ " group:sand " , " group:water_bucket " , " group:sand " } ,
{ " group:sand " , " group:sand " , " group:sand " } ,
} ,
replacements = {
{ " group:water_bucket " , " bucket:bucket_empty " }
}
} )
--Mud as fluid.
minetest.register_node ( " lib_materials:fluid_mud_source " , {
description = S ( " Mud Source " ) ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_mud_flowing_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style lava source material (mostly unused)
{
name = " lib_materials_fluid_mud_flowing_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.0 ,
} ,
backface_culling = false ,
} ,
} ,
paramtype = " light " ,
light_source = default.LIGHT_MAX - 1 ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " source " ,
liquid_alternative_flowing = " lib_materials:fluid_mud_flowing " ,
liquid_alternative_source = " lib_materials:fluid_mud_source " ,
liquid_viscosity = 8 ,
liquid_renewable = false ,
damage_per_second = 3 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
2019-04-19 21:33:56 +02:00
groups = { mud = 3 , liquid = 2 , disable_jump = 1 } ,
2019-04-17 18:16:36 +02:00
} )
minetest.register_node ( " lib_materials:fluid_mud_flowing " , {
description = S ( " Flowing Mud " ) ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_mud_source.png " } ,
special_tiles = {
{
name = " lib_materials_fluid_mud_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
{
name = " lib_materials_fluid_mud_flowing_animated.png " ,
backface_culling = true ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 3.3 ,
} ,
} ,
} ,
paramtype = " light " ,
paramtype2 = " flowingliquid " ,
light_source = default.LIGHT_MAX - 1 ,
walkable = false ,
pointable = false ,
diggable = false ,
buildable_to = true ,
is_ground_content = false ,
drop = " " ,
drowning = 1 ,
liquidtype = " flowing " ,
liquid_alternative_flowing = " lib_materials:fluid_mud_flowing " ,
liquid_alternative_source = " lib_materials:fluid_mud_source " ,
liquid_viscosity = 7 ,
liquid_renewable = false ,
damage_per_second = 4 ,
post_effect_color = { a = 191 , r = 255 , g = 64 , b = 0 } ,
2019-04-19 21:33:56 +02:00
groups = { quicksand = 3 , liquid = 2 , disable_jump = 1 , not_in_creative_inventory = 1 } ,
2019-04-17 18:16:36 +02:00
} )
-- Mud as node. Player will sink, slow, and take drowning damage. Mud for swamps
minetest.register_node ( " lib_materials:mud_wet " , {
description = S ( " Mud Wet " ) ,
tiles = { " lib_materials_dirt_mud_01.png " } ,
liquid_viscosity = 8 ,
liquidtype = " source " ,
liquid_renewable = false ,
liquid_alternative_source = " lib_materials:mud_wet " ,
liquid_alternative_flowing = " lib_materials:mud_wet " ,
liquid_range = 0 ,
post_effect_color = { r = 115 , g = 61 , b = 31 , a = 255 } ,
drowning = 1 ,
walkable = false ,
groups = { crumbly = 2 } ,
sounds = default.node_sound_dirt_defaults ( ) ,
} )
--Grease and Oil
minetest.register_node ( " lib_materials:fluid_grease_source " , {
description = " Grease Source " ,
drawtype = " liquid " ,
tiles = {
{
name = " steampunk_grease_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 2.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style water source material (mostly unused)
{
name = " steampunk_grease_source_animated.png " ,
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 = " lib_materials:fluid_grease_flowing " ,
liquid_alternative_source = " lib_materials:fluid_grease_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 103 , r = 107 , g = 53 , b = 18 } ,
groups = { oil = 3 , liquid = 1 , flammable = 1 } ,
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_grease_flowing " , {
description = " Flowing Grease " ,
drawtype = " flowingliquid " ,
2019-06-13 21:20:42 +02:00
tiles = { " lib_materials_fluid_grease_source.png " } ,
2019-04-17 18:16:36 +02:00
special_tiles = {
{
name = " steampunk_grease_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 0.8 ,
} ,
} ,
{
name = " steampunk_grease_flowing_animated.png " ,
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 = " lib_materials:fluid_grease_flowing " ,
liquid_alternative_source = " lib_materials:fluid_grease_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 103 , r = 45 , g = 23 , b = 7 } ,
2019-04-19 21:33:56 +02:00
groups = { oil = 3 , liquid = 1 , flammable = 1 , not_in_creative_inventory = 1 } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_oil_source " , {
description = " Oil Source " ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_oil_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 2.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style water source material (mostly unused)
{
name = " lib_materials_fluid_oil_source_animated.png " ,
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 = " lib_materials:fluid_oil_flowing " ,
liquid_alternative_source = " lib_materials:fluid_oil_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 103 , r = 45 , g = 23 , b = 7 } ,
groups = { oil = 3 , liquid = 1 , flammable = 1 } ,
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_oil_flowing " , {
description = " Flowing Oil " ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_oil_source.png " } ,
special_tiles = {
{
name = " lib_materials_fluid_oil_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 0.8 ,
} ,
} ,
{
name = " lib_materials_fluid_oil_flowing_animated.png " ,
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 = " lib_materials:fluid_oil_flowing " ,
liquid_alternative_source = " lib_materials:fluid_oil_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 150 , r = 45 , g = 23 , b = 7 } ,
2019-04-19 21:33:56 +02:00
groups = { oil = 3 , liquid = 1 , flammable = 1 , not_in_creative_inventory = 1 } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_craft ( {
output = " lib_materials:fluid_grease_source " ,
recipe = {
{ " default:coal_lump " , " default:coal_lump " , " default:coal_lump " } ,
{ " default:coal_lump " , " bucket:bucket_water " , " default:coal_lump " } ,
{ " default:coal_lump " , " default:dirt " , " default:coal_lump " }
}
} )
minetest.register_craft ( {
output = " lib_materials:fluid_oil_source " ,
recipe = {
{ " default:coal_lump " , " default:coal_lump " , " default:coal_lump " } ,
{ " default:coal_lump " , " bucket:bucket_water " , " default:coal_lump " } ,
{ " default:coal_lump " , " default:coal_lump " , " default:coal_lump " }
}
} )
minetest.register_node ( " lib_materials:fluid_oil_02_source " , {
description = " Oil 02 Source " ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_oil_02_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 2.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style water source material (mostly unused)
{
name = " lib_materials_fluid_oil_02_source_animated.png " ,
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 = " lib_materials:fluid_oil_02_flowing " ,
liquid_alternative_source = " lib_materials:fluid_oil_02_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 103 , r = 45 , g = 23 , b = 7 } ,
groups = { oil = 3 , liquid = 1 , flammable = 1 } ,
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_oil_02_flowing " , {
description = " Flowing Oil 02 " ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_oil_02_source.png " } ,
special_tiles = {
{
name = " lib_materials_fluid_oil_02_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 0.8 ,
} ,
} ,
{
name = " lib_materials_fluid_oil_02_flowing_animated.png " ,
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 = " lib_materials:fluid_oil_02_flowing " ,
liquid_alternative_source = " lib_materials:fluid_oil_02_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 150 , r = 45 , g = 23 , b = 7 } ,
2019-04-19 21:33:56 +02:00
groups = { oil = 3 , liquid = 1 , flammable = 1 , not_in_creative_inventory = 1 } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_oil_03_source " , {
description = " Oil 03 Source " ,
drawtype = " liquid " ,
tiles = {
{
name = " lib_materials_fluid_oil_03_source_animated.png " ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 2.0 ,
} ,
} ,
} ,
special_tiles = {
-- New-style water source material (mostly unused)
{
name = " lib_materials_fluid_oil_03_source_animated.png " ,
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 = " lib_materials:fluid_oil_03_flowing " ,
liquid_alternative_source = " lib_materials:fluid_oil_03_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 103 , r = 45 , g = 23 , b = 7 } ,
groups = { oil = 3 , liquid = 1 , flammable = 1 } ,
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )
minetest.register_node ( " lib_materials:fluid_oil_03_flowing " , {
description = " Flowing Oil 03 " ,
drawtype = " flowingliquid " ,
tiles = { " lib_materials_fluid_oil_03_source.png " } ,
special_tiles = {
{
name = " lib_materials_fluid_oil_03_flowing_animated.png " ,
backface_culling = false ,
animation = {
type = " vertical_frames " ,
aspect_w = 16 ,
aspect_h = 16 ,
length = 0.8 ,
} ,
} ,
{
name = " lib_materials_fluid_oil_03_flowing_animated.png " ,
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 = " lib_materials:fluid_oil_03_flowing " ,
liquid_alternative_source = " lib_materials:fluid_oil_03_source " ,
liquid_viscosity = 1 ,
post_effect_color = { a = 150 , r = 45 , g = 23 , b = 7 } ,
2019-04-19 21:33:56 +02:00
groups = { oil = 3 , liquid = 1 , flammable = 1 , not_in_creative_inventory = 1 } ,
2019-04-17 18:16:36 +02:00
sounds = lib_materials.node_sound_water_defaults ( ) ,
} )