From 2762652d12a4ebee4c76b6dd560e11fec4d97c5f Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 25 Jun 2014 00:24:03 -0400 Subject: [PATCH] add steel fridge and oven (no craft recipes yet) --- homedecor/furnaces.lua | 8 ++ homedecor/locked.lua | 6 ++ homedecor/refrigerator.lua | 73 ++++++++++++++++++ .../textures/homedecor_oven_steel_bottom.png | Bin 0 -> 288 bytes .../textures/homedecor_oven_steel_front.png | Bin 0 -> 285 bytes .../homedecor_oven_steel_front_active.png | Bin 0 -> 340 bytes .../textures/homedecor_oven_steel_side.png | Bin 0 -> 228 bytes .../textures/homedecor_oven_steel_top.png | Bin 0 -> 449 bytes .../homedecor_refrigerator_steel_back.png | Bin 0 -> 416 bytes .../homedecor_refrigerator_steel_bottom.png | Bin 0 -> 385 bytes .../homedecor_refrigerator_steel_front.png | Bin 0 -> 111 bytes .../homedecor_refrigerator_steel_inv.png | Bin 0 -> 1083 bytes .../homedecor_refrigerator_steel_left.png | Bin 0 -> 105 bytes .../homedecor_refrigerator_steel_right.png | Bin 0 -> 101 bytes .../homedecor_refrigerator_steel_top.png | Bin 0 -> 256 bytes 15 files changed, 87 insertions(+) create mode 100644 homedecor/textures/homedecor_oven_steel_bottom.png create mode 100644 homedecor/textures/homedecor_oven_steel_front.png create mode 100644 homedecor/textures/homedecor_oven_steel_front_active.png create mode 100644 homedecor/textures/homedecor_oven_steel_side.png create mode 100644 homedecor/textures/homedecor_oven_steel_top.png create mode 100644 homedecor/textures/homedecor_refrigerator_steel_back.png create mode 100644 homedecor/textures/homedecor_refrigerator_steel_bottom.png create mode 100644 homedecor/textures/homedecor_refrigerator_steel_front.png create mode 100644 homedecor/textures/homedecor_refrigerator_steel_inv.png create mode 100644 homedecor/textures/homedecor_refrigerator_steel_left.png create mode 100644 homedecor/textures/homedecor_refrigerator_steel_right.png create mode 100644 homedecor/textures/homedecor_refrigerator_steel_top.png diff --git a/homedecor/furnaces.lua b/homedecor/furnaces.lua index c343124..0d94c25 100644 --- a/homedecor/furnaces.lua +++ b/homedecor/furnaces.lua @@ -350,6 +350,14 @@ homedecor.register_furnace("homedecor:oven", { cook_speed = 1.25, }) +homedecor.register_furnace("homedecor:oven_steel", { + description = S("Oven (stainless steel)"), + tile_format = "homedecor_oven_steel_%s%s.png", + output_slots = 4, + output_width = 2, + cook_speed = 1.25, +}) + homedecor.register_furnace("homedecor:microwave_oven", { description = S("Microwave Oven"), tiles = { diff --git a/homedecor/locked.lua b/homedecor/locked.lua index 225dc77..32a160a 100644 --- a/homedecor/locked.lua +++ b/homedecor/locked.lua @@ -117,6 +117,8 @@ end local items = { { "refrigerator", "Fridge" }, + { "refrigerator_steel", + "Fridge (stainless steel)" }, { "kitchen_cabinet", "Cabinet" }, { "kitchen_cabinet_half", @@ -135,6 +137,10 @@ local items = { "Oven" }, { "oven_active", "Oven (active)" }, + { "oven_steel", + "Oven (stainless steel)" }, + { "oven_steel_active", + "Oven (stainless steel, active)" }, { "microwave_oven", "Microwave Oven" }, { "microwave_oven_active", diff --git a/homedecor/refrigerator.lua b/homedecor/refrigerator.lua index a2cffb8..1de744c 100644 --- a/homedecor/refrigerator.lua +++ b/homedecor/refrigerator.lua @@ -74,3 +74,76 @@ minetest.register_node('homedecor:refrigerator', { )) end, }) + +minetest.register_node('homedecor:refrigerator_steel', { + drawtype = "nodebox", + description = S("Refrigerator (stainless steel)"), + tiles = { + 'homedecor_refrigerator_steel_top.png', + 'homedecor_refrigerator_steel_bottom.png', + 'homedecor_refrigerator_steel_right.png', + 'homedecor_refrigerator_steel_left.png', + 'homedecor_refrigerator_steel_back.png', + 'homedecor_refrigerator_steel_front.png' + }, + inventory_image = "homedecor_refrigerator_steel_inv.png", + sunlight_propagates = false, + paramtype = "light", + paramtype2 = "facedir", + walkable = true, + groups = { snappy = 3 }, + + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 } + }, + + sounds = default.node_sound_wood_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", + "size[10,10]".. + "list[current_name;main;0,0;10,5;]".. + "list[current_player;main;1,6;8,4;]") + meta:set_string("infotext", S("Refrigerator (stainless steel)")) + local inv = meta:get_inventory() + inv:set_size("main",50) + end, + + on_place = function(itemstack, placer, pointed_thing) + local pos = pointed_thing.above + if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name ~= "air" then + minetest.chat_send_player( placer:get_player_name(), S('Not enough vertical space to place a refrigerator!') ) + return + end + return minetest.item_place(itemstack, placer, pointed_thing) + end, + + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") + end, + on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + minetest.log("action", S("%s moves stuff in steel refrigerator at %s"):format( + player:get_player_name(), + minetest.pos_to_string(pos) + )) + end, + on_metadata_inventory_put = function(pos, listname, index, stack, player) + minetest.log("action", S("%s moves stuff to steel refrigerator at %s"):format( + player:get_player_name(), + minetest.pos_to_string(pos) + )) + end, + on_metadata_inventory_take = function(pos, listname, index, stack, player) + minetest.log("action", S("%s takes stuff from steel refrigerator at %s"):format( + player:get_player_name(), + minetest.pos_to_string(pos) + )) + end, +}) diff --git a/homedecor/textures/homedecor_oven_steel_bottom.png b/homedecor/textures/homedecor_oven_steel_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..f5cab8aa6d7b918ec889568457e446ae9af1ace0 GIT binary patch literal 288 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!S%6Q7tD~c%p`oF@y}hokuC=wb zg@uKQiHW79rIC@5zP`S;wzh_bhMJn1l$4aLtgO7eyo7{=l9CdGWQ82igr%M?jv*44 zMf)PfjyP~I`Cgj+w&~9QO^^SGiSS!~u1U|AEbia?ZDM4h^ZNMo&==~r!y+RsbUat> znVZ_sreifdC+tyE;IzQ6C%sFgpIy;9I`JUi%`lZf-fO%@g5MPzUiI#(U(%+vV=i0d zJU^?59#!qV{4!i#Rc*>()=#| j&9i+iTU>X4#(RF(Qttg-(JOL*4rcIl^>bP0l+XkK>@Q@u literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_oven_steel_front.png b/homedecor/textures/homedecor_oven_steel_front.png new file mode 100644 index 0000000000000000000000000000000000000000..0ee93d137e3d11c6929fe324dee7660db13344a2 GIT binary patch literal 285 zcmV+&0pk9NP)_CU>}^eZ3AGfWoA{)vMk(Q*QGBw95qd2{$gEMRlQ#@4-gSmr7+AB zK?qGDz(c`zBmGzKJi{IOs|+G??_pV%^cRVU_ueIV?}^A-dkf;S<6gr6kznx-oodpi j56wGtEQe literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_oven_steel_front_active.png b/homedecor/textures/homedecor_oven_steel_front_active.png new file mode 100644 index 0000000000000000000000000000000000000000..98ea008d98a4c75876d4dec4b1242db4c490a5ca GIT binary patch literal 340 zcmV-a0jvIrP)~ZWo7`D%cZ-!JIS=& zZbzm0d`@yUn?=NQIt9?`DJ7CQ=bW=P`KEL{9s!Uvvs$a_a2pYRg0<3Ov5-qR91iY2 zXvh^H>F(OhTtjG~wFS76@IOmGLOyVfg-QB6f6 zQLBZBCQ7wP{33@J%uP++ mdQRW;i*sJwi2mFB$@vDeZTvrq`&@zm0000IFn=m literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_oven_steel_side.png b/homedecor/textures/homedecor_oven_steel_side.png new file mode 100644 index 0000000000000000000000000000000000000000..88ad1446caa5c5d831db5d696404940283afb8a0 GIT binary patch literal 228 zcmVe1j;DsSUAyeFZ5zHX=e(|K&e;RQs=DucDMdOvrL-(d zN+|%twN{d~)=MBFL$-nAIE;M@f}dxrs!>Uj6acC^jA6L5?+HU=`vlao>PK8aBF;Mi0000Sn!w?NJub{5W4-z5#7@) zAKw`yPX#i zF^VE%3~ai|z*QmO1CmW)lGF^}08tX_^3Zn@oVJ0N~y0GLjv@;9=UyupRr>S~<}rIb?Y zV??ypYOVMC{qy-Om&=__=VOM`>69lpo6V$@+wInii^ZbRXjp5xd--pI zN~!;2buIlvP${Lg{uYff*$ku6$PHhY)mW-VcGz?aSK_frgM@@;t$& zX=bxoUDxp6JDpCS&&SATybgcmrBpvL5dnbK znweva(;c?kt@qwqE8|Lg00<$ZX&OQ(%W_0GpU=`#DW#N(F-lj#3S>lBtyVIqaAJ&F zYealLpM7#fxL&VBL_|s{L^Q?-cD7@2vrLseCxk8`dpOW7CzoO9ONwr#U4oBAN)$habZ*L8gc5qG=YK-g?H zLg-D6F(RVu;Ju&TQtyKZPejHTL?j}C0KoBh9Qh!G-@_EAC&@qCUKt7X4yW$`0000< KMNUMnLSTX|__@yj literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_refrigerator_steel_bottom.png b/homedecor/textures/homedecor_refrigerator_steel_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..d9c74fee6164260a78b6c3f39f2cc79f929b2ebc GIT binary patch literal 385 zcmV-{0e=38P)F| z%c|=z4AjdwffV}x(C_GHl`cw%B};cPx27B|jFBgrhr*A?<955Ls+p}57u+*5BIcYC z@p`@NIF9@M-dby|nc1I9X1aSsxVyWLG3@<*ySu82i2js_5K(5%pZa`0_Iy6i^UO>$ ziwHAgW;4U=%oLH{J0xw}X3U(Kt+j>gy}LUzt15jfA~I7|rK-R_#)t?ansbWCoD<)O z$aP&r)LJ7V5fKPot*U~Os;VkD!HCQ>FaqlCz_r%!49;b&s$_|VlFTHc>$;d3`I;GM z#~93P-~tp`F*Dde4u=R3h6NAUE+k>c2s9!hV&8Yb3>qRrL_`GR^IK>V(RrRQV*vHu zkrhCAgK6kg)v8ie$xI~R?f}6L0>wm_2D8C_L?Eku-~Vs)8^hApd#@_X%;PxF-L?(C f!y^ literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_refrigerator_steel_inv.png b/homedecor/textures/homedecor_refrigerator_steel_inv.png new file mode 100644 index 0000000000000000000000000000000000000000..c8ecfa47d76ff67ec9608f75a693353343551df0 GIT binary patch literal 1083 zcmV-B1jPG^P)+ z?zXE4rl+TSc4xb1dTd6zJ?*Ohd{y<;SJgejF3(S<{Dbn42fQn5X7*dQdufVCQ9N)9 z__*99f7)9J_hnZAzuKGJVkjQtc43r5Fb)9xWjA~%O#ptjx9PdzZ{EXJdB~xF@rQZ- zwS0pZHSr9h@cqSH=V6sHwr<~A1m#|(#0DKz>Cl0u(9AM^y1`mMZqOjI2 z=@QRa{CgssrPv24qDl)Sq^#{l!eOaCiJ}w&CLt3hz*c}>05B}-6RTWtDSyPG%>X1O zmldoZ7rRWP+pwxR#Sl28x*7a ziylaqafMvyfV)fybVkb6BpfAnTBfXrU1qg!C7~f95oSOE}3?(_%;6sDy4-3uJMkpn(GxD@cnH5mTYJhIZ)|=F0i?j z(?d__V&7=(Qapwruj^7pN%rx8q2YvF7NZN`4i{ChxhWkj>5`Ko*=H_U7t!(4Z`uan znfTd(Q_i*;4xd2NiX%;x2V5bVmXu?SNvQjf&<8ElieBg{3itGzw0pqCw(QjL<8%v0 z(wOcL0;4ZR(=vWoq~KF&1Ta`NgutDVV@0{jD7Z^kJlQsPrkp$#+L7;e0N_Ii@>{?q zu>GtX*vSLKEr}K;U538FW;L=2fW(4asu@Go>>~tUb-`EF5sjA=HXD9C`H)>^+Fl{h zj04NjCmc<+N&!}cz@5nTQ?<~t%c-5R;94x!!TI)@eIE`mecaUc(*X-q)THx~g%gBi z?Z~&X1ArP;6O?<5zOtx|?3D$sA`yqNUDA?&CA$C^`$AvzkR;_-3vWtR0Js*1ARNy6 zVCV)8bb$|_RKB#T^1#>fg=n$8kmQ1{{>@$WYr7W$zuUQE*`S0yH^9f$2v%ePd@c_~ z7AJQR#s@22U9JKE@R@umr&IC*IjR<~006)v`9^H<4Dr6aasU92! z5s|vZP4@Nw7IfD9{WZ0-(Zyg@V#whO7a15gTe~DWM4fe*z&B literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_refrigerator_steel_top.png b/homedecor/textures/homedecor_refrigerator_steel_top.png new file mode 100644 index 0000000000000000000000000000000000000000..f70477c9fb853a499756295c9e572906103fa7c0 GIT binary patch literal 256 zcmV+b0ssDqP)K?*|vMcV+X{HQ$Ax+D&Yn4tOYpuNR`?hV&3;;ed{z$)c9LEc&!7Y2_fP5JM0000