2019-03-14 01:32:35 +00:00
|
|
|
-- Mod to mark WIP (Work In Progress) content
|
|
|
|
|
2019-03-07 20:14:30 +00:00
|
|
|
local S = minetest.get_translator("mcl_wip")
|
|
|
|
|
2017-02-22 00:46:13 +00:00
|
|
|
local wip_items = {
|
|
|
|
"mcl_maps:empty_map",
|
2017-08-28 00:08:41 +00:00
|
|
|
"mcl_comparators:comparator_off_comp",
|
2017-08-28 12:19:46 +00:00
|
|
|
"mcl_minecarts:hopper_minecart",
|
|
|
|
"mcl_minecarts:command_block_minecart",
|
|
|
|
"mcl_minecarts:chest_minecart",
|
|
|
|
"mcl_minecarts:furnace_minecart",
|
2018-01-09 13:32:58 +00:00
|
|
|
"mobs_mc:enderdragon",
|
|
|
|
"mobs_mc:wither",
|
|
|
|
"mobs_mc:witch",
|
2019-12-11 03:53:01 +00:00
|
|
|
"screwdriver:screwdriver",
|
2020-06-06 14:22:07 +00:00
|
|
|
"mcl_paintings:painting",
|
2020-07-10 11:15:08 +00:00
|
|
|
"mcl_potions:night_vision",
|
|
|
|
"mcl_potions:night_vision_plus",
|
2020-07-10 23:51:13 +00:00
|
|
|
-- "mcl_potions:weakness",
|
|
|
|
-- "mcl_potions:weakness_plus",
|
|
|
|
-- "mcl_potions:strength",
|
|
|
|
-- "mcl_potions:strength_plus",
|
|
|
|
-- "mcl_potions:strength_2",
|
2020-07-10 11:15:08 +00:00
|
|
|
"mcl_potions:night_vision_splash",
|
|
|
|
"mcl_potions:night_vision_plus_splash",
|
2020-07-10 23:51:13 +00:00
|
|
|
-- "mcl_potions:weakness_splash",
|
|
|
|
-- "mcl_potions:weakness_plus_splash",
|
|
|
|
-- "mcl_potions:strength_splash",
|
|
|
|
-- "mcl_potions:strength_plus_splash",
|
|
|
|
-- "mcl_potions:strength_2_splash",
|
2020-07-10 11:15:08 +00:00
|
|
|
"mcl_potions:night_vision_lingering",
|
|
|
|
"mcl_potions:night_vision_plus_lingering",
|
2020-07-10 23:51:13 +00:00
|
|
|
-- "mcl_potions:weakness_lingering",
|
|
|
|
-- "mcl_potions:weakness_plus_lingering",
|
|
|
|
-- "mcl_potions:strength_lingering",
|
|
|
|
-- "mcl_potions:strength_plus_lingering",
|
|
|
|
-- "mcl_potions:strength_2_lingering",
|
2020-07-31 08:45:22 +00:00
|
|
|
"mcl_potions:night_vision_arrow",
|
|
|
|
"mcl_potions:night_vision_plus_arrow",
|
2017-02-22 00:46:13 +00:00
|
|
|
}
|
2017-11-27 11:17:26 +00:00
|
|
|
local experimental_items = {
|
|
|
|
}
|
2017-02-22 00:46:13 +00: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 06:52:24 +00:00
|
|
|
local new_groups = table.copy(def.groups)
|
2018-01-10 17:41:07 +00:00
|
|
|
if new_description == "" then
|
|
|
|
new_description = wip_items[i]
|
|
|
|
end
|
2019-03-07 20:14:30 +00:00
|
|
|
new_description = new_description .. "\n"..core.colorize("#FF0000", S("(WIP)"))
|
2021-01-24 18:03:52 +00:00
|
|
|
--new_groups.not_in_craft_guide = 1
|
2017-11-20 06:52:24 +00:00
|
|
|
minetest.override_item(wip_items[i], { description = new_description, groups = new_groups })
|
2017-02-22 00:46:13 +00:00
|
|
|
end
|
2017-03-18 00:18:33 +00: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 20:14:30 +00:00
|
|
|
new_description = new_description .. "\n"..core.colorize("#FFFF00", S("(Temporary)"))
|
2017-03-18 00:18:33 +00:00
|
|
|
minetest.override_item(experimental_items[i], { description = new_description })
|
|
|
|
end
|