Water animation
This commit is contained in:
parent
76c60b687a
commit
665a6c8c43
@ -496,8 +496,16 @@ minetest.register_node("default:water_flowing", {
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
{name="default_water.png", backface_culling=false},
|
||||
{name="default_water.png", backface_culling=true},
|
||||
{
|
||||
image="default_water_flowing_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8}
|
||||
},
|
||||
{
|
||||
image="default_water_flowing_animated.png",
|
||||
backface_culling=true,
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8}
|
||||
},
|
||||
},
|
||||
alpha = WATER_ALPHA,
|
||||
paramtype = "light",
|
||||
@ -517,7 +525,9 @@ minetest.register_node("default:water_source", {
|
||||
description = "Water Source",
|
||||
inventory_image = minetest.inventorycube("default_water.png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {"default_water.png"},
|
||||
tiles = {
|
||||
{name="default_water_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="default_water.png", backface_culling=false},
|
||||
|
BIN
mods/default/textures/default_water.png
Normal file → Executable file
BIN
mods/default/textures/default_water.png
Normal file → Executable file
Binary file not shown.
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 710 B |
BIN
mods/default/textures/default_water_flowing_animated.png
Normal file
BIN
mods/default/textures/default_water_flowing_animated.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
BIN
mods/default/textures/default_water_source_animated.png
Normal file
BIN
mods/default/textures/default_water_source_animated.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
Loading…
x
Reference in New Issue
Block a user