formspec added to lv_furnace
This commit is contained in:
parent
35ff05d94c
commit
f55ae62b60
@ -8,10 +8,30 @@ minetest.register_node(minetest.get_current_modname() .. ":lv_furnace", {
|
||||
"furnace2.png",
|
||||
"furnace.png"
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
groups = { sparktech_techy = 1,
|
||||
sparktech_energy_conductor = 1,
|
||||
sparktech_energy_in = 50,
|
||||
sparktech_energy_out = 10,
|
||||
sparktech_energy_nobalance = 1,
|
||||
sparktech_energy_max = 300}
|
||||
})
|
||||
sparktech_energy_max = 300},
|
||||
|
||||
on_construct = function(pos, placer)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string(
|
||||
"formspec",
|
||||
"size[8,6]"..
|
||||
"list[current_name;ressources;0,0;2,1;]" ..
|
||||
"list[current_name;products;6,0;2,1;]" ..
|
||||
"list[current_player;main;0,2;8,1;]"..
|
||||
"list[current_player;main;0,3;8,3;8]")
|
||||
local inventory = meta:get_inventory()
|
||||
inventory:set_size('ressources',2)
|
||||
inventory:set_size('products',2)
|
||||
end,
|
||||
--on_timer = mytimer, -- add a mytimer function
|
||||
})
|
||||
|
||||
local function mytime(pos, elapsed)
|
||||
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user