105 lines
2.6 KiB
Lua
105 lines
2.6 KiB
Lua
minetest.register_node(":default:water_source", {
|
|
description = "Water Source",
|
|
inventory_image = minetest.inventorycube("default_water.png"),
|
|
drawtype = "liquid",
|
|
tiles = {
|
|
{
|
|
name = "default_water_source_animated.png",
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 2.0,
|
|
},
|
|
normal_texture = "water_surface_normal.png",
|
|
force_bilinear_filtering = true,
|
|
backface_culling = true,
|
|
},
|
|
},
|
|
special_tiles = {
|
|
{
|
|
name = "default_water_source_animated.png",
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 2.0,
|
|
},
|
|
normal_texture = "water_surface_normal.png",
|
|
force_bilinear_filtering = true,
|
|
backface_culling = false,
|
|
},
|
|
},
|
|
shader = "water_surface_shader",
|
|
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 = "default:water_flowing",
|
|
liquid_alternative_source = "default:water_source",
|
|
liquid_viscosity = 1,
|
|
post_effect_color = {a = 120, r = 30, g = 60, b = 90},
|
|
groups = {water = 3, liquid = 3, puts_out_fire = 1},
|
|
})
|
|
|
|
minetest.register_node(":default:water_flowing", {
|
|
description = "Flowing Water",
|
|
inventory_image = minetest.inventorycube("default_water.png"),
|
|
drawtype = "flowingliquid",
|
|
tiles = {
|
|
{name = "default_water.png",
|
|
normal_texture = "water_surface_normal.png",
|
|
},
|
|
},
|
|
special_tiles = {
|
|
{
|
|
name = "default_water_flowing_animated.png",
|
|
backface_culling = false,
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 0.8,
|
|
},
|
|
normal_texture = "water_surface_normal.png",
|
|
force_bilinear_filtering = true,
|
|
},
|
|
{
|
|
name = "default_water_flowing_animated.png",
|
|
backface_culling = true,
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 0.8,
|
|
},
|
|
normal_texture = "water_surface_normal.png",
|
|
force_bilinear_filtering = true,
|
|
},
|
|
},
|
|
shader = "water_surface_shader",
|
|
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 = "default:water_flowing",
|
|
liquid_alternative_source = "default:water_source",
|
|
liquid_viscosity = 1,
|
|
post_effect_color = {a = 120, r = 30, g = 60, b = 90},
|
|
groups = {water = 3, liquid = 3, puts_out_fire = 1,
|
|
not_in_creative_inventory = 1},
|
|
})
|