From 636b0f20df4fef3eef821c23ccc2f606828f5c6f Mon Sep 17 00:00:00 2001 From: Zefram <zefram@fysh.org> Date: Mon, 07 Jul 2014 15:15:05 +0200 Subject: [PATCH] Handheld prospecting tool --- technic/machines/other/constructor.lua | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/technic/machines/other/constructor.lua b/technic/machines/other/constructor.lua index b330b15..52feef8 100644 --- a/technic/machines/other/constructor.lua +++ b/technic/machines/other/constructor.lua @@ -134,7 +134,7 @@ meta:set_string("formspec", "invsize[8,9;]".. "label[0,0;"..S("Constructor Mk%d"):format(1).."]".. - "label[5,0;Slot 1]".. + "label[5,0;"..S("Slot %d"):format(1).."]".. "list[current_name;slot1;6,0;1,1;]".. "list[current_player;main;0,5;8,4;]") meta:set_string("infotext", S("Constructor Mk%d"):format(1)) @@ -153,10 +153,11 @@ }) minetest.register_node("technic:constructor_mk1_on", { - description = S("Constructor Mk%d"):format(3), + description = S("Constructor Mk%d"):format(1), tile_images = {"technic_constructor_mk1_top_on.png","technic_constructor_mk1_bottom_on.png","technic_constructor_mk1_side2_on.png","technic_constructor_mk1_side1_on.png", "technic_constructor_back.png","technic_constructor_front_on.png"}, paramtype2 = "facedir", + drop = "technic:constructor_mk1_off", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,mesecon = 2,not_in_creative_inventory=1}, mesecons= {effector={action_off=mk1_off}}, sounds = default.node_sound_stone_defaults(), @@ -215,9 +216,9 @@ meta:set_string("formspec", "invsize[8,9;]".. "label[0,0;"..S("Constructor Mk%d"):format(2).."]".. - "label[5,0;Slot 1]".. + "label[5,0;"..S("Slot %d"):format(1).."]".. "list[current_name;slot1;6,0;1,1;]".. - "label[5,1;Slot 2]".. + "label[5,1;"..S("Slot %d"):format(2).."]".. "list[current_name;slot2;6,1;1,1;]".. "list[current_player;main;0,5;8,4;]") meta:set_string("infotext", S("Constructor Mk%d"):format(2)) @@ -242,6 +243,7 @@ "technic_constructor_back.png","technic_constructor_front_on.png"}, is_ground_content = true, paramtype2 = "facedir", + drop = "technic:constructor_mk2_off", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2, not_in_creative_inventory=1}, mesecons = {effector={action_off=mk2_off}}, sounds = default.node_sound_stone_defaults(), @@ -316,13 +318,13 @@ meta:set_string("formspec", "invsize[8,9;]".. "label[0,0;"..S("Constructor Mk%d"):format(3).."]".. - "label[5,0;Slot 1]".. + "label[5,0;"..S("Slot %d"):format(1).."]".. "list[current_name;slot1;6,0;1,1;]".. - "label[5,1;Slot 2]".. + "label[5,1;"..S("Slot %d"):format(2).."]".. "list[current_name;slot2;6,1;1,1;]".. - "label[5,2;Slot 3]".. + "label[5,2;"..S("Slot %d"):format(3).."]".. "list[current_name;slot3;6,2;1,1;]".. - "label[5,3;Slot 4]".. + "label[5,3;"..S("Slot %d"):format(4).."]".. "list[current_name;slot4;6,3;1,1;]".. "list[current_player;main;0,5;8,4;]") meta:set_string("infotext", S("Constructor Mk%d"):format(3)) @@ -351,6 +353,7 @@ "technic_constructor_back.png","technic_constructor_front_on.png"}, is_ground_content = true, paramtype2 = "facedir", + drop = "technic:constructor_mk3_off", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2,not_in_creative_inventory=1}, mesecons = {effector={action_off=mk3_off}}, sounds = default.node_sound_stone_defaults(), -- Gitblit v1.8.0