From 430b310eb435c5c88c249dfcd827a838a21a6b35 Mon Sep 17 00:00:00 2001 From: Zefram Date: Sun, 6 Jul 2014 13:50:23 +0100 Subject: [PATCH] Machine casing item The casing is intended to be an ingredient in craft recipes for machines. It isn't actually used in any recipes yet. Although mainly a craft item, it is defined as a node type, mainly to get an appropriately cubic inventory image. It is incidentally possible to place it as a node: this makes some sense, although the empty machine casing isn't actually useful as a node. --- technic/crafts.lua | 9 +++++++++ technic/items.lua | 9 +++++++++ technic/textures/technic_machine_casing.png | Bin 0 -> 673 bytes 3 files changed, 18 insertions(+) create mode 100644 technic/textures/technic_machine_casing.png diff --git a/technic/crafts.lua b/technic/crafts.lua index 1bc1e42..4ed2ebb 100644 --- a/technic/crafts.lua +++ b/technic/crafts.lua @@ -131,6 +131,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "technic:machine_casing", + recipe = { + { "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" }, + { "technic:cast_iron_ingot", "technic:brass_ingot", "technic:cast_iron_ingot" }, + { "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" }, + }, +}) + -- Remove some recipes minetest.register_craftitem("technic:nothing", { description = "", diff --git a/technic/items.lua b/technic/items.lua index d62642c..1fdb018 100644 --- a/technic/items.lua +++ b/technic/items.lua @@ -144,3 +144,12 @@ minetest.register_craftitem("technic:carbon_cloth", { inventory_image = "technic_carbon_cloth.png", }) +minetest.register_node("technic:machine_casing", { + description = S("Machine Casing"), + groups = {cracky=2}, + sunlight_propagates = true, + paramtype = "light", + drawtype = "allfaces", + tiles = {"technic_machine_casing.png"}, + sounds = default.node_sound_stone_defaults(), +}) diff --git a/technic/textures/technic_machine_casing.png b/technic/textures/technic_machine_casing.png new file mode 100644 index 0000000000000000000000000000000000000000..d596733285ffc172a4e55d9023cdd096a4b6b837 GIT binary patch literal 673 zcmV;S0$%-zP)!gR{$s}Bd)HVW9=PTR?@aNl;vaA)gxuZvP{HrLfh^!X2Ue~yvN(Ozag!?W14!h ztR#d$QPhMGkTL=wjuQZ~%&;sIZM!E)3IM!!sP}9_2)?>_N#FNmS%wgTL(_9sCEVOv zwogk|@37^}&wqc9F&mW9C}TEw?*RxQ@XPOeI_ucf33hM{lPA#;!?@@1dBW$P8n)Zd z=(<~m;U2Xt6V^6lnc;eO$KnF7e)>!B0KWV7i}20W6aIL8O;ueG$0>522kQC~Ap}ph zCFhlXXcmClXm+;)Rdqqryh8|yN>hXP3*IjXJo{$)D8Vp!bS&Z2BBew+H=%WY^nmEt z@DW5(P?g0gHN!Y|#}u089a^UdA^w*@$C41jQM-&tk^<$uqpB`&Zf5n4NIvKv08KmN zmhr=n04Sw2Qc6PbNO{!x>gAWAvyLo{h@@b5n7G`g)J8MS0f4?gAcR0kDNlt4JIp-$ z`V#=|TT85t*NoFjXC2!!jU5~S>$(y}F-q&45CV1mlt23)=>I*iEE9Eo$^GsIV>STT zrD4~faX9=#QH&U~;rjYDs%>vhj1DO^MRE2)Us-N(Zbm6hp4X>Em&e3Hz}h>M)){Z! z{E85Qb#=`1c+6KSgb<8lN1j)7-7QLK($vs(d(za9Bsu>9*e)6fi9&~X00000NkvXX Hu0mjf&bK(0 literal 0 HcmV?d00001 -- 2.30.2