forked from mtcontrib/pipeworks
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.
This commit is contained in:
committed by
Vanessa Ezekowitz
parent
a7cd0e3ddb
commit
87d87c91fa
@ -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,
|
||||
|
Reference in New Issue
Block a user