From ea24e6201893e63d84b8bbbdd65629ef4bbe4be0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 18 Mar 2017 01:18:33 +0100 Subject: [PATCH] Mark lookup tool as experimental item --- mods/MISC/mcl_wip/depends.txt | 2 +- mods/MISC/mcl_wip/init.lua | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/mods/MISC/mcl_wip/depends.txt b/mods/MISC/mcl_wip/depends.txt index 3b569aaf2f..b73aea4360 100644 --- a/mods/MISC/mcl_wip/depends.txt +++ b/mods/MISC/mcl_wip/depends.txt @@ -2,7 +2,6 @@ mcl_boats mcl_anvils mcl_core mcl_end -mcl_flowers mcl_fishing mcl_maps mcl_mobitems @@ -11,3 +10,4 @@ mcl_sponges gemalde signs mcl_observers +doc_identifier diff --git a/mods/MISC/mcl_wip/init.lua b/mods/MISC/mcl_wip/init.lua index 07591b5304..45929f1c6d 100644 --- a/mods/MISC/mcl_wip/init.lua +++ b/mods/MISC/mcl_wip/init.lua @@ -43,3 +43,20 @@ for i=1,#wip_items do new_description = new_description .. "\n"..core.colorize("#FF0000", "(WIP)") minetest.override_item(wip_items[i], { description = new_description }) end + +local experimental_items = { + "doc_identifier:identifier_solid", + "doc_identifier:identifier_liquid", +} +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 + new_description = new_description .. "\n"..core.colorize("#FFFF00", "(Experimental)") + minetest.override_item(experimental_items[i], { description = new_description }) +end + +