From ad14f8a2a827336f3f6080dd56a0092c566251ef Mon Sep 17 00:00:00 2001 From: migdyn Date: Mon, 31 Dec 2018 05:37:14 +0100 Subject: [PATCH] Initial commit --- init.lua | 176 ++++++++++++++++++ .../industrial_decor_crate_upsidedown.png | Bin 0 -> 302 bytes textures/industrial_decor_desk.png | Bin 0 -> 181 bytes textures/industrial_decor_desk_front.png | Bin 0 -> 445 bytes .../industrial_decor_hvdevice_american.png | Bin 0 -> 304 bytes textures/industrial_decor_hvdevice_polish.png | Bin 0 -> 263 bytes textures/industrial_decor_lamp.png | Bin 0 -> 477 bytes textures/industrial_decor_lamp_damaged.png | Bin 0 -> 552 bytes textures/industrial_decor_lamp_fixed.png | Bin 0 -> 545 bytes textures/industrial_decor_planks.png | Bin 0 -> 414 bytes .../industrial_decor_planks_destroyed.png | Bin 0 -> 444 bytes textures/industrial_decor_sheet_tin.png | Bin 0 -> 353 bytes textures/industrial_decor_wires_hanging.png | Bin 0 -> 636 bytes 13 files changed, 176 insertions(+) create mode 100644 init.lua create mode 100644 textures/industrial_decor_crate_upsidedown.png create mode 100644 textures/industrial_decor_desk.png create mode 100644 textures/industrial_decor_desk_front.png create mode 100644 textures/industrial_decor_hvdevice_american.png create mode 100644 textures/industrial_decor_hvdevice_polish.png create mode 100644 textures/industrial_decor_lamp.png create mode 100644 textures/industrial_decor_lamp_damaged.png create mode 100644 textures/industrial_decor_lamp_fixed.png create mode 100644 textures/industrial_decor_planks.png create mode 100644 textures/industrial_decor_planks_destroyed.png create mode 100644 textures/industrial_decor_sheet_tin.png create mode 100644 textures/industrial_decor_wires_hanging.png diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..e20a4fd --- /dev/null +++ b/init.lua @@ -0,0 +1,176 @@ +minetest.register_node("industrial_decor:planks",{ + description = "Planks", + drawtype = "signlike", + tiles = {"industrial_decor_planks.png"}, + inventory_image = "industrial_decor_planks.png", + wield_image = "industrial_decor_planks.png", + light_propagates = true, + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "wallmounted", + + walkable = false, + + + groups = {choppy = 2}, + selection_box = { + type = "wallmounted", + }, + }) + +--Lamps +minetest.register_node("industrial_decor:lamp",{ + description = "Industrial Lamp", + drawtype = "plantlike", + tiles = {"industrial_decor_lamp.png"}, + inventory_image = "industrial_decor_lamp.png", + wield_image = "industrial_decor_lamp.png", + light_source = 14, + light_propagates = true, + sunlight_propagates = true, + is_ground_content = false, + walkable = false, + + groups = {cracky = 1}, + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16}, + }, + + on_punch = function(pos, node, player, pointed_thing) + minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "industrial_decor:lamp_damaged"}) + end + }) + +minetest.register_node("industrial_decor:lamp_damaged",{ + description = "Damaged Industrial Lamp", + drawtype = "plantlike", + tiles = {"industrial_decor_lamp_damaged.png"}, + inventory_image = "industrial_decor_lamp_damaged.png", + wield_image = "industrial_decor_lamp_damaged.png", + light_propagates = true, + sunlight_propagates = true, + paramtype = "light", + is_ground_content = false, + walkable = false, + + groups = {cracky = 2}, + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16}, + }, + }) + + minetest.register_node("industrial_decor:wires_hanging",{ + description = "Hanging Wires", + drawtype = "plantlike", + tiles = {"industrial_decor_wires_hanging.png"}, + inventory_image = "industrial_decor_wires_hanging.png", + wield_image = "industrial_decor_wires_hanging.png", + light_propagates = true, + sunlight_propagates = true, + paramtype = "light", + is_ground_content = false, + walkable = false, + + groups = {snappy = 3}, + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16}, + }, + }) + +minetest.register_node("industrial_decor:lamp_fixed",{ + description = "Fixed Industrial Lamp", + drawtype = "plantlike", + tiles = {"industrial_decor_lamp_fixed.png"}, + inventory_image = "industrial_decor_lamp_fixed.png", + wield_image = "industrial_decor_lamp_fixed.png", + light_source = 10, + light_propagates = true, + sunlight_propagates = true, + is_ground_content = false, + walkable = false, + + groups = {cracky = 1}, + selection_box = { + type = "fixed", + fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16}, + }, + + on_punch = function(pos, node, player, pointed_thing) + minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "industrial_decor:lamp_damaged"}) + end + }) + +minetest.register_node("industrial_decor:sheet_tin",{ + description = "Industrial Tin Sheet", + tiles = {"industrial_decor_sheet_tin.png"}, + + + groups = {cracky = 1}, + }) + + minetest.register_node("industrial_decor:desk",{ + drawtype = "allfaces_optional", + paramtype = "light", + description = "Desk", + tiles = {"industrial_decor_desk.png", + "industrial_decor_desk.png", + "industrial_decor_desk.png", + "industrial_decor_desk.png", + "industrial_decor_desk_front.png",}, + + + groups = {choppy = 2}, + }) + + minetest.register_node("industrial_decor:crate_upsidedown",{ + drawtype = "allfaces_optional", + paramtype = "light", + description = "Food Crate", + tiles = {"industrial_decor_crate_upsidedown.png"}, + + + groups = {choppy = 3}, + }) + +minetest.register_node("industrial_decor:hvdevice_pol",{ + description = "Polish High Voltage Device", + drawtype = "signlike", + tiles = {"industrial_decor_hvdevice_polish.png"}, + inventory_image = "industrial_decor_hvdevice_polish.png", + wield_image = "industrial_decor_hvdevice_polish.png", + light_propagates = true, + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "wallmounted", + + walkable = false, + + + groups = {crumbly = 1}, + selection_box = { + type = "wallmounted", + }, + }) + + minetest.register_node("industrial_decor:hvdevice_usa",{ + description = "American High Voltage Device", + drawtype = "signlike", + tiles = {"industrial_decor_hvdevice_american.png"}, + inventory_image = "industrial_decor_hvdevice_american.png", + wield_image = "industrial_decor_hvdevice_american.png", + light_propagates = true, + sunlight_propagates = true, + paramtype = "light", + paramtype2 = "wallmounted", + + walkable = false, + + + groups = {crumbly = 1}, + selection_box = { + type = "wallmounted", + }, + }) diff --git a/textures/industrial_decor_crate_upsidedown.png b/textures/industrial_decor_crate_upsidedown.png new file mode 100644 index 0000000000000000000000000000000000000000..2a8304ba7176da81fd51a52af3647ef0e5c1d12e GIT binary patch literal 302 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4$}{xW2TM5`4nJa0`PlBg3pY5H=O_D4K&LR`YlbD7Tpg(OQ{BTAg}b8}PkN*J7rQWHy3 zQxwWGOEMJPJ$(bh8~Mb6il%wGIEGl9PUg9i@Z-D#V?xpbfei*g;A8)xNpSX(wQF^m zf#C4N!|fZh&Xr8~alYwvN_2E|TeSHd2@tqql2a&k$im_A%mx@pUXO@geCw(Ic7}& literal 0 HcmV?d00001 diff --git a/textures/industrial_decor_desk.png b/textures/industrial_decor_desk.png new file mode 100644 index 0000000000000000000000000000000000000000..952778b3c4587090a23928ec736c9f657a688166 GIT binary patch literal 181 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdk355kvh#e46rhk~iEBiObAE1aYF-J0b5UwyNotBh zd1gt5g1e`0KzJjcI8c$Sr;B5V#p&cb(x*SnZ)7@f#6eNQG~r4^ATwJxBg4_9OqLB! Sysv-?89ZJ6T-G@yGywoQZ!n7h literal 0 HcmV?d00001 diff --git a/textures/industrial_decor_desk_front.png b/textures/industrial_decor_desk_front.png new file mode 100644 index 0000000000000000000000000000000000000000..8f47f4845374633c573b17239a091302cd85b940 GIT binary patch literal 445 zcmV;u0Yd(XP)e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00AXQL_t(I%cYV%OT$nUhMyBk zmlh<_UAI7IgXrMcrE$q*hd5>I;tvp9;v~5EH;hXVZ0KkUCaz-tfiBU(DS=$4RMIq2 z=^5{N-{*YXBU1;(2GIhziT)-Yn`Q0T1dR=&Rgg9UoKFzTC?|pi%--Sh=;v*Jr@Ai< zVB53^7Uje$ur4%!Bno~ttQIJZ&}6PNmO5xM6!5wt6@X>%uYIh&1IvKd-BVoGCGOdc zqiE}rg(*oA{NaeWXE%?a?+urbxM!nYd;qd6<0QPrAC8!B9oPRtaSL&~4S@7*(lkZa zbpYJ?17Dp^JwQYNNYj)g3b?wP(LXp`ik`v=7tR0%Re($#)b)oYN-0EyJkR-jzUT2x n5r!e%ZWqt<5E0JwpmNIJv*ll_)6=%o00000NkvXXu0mjf^vkkj literal 0 HcmV?d00001 diff --git a/textures/industrial_decor_hvdevice_american.png b/textures/industrial_decor_hvdevice_american.png new file mode 100644 index 0000000000000000000000000000000000000000..f4fc06ec2a07e9e538ff0c361e26d0bd84522d26 GIT binary patch literal 304 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4$}{xW2TM5`4nJa0`PlBg3pY5H=O_D4K&f`(d;a&9dL3Q3l@MwB?`=jNv7l`uFLr6!i7 zrYMwWmSiZnd-?{1H}Z)C70vK;aSX9Iy)^hVZ-W9)ZA17q1HFsdr!Dw}OF5O3zvO&q zQDk9R8h-10cA#QQM`sknfvDfv5iSevOLcI#TnWD*WyjCX5Mj<_9RAxx&HMX}sUI!) zuW$LZ%0aTf;_ZDSk2j}&u(L2c+8Vw&qiu$<`h<0@m#Q-tPdi$|w(D42)05Cu5~mU} txX<*IE?&5>M%erH!^`<16YnptVfOZMj0g<0+zWIggQu&X%Q~loCIA^)YE%FK literal 0 HcmV?d00001 diff --git a/textures/industrial_decor_hvdevice_polish.png b/textures/industrial_decor_hvdevice_polish.png new file mode 100644 index 0000000000000000000000000000000000000000..029a34dde43249ece12d201810133710c6fc3940 GIT binary patch literal 263 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)2gJ{xfXZVm#9uD8gCb z5n0T@z%2~Ij105pNB{-dOFVsD*&p%932G`!uKpDT6p}1)jVN)>&&^HED`9XhN=+^ndP=f)7OSoF@tAhX8g^dyK8Mj<2oT6yR zsd_ki+WE9Jb~PnNhjW!2YMd{1^;YG@r9IGVUx*$ygz_eGkCiCxvXe zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00BiwL_t(I%Y~C6Tf;CAhTrSv z5NtJ@MljD-GlOQ$vxgtSf5PxHvZANE;)_66jUuo)L}>_J7-yP3m-oBxl8fYdj)>r# zBS{ie6%hfzTC2twQB?p`m9{D{3%Yy_W4@!U3IL|7oG?_?gMf$o^%&q-+8@=!j_E4* zE}V0GygdH`!;tlilccR7%?#FBUC)phZ0qiuOqLt}6Iwf#_QY}sPnH|f%#gHI(N&9x z#K7KNTNNBjOVU^StH)tm;hFhEJO_u)Vug}(Kq%f<9JVta3YbNg7~c0#{PO0G(P$LE zMu4~L2kqBauTK)fX=eQ7iZSM-w-63RhHa*q=>$}j_rngeh{G|FUdRiG2=n<|`6q@V zam#3+EhdRj_ZYcXMwZMMO@<+t%;}h%2tg TZ!uI?00000NkvXXu0mjfQq{;Z literal 0 HcmV?d00001 diff --git a/textures/industrial_decor_lamp_damaged.png b/textures/industrial_decor_lamp_damaged.png new file mode 100644 index 0000000000000000000000000000000000000000..5d4b7a9af05e3d71797c9cea95066dde9759aeef GIT binary patch literal 552 zcmV+@0@wYCP)|_FMn}02y>e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00EFmL_t(I%YBovj?+L8hQD#5 ztt{PL6zN(-a}p(&6yyPrI4>zuaRv7*H0gK*UV+doM#429k(d$@o`3>bJ}Ffq?Ob8J zERMNpyw>dh&;QTNN|t4a2;O^=BtcaX5dfTXYONJj1wd7)%N%<_li$LSKT(%C0B4ho zI8-$NfdFpLLx5`S{<3b~b2iC>3hzC)-#+{Uj6-JU93|ZrMpKJ(PG{#xAJ}c1Z*qEh z6@FrA)!H3Nj=`swSB$2Xq%QNOS`SGduvJ%=In~;cwAKFSv1=>tS!m*Y;8_wC4&bv!~^7t8p!JvPP06!kws4<4Bs+jyr1?>%*y q^XZpT6osZ~%5u3B5jk3Kw}m^V?#1o>P2NQS0000e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00D_fL_t(I%YBnQZreZ*g}+$| zssz{+0vPTL7j_>@jf?a#7baRvrPHcuDF5R22j!Hz|T40!I8?%4kDl6pb@;a2AF$L85|i%b6E zSn$23=@NfR^$816#kLGJ;r^vp*XeZLtDfL;y|mz*qmaj;SxX+)+sccC{jJSubmiJL zkDsYw(rz@I!oP57#%|~Xt zUH+YO@9tZf;HjZK-}lh6%(kVT+$rXhpFEJ}56o$_-%z@|C-;WXh{fsN$%aLT9C%#kU;EOTX~9&RB*pdXhP6z$u{ASnWErQ@n7etWqVHehC4s3B^!LEW=HDEIq>biXSlpjC7U5?k4)M5 z#+5(6uH|QV$9kY(S!mmh`pKeaJiSidx7&AO)0+H8#(y~@*87Ugj`?`+@|B08LUVse zE8VLOnR@^8#FdRqY0C|cEa^PmTc5EYb!OG}W4lUzFY^eQx@Se2XUhKj{NBmjSK|C) k%!LIdYaT0d3I1bT9k`^+LtyPKV4yO1y85}Sb4q9e0RL06J^%m! literal 0 HcmV?d00001 diff --git a/textures/industrial_decor_sheet_tin.png b/textures/industrial_decor_sheet_tin.png new file mode 100644 index 0000000000000000000000000000000000000000..e050ecd0a9520fb09e57e9b25e4580aa4dfbf42c GIT binary patch literal 353 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdkDP#(me-7Gkdcxlt`Q~9`MJ5Nc_j?aMX8A;sVNHO znI#zt?w-B@;f;LaKt(4#T^vI!PPYa{_Z>0d*nIZhy6^jaxqokTesZZqY^9e|uOYwO z@j#V{GbgmHV)EP(dezEvow3pawzCTSc}(h=ms7s=%G7K@XvVsMrGY3l`C&fe`NgmCRXuzeY^<6gJpsDeKtGh_s;oO_kU0BgEznO r*clx5nM^)n{ePL?|F^&T?z|OmD_x`TuB7lc&{GVau6{1-oD!M<$BT+@ literal 0 HcmV?d00001 diff --git a/textures/industrial_decor_wires_hanging.png b/textures/industrial_decor_wires_hanging.png new file mode 100644 index 0000000000000000000000000000000000000000..de201434953764029260a27533a835f5bdc976d6 GIT binary patch literal 636 zcmV-?0)zdDP)e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00HDlL_t(I%XO16XcJ)=hM(_J zewUM;p&*44#K8jxL7NO_5u_+4zZp6esb+T+#MLFZI6JA3LFi%}yry8J&_M;0I5?S( zS#&7pNpJB2_d8tfnrq^_-FN@{e&754|0nf&9T6dpV=T+!cw@_){kS6lXMTP+e^;-F zF@`tZuDMsQNigi9T>$V#U@=87?Be%50FF1dOj