From 43007958378d1534bdd2113629aea3862a936a31 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 22 Feb 2017 01:46:13 +0100 Subject: [PATCH] =?UTF-8?q?Mark=20unfinished=20items=20with=20=E2=80=9CWIP?= =?UTF-8?q?=E2=80=9D=20in=20tooltip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods/ITEMS/REDSTONE/mcl_observers/init.lua | 2 +- mods/MISC/mcl_wip/depends.txt | 13 +++++++ mods/MISC/mcl_wip/description.txt | 1 + mods/MISC/mcl_wip/init.lua | 44 ++++++++++++++++++++++ mods/MISC/mcl_wip/mod.conf | 1 + 5 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 mods/MISC/mcl_wip/depends.txt create mode 100644 mods/MISC/mcl_wip/description.txt create mode 100644 mods/MISC/mcl_wip/init.lua create mode 100644 mods/MISC/mcl_wip/mod.conf diff --git a/mods/ITEMS/REDSTONE/mcl_observers/init.lua b/mods/ITEMS/REDSTONE/mcl_observers/init.lua index 250abfb030..34fc3db28d 100644 --- a/mods/ITEMS/REDSTONE/mcl_observers/init.lua +++ b/mods/ITEMS/REDSTONE/mcl_observers/init.lua @@ -1,5 +1,5 @@ minetest.register_node("mcl_observers:observer", { - description = "Observer (WIP)", + description = "Observer", is_ground_content = false, sounds = mcl_sounds.node_sound_stone_defaults(), paramtype2 = "facedir", diff --git a/mods/MISC/mcl_wip/depends.txt b/mods/MISC/mcl_wip/depends.txt new file mode 100644 index 0000000000..b639ba5d16 --- /dev/null +++ b/mods/MISC/mcl_wip/depends.txt @@ -0,0 +1,13 @@ +mcl_boats +mcl_anvils +mcl_core +mcl_end +mcl_flowers +mcl_fishing +mcl_maps +mcl_mobitems +mcl_minecarts +mcl_sponges +gemalde +signs +mesecons_observers diff --git a/mods/MISC/mcl_wip/description.txt b/mods/MISC/mcl_wip/description.txt new file mode 100644 index 0000000000..581de99812 --- /dev/null +++ b/mods/MISC/mcl_wip/description.txt @@ -0,0 +1 @@ +Development mod for MineClone 2 which add a “WIP” comment to items which are considered to be very unfinished. diff --git a/mods/MISC/mcl_wip/init.lua b/mods/MISC/mcl_wip/init.lua new file mode 100644 index 0000000000..59e0083ea8 --- /dev/null +++ b/mods/MISC/mcl_wip/init.lua @@ -0,0 +1,44 @@ +local wip_items = { + "mcl_boats:boat_dark", + "mcl_boats:boat_spruce", + "mcl_boats:boat_acacia", + "mcl_boats:boat_jungle", + "mcl_boats:boat_birch", + "mcl_boats:boat", + "mcl_anvils:anvil", + "mcl_anvils:anvil_damage_1", + "mcl_anvils:anvil_damage_2", + "mcl_core:junglesapling", + "mcl_core:darksapling", + "mcl_core:birchsapling", + "mcl_core:sprucesapling", + "mcl_core:acaciasapling", + "mcl_core:apple_gold", + "mcl_end:ender_eye", + "mcl_end:chorus_fruit", + "mcl_end:chorus_flower", + "mcl_end:chorus_flower_dead", + "mcl_flowers:peony", + "mcl_fishing:fishing_rod", + "mcl_fishing:pufferfish_raw", + "mcl_maps:filled_map", + "mcl_maps:empty_map", + "mcl_mobitems:rotten_flesh", + "mcl_minecarts:golden_rail", + "mcl_sponges:sponge", + "mcl_farming:mushroom_red", + "mcl_farming:mushroom_brown", + "gemalde:node_1", + "mcl_observers:observer", +} + +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 + new_description = new_description .. "\n"..core.colorize("#FF0000", "(WIP)") + minetest.override_item(wip_items[i], { description = new_description }) +end diff --git a/mods/MISC/mcl_wip/mod.conf b/mods/MISC/mcl_wip/mod.conf new file mode 100644 index 0000000000..2af1d45920 --- /dev/null +++ b/mods/MISC/mcl_wip/mod.conf @@ -0,0 +1 @@ +name = mcl_wip