2c656ec24f
* add digistuff * add digiterms * add missions * add morelights * add nixie_tubes * add mob_horse * change digiterms: add cyrillic letter, change recipes for scifi monitors * add missing recipe for decatron * add craft recipes for digistuff * Separate mod for missing craft recipes * new mod: bees * add advtrains_luaautomation with craft recipes * add ham_radio * add christmas_decor * jumpdrive: ham_radio compat * fix christmas decor
27 lines
599 B
Lua
27 lines
599 B
Lua
|
|
local FORMNAME = "mission_block_stats"
|
|
|
|
missions.form.missionblock_stats = function(pos, node, player)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
local successcount = meta:get_int("successcount")
|
|
local failcount = meta:get_int("failcount")
|
|
|
|
local formspec = "size[8,8;]" ..
|
|
--left
|
|
"label[0,0;Mission block]" ..
|
|
"label[0,2;Success-count: " .. successcount .. "]" ..
|
|
"label[0,3;Fail-count: " .. failcount .. "]" ..
|
|
"button_exit[0,7;8,1;exit;Exit]" ..
|
|
missions.FORMBG
|
|
|
|
minetest.show_formspec(player:get_player_name(),
|
|
FORMNAME .. ";" .. minetest.pos_to_string(pos),
|
|
formspec
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|