From 2e1435898816d49a6820578c88b4d46ea8230465 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sun, 29 Jan 2012 11:53:43 +0100 Subject: [PATCH] Add descriptions --- jeija/button.lua | 2 ++ jeija/detector.lua | 4 +++- jeija/init.lua | 13 +++++++++++++ jeija/lightstone.lua | 2 ++ jeija/movestone.lua | 2 ++ jeija/pistons.lua | 2 ++ jeija/pressureplates.lua | 8 ++++++-- jeija/switch.lua | 2 ++ jeija/torches.lua | 2 ++ jeija/wireless.lua | 11 +++++++++-- 10 files changed, 43 insertions(+), 5 deletions(-) diff --git a/jeija/button.lua b/jeija/button.lua index 0b1232c..102a591 100644 --- a/jeija/button.lua +++ b/jeija/button.lua @@ -11,6 +11,7 @@ minetest.register_node("jeija:wall_button_off", { type = "wallmounted", }, material = minetest.digprop_constanttime(0.3), + description="Button", }) minetest.register_node("jeija:wall_button_on", { drawtype = "signlike", @@ -25,6 +26,7 @@ minetest.register_node("jeija:wall_button_on", { }, material = minetest.digprop_constanttime(0.3), drop = '"jeija:wall_button_off" 1', + description="Button", }) minetest.register_on_dignode( diff --git a/jeija/detector.lua b/jeija/detector.lua index cd55388..e62e89c 100644 --- a/jeija/detector.lua +++ b/jeija/detector.lua @@ -4,6 +4,7 @@ minetest.register_node("jeija:object_detector_off", { paramtype = "light", walkable = true, material = minetest.digprop_stonelike(4), + description="Player Detector", }) minetest.register_node("jeija:object_detector_on", { @@ -11,7 +12,8 @@ minetest.register_node("jeija:object_detector_on", { paramtype = "light", walkable = true, material = minetest.digprop_stonelike(4), - drop = '"jeija:object_detector_off" 1' + drop = '"jeija:object_detector_off" 1', + description="Player Detector", }) minetest.register_craft({ diff --git a/jeija/init.lua b/jeija/init.lua index afc13b6..067575d 100644 --- a/jeija/init.lua +++ b/jeija/init.lua @@ -89,6 +89,7 @@ minetest.register_node("jeija:mesecon_off", { type = "fixed", }, material = minetest.digprop_constanttime(0.1), + description="Mesecons", }) minetest.register_node("jeija:mesecon_on", { @@ -104,6 +105,7 @@ minetest.register_node("jeija:mesecon_on", { material = minetest.digprop_constanttime(0.1), drop = '"jeija:mesecon_off" 1', light_source = LIGHT_MAX-11, + description="Mesecons", }) minetest.register_craft({ @@ -537,6 +539,7 @@ minetest.register_node("jeija:power_plant", { walkable = false, material = minetest.digprop_leaveslike(0.2), light_source = LIGHT_MAX-9, + description="Power Plant", }) minetest.register_craft({ @@ -575,6 +578,7 @@ minetest.register_node("jeija:blinky_plant_off", { paramtype = "light", walkable = false, material = minetest.digprop_leaveslike(0.2), + description="Blinky Plant", }) minetest.register_node("jeija:blinky_plant_on", { @@ -587,6 +591,7 @@ minetest.register_node("jeija:blinky_plant_on", { material = minetest.digprop_leaveslike(0.2), drop='"jeija:blinky_plant_off" 1', light_source = LIGHT_MAX-7, + description="Blinky Plant", }) minetest.register_craft({ @@ -639,6 +644,7 @@ minetest.register_on_dignode( minetest.register_craftitem("jeija:silicon", { image = "jeija_silicon.png", on_place_on_ground = minetest.craftitem_place_item, + description="Silicon", }) @@ -654,6 +660,7 @@ minetest.register_node("jeija:solar_panel", { }, furnace_burntime = 5, material = minetest.digprop_dirtlike(0.1), + description="Solar Panel", }) minetest.register_craft({ @@ -706,6 +713,7 @@ minetest.register_node("jeija:meselamp_on", { }, material = minetest.digprop_constanttime(0.1), drop='"jeija:meselamp_off" 1', + description="Meselamp", }) minetest.register_node("jeija:meselamp_off", { @@ -721,6 +729,7 @@ minetest.register_node("jeija:meselamp_off", { fixed = {-0.38, -0.5, -0.1, 0.38, -0.2, 0.1}, }, material = minetest.digprop_constanttime(0.1), + description="Meselamp", }) minetest.register_craft({ @@ -736,6 +745,7 @@ minetest.register_craft({ minetest.register_craftitem("jeija:glue", { image = "jeija_glue.png", on_place_on_ground = minetest.craftitem_place_item, + description="Glue", }) minetest.register_craft({ @@ -752,12 +762,14 @@ minetest.register_craft({ minetest.register_node("jeija:hydro_turbine_off", { tile_images = {"jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png"}, material = minetest.digprop_constanttime(0.5), + description="Water Turbine", }) minetest.register_node("jeija:hydro_turbine_on", { tile_images = {"jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png"}, drop = '"jeija:hydro_turbine_off" 1', material = minetest.digprop_constanttime(0.5), + description="Water Turbine", }) @@ -819,6 +831,7 @@ minetest.register_node("jeija:removestone", { tile_images = {"jeija_removestone.png"}, inventory_image = minetest.inventorycube("jeija_removestone_inv.png"), material = minetest.digprop_stonelike(1.0), + description="Removestone", }) minetest.register_craft({ diff --git a/jeija/lightstone.lua b/jeija/lightstone.lua index a5d2583..08e79dd 100644 --- a/jeija/lightstone.lua +++ b/jeija/lightstone.lua @@ -3,6 +3,7 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on) tile_images = {texture_off}, inventory_image = minetest.inventorycube(texture_off), material = minetest.digprop_stonelike(0.5), + description=name.." Lightstone", }) minetest.register_node("jeija:lightstone_" .. name .. "_on", { tile_images = {texture_on}, @@ -10,6 +11,7 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on) material = minetest.digprop_stonelike(0.5), dug_item = "node jeija:lightstone_" .. name .. "_off 1", light_source = LIGHT_MAX-2, + description=name.." Lightstone", }) assert(loadstring('mesecon:register_on_signal_on(function(pos, node) \n \ if node.name == "jeija:lightstone_' .. name .. '_off" then \n \ diff --git a/jeija/movestone.lua b/jeija/movestone.lua index ac742df..ec0cd9a 100644 --- a/jeija/movestone.lua +++ b/jeija/movestone.lua @@ -63,6 +63,7 @@ minetest.register_node("jeija:movestone", { paramtype2 = "facedir", legacy_facedir_simple = true, material = minetest.digprop_stonelike(0.8), + description="Movestone", }) minetest.register_entity("jeija:movestone_entity", { @@ -171,6 +172,7 @@ minetest.register_node("jeija:sticky_movestone", { paramtype2 = "facedir", legacy_facedir_simple = true, material = minetest.digprop_stonelike(0.8), + description="Sticky Movestone", }) minetest.register_craft({ diff --git a/jeija/pistons.lua b/jeija/pistons.lua index f287503..3ad7aac 100644 --- a/jeija/pistons.lua +++ b/jeija/pistons.lua @@ -4,6 +4,7 @@ minetest.register_node("jeija:piston_normal", { tile_images = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"}, material = minetest.digprop_stonelike(0.5), paramtype2="facedir", + description="Piston", }) minetest.register_craft({ @@ -20,6 +21,7 @@ minetest.register_node("jeija:piston_sticky", { tile_images = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_sticky_side.png"}, material = minetest.digprop_stonelike(0.5), paramtype2="facedir", + description="Sticky Piston", }) minetest.register_craft({ diff --git a/jeija/pressureplates.lua b/jeija/pressureplates.lua index f882230..133715d 100644 --- a/jeija/pressureplates.lua +++ b/jeija/pressureplates.lua @@ -11,6 +11,7 @@ minetest.register_node("jeija:pressure_plate_wood_off", { type = "fixed", }, material = minetest.digprop_constanttime(0.3), + description="Wood Pressure Plate", }) minetest.register_node("jeija:pressure_plate_wood_on", { @@ -24,7 +25,8 @@ minetest.register_node("jeija:pressure_plate_wood_on", { type = "fixed", }, material = minetest.digprop_constanttime(0.3), - drop='"jeija:pressure_plate_wood_off" 1' + drop='"jeija:pressure_plate_wood_off" 1', + description="Wood Pressure Plate", }) minetest.register_craft({ @@ -87,6 +89,7 @@ minetest.register_node("jeija:pressure_plate_stone_off", { type = "fixed", }, material = minetest.digprop_constanttime(0.3), + description="Stone Pressure Plate", }) minetest.register_node("jeija:pressure_plate_stone_on", { @@ -100,7 +103,8 @@ minetest.register_node("jeija:pressure_plate_stone_on", { type = "fixed", }, material = minetest.digprop_constanttime(0.3), - drop='"jeija:pressure_plate_stone_off" 1' + drop='"jeija:pressure_plate_stone_off" 1', + description="Stone Pressure Plate", }) minetest.register_craft({ diff --git a/jeija/switch.lua b/jeija/switch.lua index 553c95f..aca1c86 100644 --- a/jeija/switch.lua +++ b/jeija/switch.lua @@ -4,6 +4,7 @@ minetest.register_node("jeija:mesecon_switch_off", { tile_images = {"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_off.png"}, paramtype2="facedir", material = minetest.digprop_constanttime(0.5), + description="Switch", }) minetest.register_node("jeija:mesecon_switch_on", { @@ -11,6 +12,7 @@ minetest.register_node("jeija:mesecon_switch_on", { paramtype2="facedir", material = minetest.digprop_constanttime(0.5), drop='"jeija:mesecon_switch_off" 1', + description="Switch", }) mesecon:add_receptor_node("jeija:mesecon_switch_on") diff --git a/jeija/torches.lua b/jeija/torches.lua index fca051c..9aac92c 100644 --- a/jeija/torches.lua +++ b/jeija/torches.lua @@ -18,6 +18,7 @@ minetest.register_node("jeija:mesecon_torch_off", { legacy_wallmounted = true, material = minetest.digprop_constanttime(0.5), drop = '"jeija:mesecon_torch_on" 1', + description="Mesecon Torch", }) minetest.register_node("jeija:mesecon_torch_on", { @@ -31,6 +32,7 @@ minetest.register_node("jeija:mesecon_torch_on", { legacy_wallmounted = true, material = minetest.digprop_constanttime(0.5), light_source = LIGHT_MAX-5, + description="Mesecon Torch", }) --[[minetest.register_on_placenode(function(pos, newnode, placer) diff --git a/jeija/wireless.lua b/jeija/wireless.lua index 3344d47..d067167 100644 --- a/jeija/wireless.lua +++ b/jeija/wireless.lua @@ -2,6 +2,7 @@ minetest.register_craftitem("jeija:ic", { image = "jeija_ic.png", on_place_on_ground = minetest.craftitem_place_item, + description="IC", }) minetest.register_craft({ @@ -162,13 +163,15 @@ minetest.register_node("jeija:wireless_receiver_off", { tile_images = {"jeija_wireless_receiver_tb_off.png", "jeija_wireless_receiver_tb_off.png", "jeija_wireless_receiver_off.png", "jeija_wireless_receiver_off.png", "jeija_wireless_receiver_off.png", "jeija_wireless_receiver_off.png"}, inventory_image = minetest.inventorycube("jeija_wireless_receiver_off.png"), material = minetest.digprop_constanttime(0.8), + description="Wireless Receiver", }) minetest.register_node("jeija:wireless_receiver_on", { tile_images = {"jeija_wireless_receiver_tb_on.png", "jeija_wireless_receiver_tb_on.png", "jeija_wireless_receiver_on.png", "jeija_wireless_receiver_on.png", "jeija_wireless_receiver_on.png", "jeija_wireless_receiver_on.png"}, inventory_image = minetest.inventorycube("jeija_wireless_receiver_on.png"), material = minetest.digprop_constanttime(0.8), - dug_item = 'node "jeija:wireless_receiver_off" 1' + dug_item = 'node "jeija:wireless_receiver_off" 1', + description="Wireless Receiver", }) minetest.register_craft({ @@ -228,13 +231,15 @@ minetest.register_node("jeija:wireless_inverter_off", { tile_images = {"jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_off.png", "jeija_wireless_inverter_off.png", "jeija_wireless_inverter_off.png", "jeija_wireless_inverter_off.png"}, inventory_image = minetest.inventorycube("jeija_wireless_inverter_off.png"), material = minetest.digprop_constanttime(0.8), - dug_item = 'node "jeija:wireless_inverter_on" 1' + dug_item = 'node "jeija:wireless_inverter_on" 1', + description="Wireless Inverter", }) minetest.register_node("jeija:wireless_inverter_on", { tile_images = {"jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_on.png", "jeija_wireless_inverter_on.png", "jeija_wireless_inverter_on.png", "jeija_wireless_inverter_on.png"}, inventory_image = minetest.inventorycube("jeija_wireless_inverter_on.png"), material = minetest.digprop_constanttime(0.8), + description="Wireless Inverter", }) minetest.register_craft({ @@ -289,12 +294,14 @@ minetest.register_node("jeija:wireless_transmitter_on", { inventory_image = minetest.inventorycube("jeija_wireless_transmitter_on.png"), material = minetest.digprop_constanttime(0.8), dug_item = 'node "jeija:wireless_transmitter_off" 1', + description="Wireless Transmitter", }) minetest.register_node("jeija:wireless_transmitter_off", { tile_images = {"jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_off.png", "jeija_wireless_transmitter_off.png", "jeija_wireless_transmitter_off.png", "jeija_wireless_transmitter_off.png"}, inventory_image = minetest.inventorycube("jeija_wireless_transmitter_off.png"), material = minetest.digprop_constanttime(0.8), + description="Wireless Transmitter", }) minetest.register_craft({