Allow for animated hyphae textures

This commit is contained in:
FossFanatic 2022-12-14 14:25:43 +00:00 committed by Gitea
parent 45c85841e8
commit 083a57a4a1

View file

@ -283,10 +283,10 @@ minetest.register_node("mcl_crimson:warped_hyphae", {
tiles = { tiles = {
"warped_hyphae.png", "warped_hyphae.png",
"warped_hyphae.png", "warped_hyphae.png",
"warped_hyphae_side.png", {
"warped_hyphae_side.png", image="warped_hyphae_side.png",
"warped_hyphae_side.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}
"warped_hyphae_side.png", },
}, },
paramtype2 = "facedir", paramtype2 = "facedir",
on_place = mcl_util.rotate_axis, on_place = mcl_util.rotate_axis,
@ -321,7 +321,12 @@ minetest.register_node("mcl_crimson:warped_nylium", {
minetest.register_node("mcl_crimson:warped_hyphae_bark", { minetest.register_node("mcl_crimson:warped_hyphae_bark", {
description = S("Warped Hyphae Bark"), description = S("Warped Hyphae Bark"),
_doc_items_longdesc = S("This is a decorative block surrounded by the bark of an hyphae."), _doc_items_longdesc = S("This is a decorative block surrounded by the bark of an hyphae."),
tiles = {"warped_hyphae_side.png"}, tiles = {
{
image="warped_hyphae_side.png",
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}
},
},
paramtype2 = "facedir", paramtype2 = "facedir",
on_place = mcl_util.rotate_axis, on_place = mcl_util.rotate_axis,
groups = {handy = 1, axey = 1, bark = 1, building_block = 1, material_wood = 1}, groups = {handy = 1, axey = 1, bark = 1, building_block = 1, material_wood = 1},
@ -468,10 +473,10 @@ minetest.register_node("mcl_crimson:crimson_hyphae", {
tiles = { tiles = {
"crimson_hyphae.png", "crimson_hyphae.png",
"crimson_hyphae.png", "crimson_hyphae.png",
"crimson_hyphae_side.png", {
"crimson_hyphae_side.png", image="crimson_hyphae_side.png",
"crimson_hyphae_side.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}
"crimson_hyphae_side.png", },
}, },
paramtype2 = "facedir", paramtype2 = "facedir",
on_place = mcl_util.rotate_axis, on_place = mcl_util.rotate_axis,
@ -487,7 +492,12 @@ minetest.register_node("mcl_crimson:crimson_hyphae", {
minetest.register_node("mcl_crimson:crimson_hyphae_bark", { minetest.register_node("mcl_crimson:crimson_hyphae_bark", {
description = S("Crimson Hyphae Bark"), description = S("Crimson Hyphae Bark"),
_doc_items_longdesc = S("This is a decorative block surrounded by the bark of an hyphae."), _doc_items_longdesc = S("This is a decorative block surrounded by the bark of an hyphae."),
tiles = {"crimson_hyphae_side.png"}, tiles = {
{
image="crimson_hyphae_side.png",
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}
},
},
paramtype2 = "facedir", paramtype2 = "facedir",
on_place = mcl_util.rotate_axis, on_place = mcl_util.rotate_axis,
groups = {handy = 1, axey = 1, bark = 1, building_block = 1, material_wood = 1}, groups = {handy = 1, axey = 1, bark = 1, building_block = 1, material_wood = 1},