Fix waterlogged texture to be animated

This commit is contained in:
cora 2022-07-30 01:23:03 +02:00
parent 2b90675ea2
commit 844cf6c5dc
1 changed files with 18 additions and 13 deletions

View File

@ -226,15 +226,23 @@ local wlroots = {
("These cannot be crafted yet only occure when get in contact of water."), ("These cannot be crafted yet only occure when get in contact of water."),
_doc_items_hidden = false, _doc_items_hidden = false,
tiles = { tiles = {
"("..water_tex..")^mcl_mangrove_roots_top.png", {name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0}}
"("..water_tex..")^mcl_mangrove_roots_top.png", },
"("..water_tex..")^mcl_mangrove_roots_side.png", special_tiles = {
"("..water_tex..")^mcl_mangrove_roots_side.png", -- New-style water source material (mostly unused)
"("..water_tex..")^mcl_mangrove_roots_side.png", {
"("..water_tex..")^mcl_mangrove_roots_side.png" name="default_water_source_animated.png",
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0},
backface_culling = false,
}
},
overlay_tiles = {
"mcl_mangrove_roots_top.png",
"mcl_mangrove_roots_side.png",
"mcl_mangrove_roots_side.png",
}, },
sounds = mcl_sounds.node_sound_water_defaults(), sounds = mcl_sounds.node_sound_water_defaults(),
use_texture_alpha = "clip", use_texture_alpha = "blend",
is_ground_content = false, is_ground_content = false,
paramtype = "light", paramtype = "light",
walkable = true, walkable = true,
@ -258,12 +266,9 @@ local wlroots = {
local rwlroots = table.copy(wlroots) local rwlroots = table.copy(wlroots)
water_tex = "default_river_water_source_animated.png^[verticalframe:16:0" water_tex = "default_river_water_source_animated.png^[verticalframe:16:0"
rwlroots.tiles = { rwlroots.tiles = {
"("..water_tex..")^mcl_mangrove_roots_top.png",
"("..water_tex..")^mcl_mangrove_roots_top.png", "("..water_tex..")^mcl_mangrove_roots_top.png",
"("..water_tex..")^mcl_mangrove_roots_side.png", "("..water_tex..")^mcl_mangrove_roots_side.png",
"("..water_tex..")^mcl_mangrove_roots_side.png", "("..water_tex..")^mcl_mangrove_roots_side.png",
"("..water_tex..")^mcl_mangrove_roots_side.png",
"("..water_tex..")^mcl_mangrove_roots_side.png"
} }
minetest.register_node("mcl_mangrove:water_logged_roots", wlroots) minetest.register_node("mcl_mangrove:water_logged_roots", wlroots)
@ -274,9 +279,9 @@ minetest.register_node("mcl_mangrove:mangrove_mud_roots", {
_tt_help = S("crafted with Mud and Mangrove roots"), _tt_help = S("crafted with Mud and Mangrove roots"),
_doc_items_longdesc = S("Muddy Mangrove Roots is a block from mangrove swamp.It drowns player a bit inside it"), _doc_items_longdesc = S("Muddy Mangrove Roots is a block from mangrove swamp.It drowns player a bit inside it"),
tiles = { tiles = {
"mcl_mud.png^mcl_mangrove_roots_top.png", "mcl_mud.png^mcl_mangrove_roots_top.png", "mcl_mud.png^mcl_mangrove_roots_top.png",
"mcl_mud.png^mcl_mangrove_roots_side.png", "mcl_mud.png^mcl_mangrove_roots_side.png", "mcl_mud.png^mcl_mangrove_roots_side.png",
"mcl_mud.png^mcl_mangrove_roots_side.png", "mcl_mud.png^mcl_mangrove_roots_side.png", "mcl_mud.png^mcl_mangrove_roots_side.png",
}, },
is_ground_content = true, is_ground_content = true,
groups = {handy = 1, shovely = 1, axey = 1, building_block = 1}, groups = {handy = 1, shovely = 1, axey = 1, building_block = 1},