diff options
author | Zefram <zefram@fysh.org> | 2014-07-05 16:27:09 +0100 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-07-05 12:55:33 -0400 |
commit | 87d87c91fa83a8bdb09e718f0641a33f475f6826 (patch) | |
tree | 3032d364d4944f08a2f8ba17055c9e30885d86ab /item_transport.lua | |
parent | a7cd0e3ddb5f35896e72dc4f4e1ca532b45529db (diff) |
Name tube items for function rather than material
Previously, some tube types were named based on their function, and others
based on some arbitrarily-chosen material used in their construction,
with no meaningful system governing which was in each category. With this
change they are consistently named according to function. Naming style
is also made consistent in the wording that identifies tubes as such,
and in capitalisation.
Diffstat (limited to 'item_transport.lua')
-rw-r--r-- | item_transport.lua | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/item_transport.lua b/item_transport.lua index 996a165..e3d926e 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -18,11 +18,6 @@ local function facedir_to_right_dir(facedir) z=topdir.x*backdir.y - backdir.x*topdir.y} end -minetest.register_craftitem("pipeworks:filter", { - description = "Filter", - stack_max = 99, -}) - local fakePlayer = { get_player_name = function() return ":pipeworks" end, -- any other player functions called by allow_metadata_inventory_take anywhere... @@ -85,7 +80,7 @@ local function grabAndFire(frominv,frominvname,frompos,fromnode,sname,tube,idef, end minetest.register_node("pipeworks:filter", { - description = "Filter", + description = "Itemwise Filter", tiles = {"pipeworks_filter_top.png", "pipeworks_filter_top.png", "pipeworks_filter_output.png", "pipeworks_filter_input.png", "pipeworks_filter_side.png", "pipeworks_filter_top.png"}, paramtype2 = "facedir", @@ -98,7 +93,7 @@ minetest.register_node("pipeworks:filter", { "invsize[8,6.5;]".. "list[current_name;main;0,0;8,2;]".. "list[current_player;main;0,2.5;8,4;]") - meta:set_string("infotext", "Filter") + meta:set_string("infotext", "Itemwise Filter") local inv = meta:get_inventory() inv:set_size("main", 8*2) end, @@ -171,13 +166,8 @@ minetest.register_node("pipeworks:filter", { end, }) -minetest.register_craftitem("pipeworks:mese_filter", { - description = "Mese filter", - stack_max = 99, -}) - minetest.register_node("pipeworks:mese_filter", { - description = "Mese filter", + description = "Stackwise Filter", tiles = {"pipeworks_mese_filter_top.png", "pipeworks_mese_filter_top.png", "pipeworks_mese_filter_output.png", "pipeworks_mese_filter_input.png", "pipeworks_mese_filter_side.png", "pipeworks_mese_filter_top.png"}, paramtype2 = "facedir", @@ -190,7 +180,7 @@ minetest.register_node("pipeworks:mese_filter", { "invsize[8,6.5;]".. "list[current_name;main;0,0;8,2;]".. "list[current_player;main;0,2.5;8,4;]") - meta:set_string("infotext", "Mese filter") + meta:set_string("infotext", "Stackwise Filter") local inv = meta:get_inventory() inv:set_size("main", 8*2) end, |