Added animated texture for '?' nodes

- Added eventobjects_surprise_node_animated.jpg by @Ataron
 - Added eventobjects_surprise_node_top.jpg
 - Added animation code into init.lua
This commit is contained in:
LeMagnesium 2015-04-22 21:34:56 +02:00
parent e0febced46
commit 9e3dbe86e8
3 changed files with 16 additions and 3 deletions

View File

@ -15,9 +15,22 @@ minetest.register_tool("eventobjects:spleef_shovel", {
minetest.register_node("eventobjects:surprise_node", {
description = "'?' block",
tiles = {"eventobjects_surprise_node.png"},
inventory_image = "eventobjects_surprise_node.png",
wield_image = "eventobjects_surprise_node.png",
inventory_image = minetest.inventorycube("eventobjects_surprise_node.png"),
tiles = {
"eventobjects_surprise_node_top.png", "eventobjects_surprise_node_top.png", {name = "eventobjects_surprise_node_animated.png", animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.5}}
},
special_tiles = {
{
image = "blocmario.png",
backface_culling=false,
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
},
{
image = "blocmario.png",
backface_culling=true,
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
}
},
groups = {oddly_breakable_by_hand = 2},
on_construct = function(pos)
local meta = minetest.get_meta(pos)

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B