minestead_mods/missions/form.missionblock_stats.lua
Sergei Mozhaisky 2c656ec24f
Mod update 2019-12-12 (#21)
* 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
2019-12-12 17:34:58 +02:00

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