diff --git a/mods/eventobjects/init.lua b/mods/eventobjects/init.lua index 1bb75b24..9c57b131 100644 --- a/mods/eventobjects/init.lua +++ b/mods/eventobjects/init.lua @@ -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) diff --git a/mods/eventobjects/textures/eventobjects_surprise_node_animated.png b/mods/eventobjects/textures/eventobjects_surprise_node_animated.png new file mode 100644 index 00000000..bfb4d5bb Binary files /dev/null and b/mods/eventobjects/textures/eventobjects_surprise_node_animated.png differ diff --git a/mods/eventobjects/textures/eventobjects_surprise_node_top.png b/mods/eventobjects/textures/eventobjects_surprise_node_top.png new file mode 100644 index 00000000..9efcade5 Binary files /dev/null and b/mods/eventobjects/textures/eventobjects_surprise_node_top.png differ