From 914b55dacc9e0361de936d3c9d7b32b5aa5156c0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 14 Jan 2022 17:44:39 +0100 Subject: [PATCH] Add crate and some decor blocks --- CREDITS.md | 2 +- mods/lzr_decor/init.lua | 65 ++++++++++++++++++ mods/lzr_decor/textures/lzr_decor_bonfire.png | Bin 0 -> 697 bytes .../textures/lzr_decor_bookshelf.png | Bin 0 -> 589 bytes .../textures/lzr_decor_vessels_shelf.png | Bin 0 -> 636 bytes mods/lzr_laser/blocks.lua | 63 +++++++++++------ mods/lzr_laser/textures/lzr_laser_crate.png | Bin 0 -> 500 bytes .../textures/lzr_laser_crate_fixed.png | Bin 0 -> 227 bytes 8 files changed, 107 insertions(+), 23 deletions(-) create mode 100644 mods/lzr_decor/textures/lzr_decor_bonfire.png create mode 100644 mods/lzr_decor/textures/lzr_decor_bookshelf.png create mode 100644 mods/lzr_decor/textures/lzr_decor_vessels_shelf.png create mode 100644 mods/lzr_laser/textures/lzr_laser_crate.png create mode 100644 mods/lzr_laser/textures/lzr_laser_crate_fixed.png diff --git a/CREDITS.md b/CREDITS.md index 234d6b5..3bd90c0 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -10,7 +10,7 @@ External mods used: --- Textures: -- Water, wood, tree, stone, tools, hand, player textures come from “PixelBOX” texture pack by jp (CC0) +- Water, wood, tree, stone, tools, hand, player textures, crates come from “PixelBOX” texture pack by jp (CC0) - Textures in `lzr_decor` mod made by jp (CC0) - Crosshair, wieldhand, `smoke_puff.png`: trivial textures by Wuzzy (CC0) - Emitter, detector textures: Derivate works of xdecor textures by jp (CC0) diff --git a/mods/lzr_decor/init.lua b/mods/lzr_decor/init.lua index 9d44dbd..83b1315 100644 --- a/mods/lzr_decor/init.lua +++ b/mods/lzr_decor/init.lua @@ -66,6 +66,27 @@ minetest.register_node("lzr_decor:barricade", { groups = {breakable = 1}, }) +minetest.register_node("lzr_decor:bonfire", { + description = S("Bonfire"), + walkable = false, + drawtype = "plantlike", + paramtype = "light", + paramtype2 = "facedir", + inventory_image = "lzr_decor_bonfire.png^[verticalframe:7:0", + wield_image = "lzr_decor_bonfire.png^[verticalframe:7:0", + use_texture_alpha = "clip", + tiles = { + { name = "lzr_decor_bonfire.png", + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 2.0, + },}, + }, + groups = {breakable = 1}, +}) + minetest.register_node("lzr_decor:barrel", { description = S("Barrel"), tiles = {"xdecor_barrel_top.png", "xdecor_barrel_top.png", "xdecor_barrel_sides.png"}, @@ -129,6 +150,30 @@ register_storage("lzr_decor:empty_shelf", S("Empty Shelf"), { } }) +register_storage("lzr_decor:bookshelf", S("Bookshelf"), { + paramtype2 = "facedir", + on_rotate = screwdriver.rotate_simple, + tiles = { + {name="default_wood.png", align_style="world"}, + {name="default_wood.png", align_style="world"}, + {name="default_wood.png", align_style="world"}, + {name="default_wood.png", align_style="world"}, + "default_wood.png^lzr_decor_bookshelf.png", + }, +}) + +register_storage("lzr_decor:vessels_shelf", S("Vessels Shelf"), { + paramtype2 = "facedir", + on_rotate = screwdriver.rotate_simple, + tiles = { + {name="default_wood.png", align_style="world"}, + {name="default_wood.png", align_style="world"}, + {name="default_wood.png", align_style="world"}, + {name="default_wood.png", align_style="world"}, + "default_wood.png^lzr_decor_vessels_shelf.png", + }, +}) + register_storage("lzr_decor:multishelf", S("Multi Shelf"), { paramtype2 = "facedir", on_rotate = screwdriver.rotate_simple, @@ -194,6 +239,7 @@ minetest.register_node("lzr_decor:chair", { minetest.register_node("lzr_decor:cobweb", { description = S("Cobweb"), drawtype = "plantlike", + paramtype = "light", tiles = {"xdecor_cobweb.png"}, inventory_image = "xdecor_cobweb.png", walkable = false, @@ -302,3 +348,22 @@ minetest.register_node("lzr_decor:woodframed_glass", { sounds = lzr_sounds.node_sound_glass_defaults() }) +minetest.register_node("lzr_decor:grate_steel", { + description = S("Steel Grate"), + paramtype = "light", + drawtype = "nodebox", + tiles = {"default_latch_steel.png"}, + use_texture_alpha = "clip", + groups = { breakable = 1 }, + sounds = lzr_sounds.node_sound_metal_defaults() +}) + +minetest.register_node("lzr_decor:grate_rust", { + description = S("Rusty Steel Grate"), + paramtype = "light", + drawtype = "nodebox", + tiles = {"default_latch_steel_rust.png"}, + use_texture_alpha = "clip", + groups = { breakable = 1 }, + sounds = lzr_sounds.node_sound_metal_defaults() +}) diff --git a/mods/lzr_decor/textures/lzr_decor_bonfire.png b/mods/lzr_decor/textures/lzr_decor_bonfire.png new file mode 100644 index 0000000000000000000000000000000000000000..e84630739b170008b5ded7d86f0e149a87551a31 GIT binary patch literal 697 zcmeAS@N?(olHy`uVBq!ia0vp^0zllr!3-o#y(K}M`~aU2*Z=?jUv^-rvK_p|9zPLCo}zj!~8#s;r|wHD-|IK5322K_8~K;mq&yS?)$NosVP^Ra$-sXth#F zkY6wZ1JH6ffboz78FtwI0IFuZ?&;zfQo*?QYU?%?MIM%bWkH+*-*)c)_uu^82Hl0% zZT*WU7O%+kj9(e6|Hker*QVb*9WSgCnoJJFNhpN83%#Ti;v9dBb;8>1M|e_JvP`{~ zrg2p|Gsmt`EckhQQ9!yzTG;ExnZAD?Ui^6S<;|ZbkA8gklqLMS`SJAU$IY*Y3&-5O z_jdpL{Ppkh)?Yd=zF(kbf4xVi&<#cfH^!ABZrUNiNsNnj-g5jb`r_=GEAH_RH%<%k z=Fibud-KYsPw~$_{_V1PQZ49d|KQk!1824Tgjk&{I4nZfC~UqI-7ss`w*&vm<$nBg zRSwp^%{tp+#-s!rX(3M!2PfnH&(1$ygq`FN@Uy;9IC)u`>i_pP7xo*T3budeQ1MPT zxyk02nUlp_<_UhEkB2gdnf6+WT+1m7$lZLz%hS8Ez4q^Yn?)aP{y)UXp`s+`!1DOj zd7l>o+*4ZYkN2dsTxi!6nQ+$k@uWqYUO09(m~8&nZ1beJLeb7x;Lb9~6E_xnGYG5j z9e43%X>*uidDZIRmDy1a+nCq7rWdS=4AkAG5^}caX7slDy4o+{A8rWG)?4Zuv&nn? zp|_Wt6yn)$N`E$ZZrZuoEorOZxuDv%m>*xRMflb-mF}AyxA|!*=WdhVcb^}3mx))o Vbm6wVIWR#mc)I$ztaD0e0swRwM=$^Y literal 0 HcmV?d00001 diff --git a/mods/lzr_decor/textures/lzr_decor_bookshelf.png b/mods/lzr_decor/textures/lzr_decor_bookshelf.png new file mode 100644 index 0000000000000000000000000000000000000000..2a22f3c3d988c309e14066bc8b953303a5a6308d GIT binary patch literal 589 zcmV-T0 z05ZGe?I{2N010qNS#tmY3ljhU3ljkVnw%H_000McNliru<^c{6Bonv>53~RP0oqAK zK~y-)t&-1c6G0TmKbhU`W)sqww8ok)wNUV4`~iAVJV_~%i=Mpt7kKsRNhtUScoFf^ za}m7s+M|eqAfiyjcAK^#v9xL2o!yy6 zppD5u$F@c;#Y+DZU%WA&69C$nkqqO6SZQLVsh6$;@MJO0@SDpq)6EC~0U#4abey47 z49oz}vG5#=+l{-Jxg{>veO{eAPxCNjsyK_CKP92yI%s3CgrHU~P%9UhEV=-E`1&6I z@)dSk@9+YR2ekUzsFVOB5+*&Hq9f>s5j&j&_79E#XzjKs<)PsFC(Ap{z_Bf=MUM;R z!kH~6I>snTFM{7eKnP3~XZaaz0gxN_8wF#A4WN5>2H)CWs65!_)0;hpp0LE|{J-($ zt%cMF)mnuK%OT%rvGDK(x%vA%I+ADnVF`gHMAl~vezo@jP#g7Bm+i9T`>Y;za2=a^ zbD7;vFJm$@T}u0CB^@x__Fgxj+v#DH#jIsisVgzd7?O3&1e8B}W( zCb|y&p*d_956~*%*~{12%Xv3XB%`dZJb!v3A<=PW4x=O?FgH_Wb8`zRC9dmc6+lY) be|+! z05ZGe?I{2N010qNS#tmY3ljhU3ljkVnw%H_000McNliru<^c{6BpfKY5+wit0trb( zK~y-)rPA9=lW`o!@%IjG^V#8PbB7cgiWQVpm zqk{F%kqbM-(#58m`*DU5K-%yxZsU#g8w)i?=~U$Y*ANBDX^_ z*=!CiW|QvG&)=Cf{nPxS!3>beX31o;L@x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