2019-03-14 03:32:35 +02:00
|
|
|
-- Mod to mark WIP (Work In Progress) content
|
|
|
|
|
2019-03-07 22:14:30 +02:00
|
|
|
local S = minetest.get_translator("mcl_wip")
|
|
|
|
|
2017-02-22 02:46:13 +02:00
|
|
|
local wip_items = {
|
|
|
|
"mcl_maps:empty_map",
|
2017-08-28 03:08:41 +03:00
|
|
|
"mcl_comparators:comparator_off_comp",
|
2017-08-28 15:19:46 +03:00
|
|
|
"mcl_minecarts:hopper_minecart",
|
|
|
|
"mcl_minecarts:command_block_minecart",
|
|
|
|
"mcl_minecarts:chest_minecart",
|
|
|
|
"mcl_minecarts:furnace_minecart",
|
|
|
|
"mcl_minecarts:tnt_minecart",
|
2017-08-29 01:13:18 +03:00
|
|
|
"mcl_minecarts:activator_rail",
|
2018-01-09 15:32:58 +02:00
|
|
|
"mobs_mc:enderdragon",
|
|
|
|
"mobs_mc:wither",
|
|
|
|
"mobs_mc:parrot",
|
|
|
|
"mobs_mc:witch",
|
2019-12-11 05:53:01 +02:00
|
|
|
"screwdriver:screwdriver",
|
2017-02-22 02:46:13 +02:00
|
|
|
}
|
2017-11-27 13:17:26 +02:00
|
|
|
local experimental_items = {
|
|
|
|
}
|
2017-02-22 02:46:13 +02:00
|
|
|
|
|
|
|
for i=1,#wip_items do
|
|
|
|
local def = minetest.registered_items[wip_items[i]]
|
|
|
|
if not def then
|
|
|
|
minetest.log("error", "[mcl_wip] Unknown item: "..wip_items[i])
|
|
|
|
break
|
|
|
|
end
|
|
|
|
local new_description = def.description
|
2017-11-20 08:52:24 +02:00
|
|
|
local new_groups = table.copy(def.groups)
|
2018-01-10 19:41:07 +02:00
|
|
|
if new_description == "" then
|
|
|
|
new_description = wip_items[i]
|
|
|
|
end
|
2019-03-07 22:14:30 +02:00
|
|
|
new_description = new_description .. "\n"..core.colorize("#FF0000", S("(WIP)"))
|
2017-11-20 08:52:24 +02:00
|
|
|
new_groups.not_in_craft_guide = 1
|
|
|
|
minetest.override_item(wip_items[i], { description = new_description, groups = new_groups })
|
2017-02-22 02:46:13 +02:00
|
|
|
end
|
2017-03-18 02:18:33 +02:00
|
|
|
|
|
|
|
for i=1,#experimental_items do
|
|
|
|
local def = minetest.registered_items[experimental_items[i]]
|
|
|
|
if not def then
|
|
|
|
minetest.log("error", "[mcl_wip] Unknown item: "..experimental_items[i])
|
|
|
|
break
|
|
|
|
end
|
|
|
|
local new_description = def.description
|
2019-03-07 22:14:30 +02:00
|
|
|
new_description = new_description .. "\n"..core.colorize("#FFFF00", S("(Temporary)"))
|
2017-03-18 02:18:33 +02:00
|
|
|
minetest.override_item(experimental_items[i], { description = new_description })
|
|
|
|
end
|
|
|
|
|
|
|
|
|