]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/utility/furnace.lua
Add in Aether Glowstone Portals
[Crafter.git] / mods / utility / furnace.lua
index 9fdd004370e147a2f0db58c02ea8fb03731a289c..5b235b96b5a3be7ea4f7b5d5c4f7da64a4246272 100644 (file)
@@ -3,6 +3,7 @@ local furnace = {}
 function furnace.get_furnace_active_formspec(fuel_percent, item_percent)
        return "size[9,8.75]"..
                "background[-0.19,-0.25;9.41,9.49;gui_hb_bg.png]"..
+               "listcolors[#8b8a89;#c9c3c6;#3e3d3e;#000000;#FFFFFF]"..
                "list[context;src;2.75,0.5;1,1;]"..
                "list[context;fuel;2.75,2.5;1,1;]"..
                "image[2.75,1.5;1,1;default_furnace_fire_bg.png^[lowpart:"..
@@ -11,7 +12,7 @@ function furnace.get_furnace_active_formspec(fuel_percent, item_percent)
                (item_percent)..":gui_furnace_arrow_fg.png^[transformR270]"..
                "list[context;dst;4.75,0.96;2,2;]"..
                "list[current_player;main;0,4.5;9,1;]".. --hotbar
-               "list[current_player;main;0,6;9,3;8]".. --inventory
+               "list[current_player;main;0,6;9,3;9]".. --inventory
                
                "listring[context;dst]"..
                "listring[current_player;main]"..
@@ -25,13 +26,14 @@ end
 function furnace.get_furnace_inactive_formspec()
        return "size[9,8.75]"..
                "background[-0.19,-0.25;9.41,9.49;gui_hb_bg.png]"..
+               "listcolors[#8b8a89;#c9c3c6;#3e3d3e;#000000;#FFFFFF]"..
                "list[context;src;2.75,0.5;1,1;]"..
                "list[context;fuel;2.75,2.5;1,1;]"..
                "image[2.75,1.5;1,1;default_furnace_fire_bg.png]"..
                "image[3.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
                "list[context;dst;4.75,0.96;2,2;]"..
                "list[current_player;main;0,4.5;9,1;]"..
-               "list[current_player;main;0,6;9,3;8]"..
+               "list[current_player;main;0,6;9,3;9]"..
                "listring[context;dst]"..
                "listring[current_player;main]"..
                "listring[context;src]"..
@@ -311,11 +313,17 @@ minetest.register_node("utility:furnace", {
        end,
 
        on_metadata_inventory_move = function(pos)
-               minetest.get_node_timer(pos):start(1.0)
+               local timer = minetest.get_node_timer(pos)
+               if timer:is_started() == false then
+                       timer:start(1.0)
+               end
        end,
        on_metadata_inventory_put = function(pos)
                -- start timer function, it will sort out whether furnace can burn or not.
-               minetest.get_node_timer(pos):start(1.0)
+               local timer = minetest.get_node_timer(pos)
+               if timer:is_started() == false then
+                       timer:start(1.0)
+               end
        end,
        --[[
        on_blast = function(pos)