From ef0ebac4db4dace32ba195c807a10727c9902e7c Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Aug 2014 20:45:41 -0400 Subject: [PATCH] Add recipes for power outlet and light switch also fixed the group settings to make them easier to dig, and gave them nice, clear inventory images. --- homedecor/crafts.lua | 31 ++++++++++++++++++ homedecor/misc-electrical.lua | 6 ++-- homedecor/textures/homedecor_copper_strip.png | Bin 0 -> 366 bytes .../textures/homedecor_light_switch_inv.png | Bin 0 -> 3365 bytes homedecor/textures/homedecor_outlet_inv.png | Bin 0 -> 4450 bytes 5 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 homedecor/textures/homedecor_copper_strip.png create mode 100644 homedecor/textures/homedecor_light_switch_inv.png create mode 100644 homedecor/textures/homedecor_outlet_inv.png diff --git a/homedecor/crafts.lua b/homedecor/crafts.lua index 1d416b4a..cc188e74 100644 --- a/homedecor/crafts.lua +++ b/homedecor/crafts.lua @@ -98,6 +98,11 @@ minetest.register_craftitem("homedecor:fan_blades", { inventory_image = "homedecor_fan_blades.png" }) +minetest.register_craftitem("homedecor:copper_strip", { + description = S("Copper Strip"), + inventory_image = "homedecor_copper_strip.png" +}) + -- alternate crafting if mesecons is/isn't installed if not minetest.get_modpath("mesecons") then @@ -140,6 +145,13 @@ minetest.register_alias("homedecor:brass_ingot", "technic:brass_ingot") -- the actual crafts +minetest.register_craft( { + output = "homedecor:copper_strip 6", + recipe = { + { "default:copper_ingot", "default:copper_ingot" } + }, +}) + minetest.register_craft( { output = "homedecor:fan_blades 2", recipe = { @@ -2199,3 +2211,22 @@ for i in ipairs(color_pairings) do }) end +-- misc electrical + +minetest.register_craft( { + output = "homedecor:power_outlet", + recipe = { + {"homedecor:plastic_sheeting", "homedecor:copper_strip"}, + {"homedecor:plastic_sheeting", ""}, + {"homedecor:plastic_sheeting", "homedecor:copper_strip"} + }, +}) + +minetest.register_craft( { + output = "homedecor:light_switch", + recipe = { + {"", "homedecor:plastic_sheeting", "homedecor:copper_strip"}, + {"homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:copper_strip"}, + {"", "homedecor:plastic_sheeting", "homedecor:copper_strip"} + }, +}) diff --git a/homedecor/misc-electrical.lua b/homedecor/misc-electrical.lua index cab733ae..bc67b84b 100644 --- a/homedecor/misc-electrical.lua +++ b/homedecor/misc-electrical.lua @@ -11,13 +11,14 @@ minetest.register_node("homedecor:power_outlet", { "homedecor_outlet_back.png", "homedecor_outlet_front.png" }, + inventory_image = "homedecor_outlet_inv.png", node_box = { type = "fixed", fixed = { {-0.125, -0.5, 0.4375, 0.125, -0.1875, 0.5}, } }, - groups = {cracky=3}, + groups = {cracky=3,dig_immediate=2}, sounds = default.node_sound_stone_defaults() }) @@ -34,6 +35,7 @@ minetest.register_node("homedecor:light_switch", { "homedecor_light_switch_back.png", "homedecor_light_switch_front.png" }, + inventory_image = "homedecor_light_switch_inv.png", node_box = { type = "fixed", fixed = { @@ -42,7 +44,7 @@ minetest.register_node("homedecor:light_switch", { } }, - groups = {cracky=3}, + groups = {cracky=3,dig_immediate=2}, sounds = default.node_sound_stone_defaults() }) diff --git a/homedecor/textures/homedecor_copper_strip.png b/homedecor/textures/homedecor_copper_strip.png new file mode 100644 index 0000000000000000000000000000000000000000..3fbe1bba91e88678a0a256e71d349d4db44a67a0 GIT binary patch literal 366 zcmV-!0g?WRP)M|1K&c?5VTb^wKTTW(%#Te?KL>GGzdXLqcla7 z7z+K-%1%(T%kzHC4b@PipBM1J^YB2=p9z4y`AM0Go7_}BFyjMqcqo1*y;>_4RxcId zo;!|nl3d#9d>gQp9+S(n)2OyMn*UB^Ga^IYb#SKEo*1Usd2-8QPIR8d|fEky{_QXwI&mLgS}e*jhD4VGmgAxh%d zE))Te`kd;#tY9sw+MVpYyIgU2!5tkt9@QXq9oCmqp1I%&bc?8b2pun zTVMF4U+E0~?RQ@IdmnJc<7a>Fi;f3i$o<}Y?%8j7S|^JO3kUvEM1EdG@O_^TedtI! zH#e)Cb0Q*$h*L`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v65ND^H#Adcdy=c!kiq|>@z z04yyx3f`|QEjNA@_$g6x)ubt#n@!tpwRdE4lV||LI^d4*_~Ilrz`j?5OUsSIvt3;NLppZqK2QMU zAQWEvt)=D0mw=xZk?%R@Xtz4)`r0}=zXd+1ARA+dFV}9)?|7Zu}ddE?vCP0RCJl(d~9O0RHsM+4JZ5|1d6H vyde3%?((;P{mpNjJ@d7H0GOotali3@^?6i(B}3q%00000NkvXXu0mjf|JGxn literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_outlet_inv.png b/homedecor/textures/homedecor_outlet_inv.png new file mode 100644 index 0000000000000000000000000000000000000000..a365b35908e134ff050aacde4c84568411d2247b GIT binary patch literal 4450 zcmV-o5uNUdP)2p zV+n~LRi$)6ijx$O zW5*d|uM`UY>091^$C*X>F=4_j-0WUYNtYyGO{c}fTozi-DK_NrsR{(XCwyc7|EF$Ui+z;PTnjspPT zoTF4Kp;9TKQmM2Vw3tx<04XJ!%>ZE-qF!$pB2uk?&jNUci2iNoZ6CeZ!4%$Nid}1_ z^aJ1mfc49r*PaX!frx=I0_Os*>p=(s*LA=-2N6)MR#7MvP^pwb1Q=sstpyQ4MAjG! zt+iE3u{cgpuh$VpF{G4pM6Avjo#UK64bYE2aO+17Eb>t<0NnyduM_~$=Xe4Dp65bq z1DQ&I7Ff^*!CC{Y0j)KXBnDtX#KAd(5CU^^^Kcvoj4`;b3)gkwI0A)&k3ykH#bN=j z>yi)xp66kBcnFL!Ym6C6)3mCT-W)~I`=Thue;<4fVHif%+P91`CpqVb7-K&sqE`VN z>i|ap;7Tcd$A|Ays|Da?0Gov4@JcnacO?~+R*+IWv#{3A6VWRGUbNP}J~A@=I)Fo~1z-vQY-LF<|YQz2MuAY}@rWPVR;Erf93x(+D#j zcyS&VE=+-l7!k23ip7Bg2Q}yX_^N!s{(XBL057#fOm9!RXmXT&2_+?zl-&;$0fljs~5FHR$h zVtAg5k&$84YISI>bK71V3YAh&O2M{(YMYDeWG0}s1!L6Ld#7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