Browse Source

Add animated front texture for active furnace

4Evergreen4 10 years ago
parent
commit
a5dcf123e0
2 changed files with 17 additions and 2 deletions
  1. 17 2
      mods/default/nodes.lua
  2. BIN
      mods/default/textures/default_furnace_front_active.png

+ 17 - 2
mods/default/nodes.lua

@@ -895,8 +895,23 @@ minetest.register_node("default:furnace", {
 
 minetest.register_node("default:furnace_active", {
 	description = "Furnace",
-	tiles = {"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_side.png",
-		"default_furnace_side.png", "default_furnace_side.png", "default_furnace_front_active.png"},
+	tiles = {
+		"default_furnace_top.png",
+		"default_furnace_bottom.png",
+		"default_furnace_side.png",
+		"default_furnace_side.png",
+		"default_furnace_side.png",
+		{
+			image = "default_furnace_front_active.png",
+			backface_culling = false,
+			animation = {
+				type = "vertical_frames",
+				aspect_w = 16,
+				aspect_h = 16,
+				length = 1.5
+			},
+		}
+	},
 	paramtype2 = "facedir",
 	light_source = 8,
 	drop = "default:furnace",

BIN
mods/default/textures/default_furnace_front_active.png