From e09a72ed592a02d0dac9d25c7a361df068113945 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Dec 2019 22:32:40 +0100 Subject: [PATCH] Tweak item appearance of internal items --- mods/ITEMS/REDSTONE/mesecons_button/init.lua | 1 - mods/ITEMS/REDSTONE/mesecons_delayer/init.lua | 11 +++++++++-- .../mesecons_delayer/locale/mesecons_delayer.de.tr | 2 ++ .../REDSTONE/mesecons_delayer/locale/template.txt | 2 ++ mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua | 1 + mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua | 2 -- mods/ITEMS/REDSTONE/mesecons_walllever/init.lua | 2 -- mods/ITEMS/mcl_hoppers/init.lua | 1 + mods/ITEMS/xpanes/init.lua | 1 - 9 files changed, 15 insertions(+), 8 deletions(-) diff --git a/mods/ITEMS/REDSTONE/mesecons_button/init.lua b/mods/ITEMS/REDSTONE/mesecons_button/init.lua index 9f6599831..b397be4be 100644 --- a/mods/ITEMS/REDSTONE/mesecons_button/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_button/init.lua @@ -136,7 +136,6 @@ mesecon.register_button = function(basename, description, texture, recipeitem, s drawtype = "nodebox", tiles = {texture}, wield_image = "mesecons_button_wield_mask.png^"..texture.."^mesecons_button_wield_mask.png^[makealpha:255,126,126", - inventory_image = "mesecons_button_wield_mask.png^"..texture.."^mesecons_button_wield_mask.png^[makealpha:255,126,126", wield_scale = { x=1, y=1, z=0.5}, paramtype = "light", paramtype2 = "wallmounted", diff --git a/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua b/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua index 01bd19018..c91b36acb 100644 --- a/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_delayer/init.lua @@ -220,8 +220,15 @@ else help = false end +local desc_off +if i == 1 then + desc_off = S("Redstone Repeater") +else + desc_off = S("Redstone Repeater (Delay @1)", i) +end + minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), { - description = S("Redstone Repeater"), + description = desc_off, inventory_image = icon, wield_image = icon, _doc_items_create_entry = help, @@ -294,7 +301,7 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), { minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), { - description = S("Redstone Repeater (Powered)"), + description = S("Redstone Repeater (Delay @1, Powered)", i), _doc_items_create_entry = false, drawtype = "nodebox", tiles = { diff --git a/mods/ITEMS/REDSTONE/mesecons_delayer/locale/mesecons_delayer.de.tr b/mods/ITEMS/REDSTONE/mesecons_delayer/locale/mesecons_delayer.de.tr index db17d7f69..0d50d6e5b 100644 --- a/mods/ITEMS/REDSTONE/mesecons_delayer/locale/mesecons_delayer.de.tr +++ b/mods/ITEMS/REDSTONE/mesecons_delayer/locale/mesecons_delayer.de.tr @@ -6,3 +6,5 @@ Redstone Repeater=Redstoneverstärker Redstone Repeater (Powered)=Redstoneverstärker (bestromt) Redstone Repeater (Locked)=Redstoneverstärker (gesperrt) Redstone Repeater (Locked, Powered)=Redstoneverstärker (gesperrt, bestromt) +Redstone Repeater (Delay @1)=Redstoneverstärker (Verzögerung @1) +Redstone Repeater (Delay @1, Powered)=Redstoneverstärker (Verzögerung @1, bestromt) diff --git a/mods/ITEMS/REDSTONE/mesecons_delayer/locale/template.txt b/mods/ITEMS/REDSTONE/mesecons_delayer/locale/template.txt index e694d70a7..904608939 100644 --- a/mods/ITEMS/REDSTONE/mesecons_delayer/locale/template.txt +++ b/mods/ITEMS/REDSTONE/mesecons_delayer/locale/template.txt @@ -6,3 +6,5 @@ Redstone Repeater= Redstone Repeater (Powered)= Redstone Repeater (Locked)= Redstone Repeater (Locked, Powered)= +Redstone Repeater (Delay @1)= +Redstone Repeater (Delay @1, Powered)= diff --git a/mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua b/mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua index 6148c7009..c56b3f788 100644 --- a/mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_pressureplates/init.lua @@ -130,6 +130,7 @@ function mesecon.register_pressure_plate(basename, description, textures_off, te selection_box = pp_box_on, groups = groups_on, tiles = textures_on, + description = "", mesecons = {receptor = { state = mesecon.state.on, rules = mesecon.rules.pplate }}, _doc_items_create_entry = false, diff --git a/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua b/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua index 0ea8ba63d..3571688fc 100644 --- a/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_solarpanel/init.lua @@ -20,7 +20,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", { fixed = boxes }, drop = "mesecons_solarpanel:solar_panel_off", - description=S("Daylight Sensor"), _doc_items_create_entry = false, groups = {handy=1,axey=1, not_in_creative_inventory = 1, material_wood=1}, sounds = mcl_sounds.node_sound_glass_defaults(), @@ -139,7 +138,6 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", { }, drop = "mesecons_solarpanel:solar_panel_off", groups = {handy=1,axey=1, not_in_creative_inventory = 1, material_wood=1}, - description=S("Inverted Daylight Sensor"), _doc_items_create_entry = false, sounds = mcl_sounds.node_sound_glass_defaults(), mesecons = {receptor = { diff --git a/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua b/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua index 3c04f72a2..41de711e3 100644 --- a/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua @@ -111,7 +111,6 @@ minetest.register_node("mesecons_walllever:wall_lever_on", { tiles = { "jeija_wall_lever_lever_light_on.png", }, - inventory_image = "jeija_wall_lever.png", paramtype = "light", paramtype2 = "facedir", mesh = "jeija_wall_lever_on.obj", @@ -124,7 +123,6 @@ minetest.register_node("mesecons_walllever:wall_lever_on", { groups = {handy=1, not_in_creative_inventory = 1, dig_by_water=1, destroy_by_lava_flow=1, dig_by_piston=1, attached_node_facedir=1}, is_ground_content = false, drop = '"mesecons_walllever:wall_lever_off" 1', - description=S("Lever"), _doc_items_create_entry = false, on_rightclick = function (pos, node) minetest.swap_node(pos, {name="mesecons_walllever:wall_lever_off", param2=node.param2}) diff --git a/mods/ITEMS/mcl_hoppers/init.lua b/mods/ITEMS/mcl_hoppers/init.lua index 39f5f3e57..964e94f21 100644 --- a/mods/ITEMS/mcl_hoppers/init.lua +++ b/mods/ITEMS/mcl_hoppers/init.lua @@ -183,6 +183,7 @@ minetest.register_node("mcl_hoppers:hopper", def_hopper_enabled) -- Disabled downwards hopper local def_hopper_disabled = table.copy(def_hopper) def_hopper_disabled.description = S("Disabled Hopper") +def_hopper_disabled.inventory_image = nil def_hopper_disabled._doc_items_create_entry = false def_hopper_disabled.groups.not_in_creative_inventory = 1 def_hopper_disabled.drop = "mcl_hoppers:hopper" diff --git a/mods/ITEMS/xpanes/init.lua b/mods/ITEMS/xpanes/init.lua index 42dbb807d..6f8ff22b4 100644 --- a/mods/ITEMS/xpanes/init.lua +++ b/mods/ITEMS/xpanes/init.lua @@ -137,7 +137,6 @@ function xpanes.register_pane(name, def) paramtype = "light", is_ground_content = false, sunlight_propagates = true, - description = def.description, _doc_items_create_entry = false, tiles = {def.textures[3], def.textures[2], def.textures[1]}, use_texture_alpha = def.use_texture_alpha,